joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e032556
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x2e032571
mov eax, dword [esi]
jmp 0x2e032573
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x2e0325ca
cmp eax, 0x50
je 0x2e0325ca
cmp eax, 0xb7
je 0x2e0325ca
cmp dword [edi + 0x18], 8
jb 0x2e032596
mov esi, dword [esi]
push esi
push 0x2e004648
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e02fdd6
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x2e078454
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e0560ec
pop edi
pop esi
leave
ret 4

Function at 0x2e0325d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x218
cmp dword [eax + 0x18], 8
jb 0x2e0325e7
mov eax, dword [eax + 4]
jmp 0x2e0325ea
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x2e03262e
push 0x2e004678
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e02fdd6
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e078454
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e0560ec
leave
ret 4

Function at 0x2e032d50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x2e032d6b
mov eax, dword [edi]
jmp 0x2e032d6d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x2e032dbf
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp dword [esi + 0x18], 8
jb 0x2e032d88
mov edi, dword [edi]
push eax
push edi
push 0x2e004744
call ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.2e02fdd6
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x2e078454
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e0560ec
pop edi
pop esi
leave
ret 4

Function at 0x2e033313
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x2e033357
push 0x2e00484c
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.2e028836
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e078454
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e0560ec
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4

Function at 0x2e033365
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x2e0333a9
push 0x2e00484c
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.2e028836
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x2e078454
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.2e0560ec
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret
Function at 0x2e03684e
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x14]
xor edx, edx
push 0xa
mov eax, edi
pop ecx
div ecx
xor ebx, ebx
mov dword [ebp - 4], 0x811c9dc5
mov esi, eax
inc esi
cmp esi, edi
jae 0x2e036876
sub edi, esi
test edi, edi
jbe 0x2e03689a
mov ecx, dword [ebp + 8]
push ebx
call fcn.2e02e4a5
mov ecx, dword [ebp - 4]
movzx eax, word [eax]
imul ecx, ecx, 0x1000193
xor ecx, eax
add ebx, esi
mov dword [ebp - 4], ecx
cmp ebx, edi
jb 0x2e03687a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x2e040f33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x2e040f49
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
mov esi, eax
cmp dword [ebp - 4], ebx
jae 0x2e040f7b
cmp dword [ebp + 0xc], 1
je 0x2e040f79
cmp dword [ebp + 0xc], ebx
jne 0x2e040f7b
mov esi, ebx
push esi
call fcn.2e03ffb0
pop ecx
test eax, eax
je 0x2e040fa1
push 0x796d746b
push 0
call fcn.2e04641a
push dword [ebp + 8]
mov ecx, 0x2e0b7808
call fcn.2e040368
jmp 0x2e041001
test esi, esi
jne 0x2e040ff4
cmp dword [ebp + 0xc], ebx
je 0x2e040fb0
cmp dword [ebp + 0xc], 1
jne 0x2e040fbc
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
cmp dword [ebp + 0xc], ebx
je 0x2e040fc6
cmp byte [ebp + 0x1c], bl
jne 0x2e040fdf
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push edi
call fcn.2e03f91f
pop ecx
pop ecx
test eax, eax
jne 0x2e040fdf
mov esi, 0xea
jmp 0x2e040ff4
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.2e03feef
pop ecx
pop ecx
test eax, eax
jne 0x2e040ff4
mov esi, ebx
push dword [ebp + 8]
mov ecx, 0x2e0b7808
call fcn.2e0402b8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x2e041d9f
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x2e041dc0
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x2e041dc0
cmp edx, eax
jb 0x2e041dc0
add eax, 0x10000
cmp eax, ecx
jae 0x2e041deb
mov eax, dword [0x2e08135c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.2e0463db
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret
Function at 0x2e0424a5
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
push 1
push ecx
xor esi, esi
push edx
mov dword [esp + 0x14], esi
call fcn.2e04aa38
test eax, eax
jne 0x2e04250f
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e04250f
cmp dword [esp + 0x10], 4
jne 0x2e04250f
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
mov dword [edx], eax
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x2e042526
push eax
mov dword [esp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x2e043408
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x2e04344e
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.2e04a79d
mov edi, eax
cmp edi, 0xffffffff
je 0x2e04344d
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x2e050f9a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x2e0b1da0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.2e057fe3
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2e056514
leave
ret

Function at 0x2e054715
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x2e0b9c84
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x2e054766
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x2e0b9c88], eax
mov ax, word [ebp - 0x30]
mov word [0x2e0b9c8c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x2e0b9c90], eax
mov eax, dword [ebp - 0x40]
mov dword [0x2e0b9c94], eax
mov eax, esi
pop esi
leave
ret

Function at 0x2e056453
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
push es
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x2e05648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x2e056475
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x2e056486
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x2e056490
inc edi
add eax, 0x28
cmp edi, esi
jb 0x2e05646b
xor eax, eax
pop edi
pop esi
ret
Function at 0x2e056626
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp byte [eax], bl
mov dword [ebp - 0x44], esi
call fcn.2e056413
push ecx
les eax, gs:[edi + 0x647b70f]
les eax, [edi + 0x647b70f]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.2e056413
inc eax
jbe 0x2e056695
invalid
rol esi, cl
inc ebp
mov bl, 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.2e056413
mov ebx, 0x8d086459
inc ebp
test al, 0x50
call fcn.2e056423
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.2e0563d8
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x2e056701
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.2e056413
mov ah, 0x78
pop esi
lodsb al, byte [esi]
lea eax, [ebp - 0x40]
push eax
call fcn.2e056423
push eax
push esi
push dword [ebp + 8]
call fcn.2e0563d8
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.2e056413
mov bl, 0x3b
ret 0x8d40

Function at 0x2e056817
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cmpsb byte [esi], byte es:[edi]
inc ecx
call fcn.2e056423
push eax
push esi
push dword [ebp + 8]
call fcn.2e0563d8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.2e056423
push eax
push esi
push dword [ebp + 8]
call fcn.2e0563d8
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.2e056413
stc
mov cl, 0x9c
and cl, byte [eax - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
Function at 0x2e056a98
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x2e056ac7
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x2e056ac2
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x2e056aac
invalid
adc eax, dword [ecx + 0xfffe1]
add byte [ebx + 0x34572bd6], cl
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x2e056ab4
cmp edx, ebx
jne 0x2e056c02
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x2e056a83
add eax, dword [eax + 4]
jmp 0x2e056a70
mov dword [ebp + 0xc], ebx
jmp 0x2e056ad2
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x2e056aea
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x2e056b08
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x2e056b66
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x2e056b4d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x2e056b56
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x2e056b60
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x2e056b42
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid
Function at 0x2e056ac3
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x2e056ac7
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x2e056ac2
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x2e056aac
invalid
adc eax, dword [ecx + 0xfffe1]
add byte [ebx + 0x34572bd6], cl
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x2e056ab4
cmp edx, ebx
jne 0x2e056c02
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x2e056a83
add eax, dword [eax + 4]
jmp 0x2e056a70
mov dword [ebp + 0xc], ebx
jmp 0x2e056ad2
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x2e056aea
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x2e056b08
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x2e056b66
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x2e056b4d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x2e056b56
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x2e056b60
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x2e056b42
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid

Function at 0x2e057390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
invalid
invalid
Function at 0x40187b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esp
lea eax, [ebp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegCreateKeyExA
add esp, 4
test eax, eax
mov edx, dword [ebp + 0x1c]
jne 0x4018c4
test edx, edx
mov ecx, dword [ebp + 8]
je 0x4018c4
push ecx
push edx
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
push ecx
call sub.ADVAPI32.dll_RegSetValueExA
call sub.ADVAPI32.dll_RegCloseKey
leave
ret 0x18

Function at 0x4018c8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esp
lea eax, [ebp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegCreateKeyExA
add esp, 4
test eax, eax
mov ecx, dword [ebp + 8]
jne 0x401901
push ecx
push dword [ebp + 0x10]
push ecx
call sub.ADVAPI32.dll_RegDeleteValueA
call sub.ADVAPI32.dll_RegCloseKey
leave
ret 0xc

Function at 0x401905
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esp
lea eax, [ebp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegCreateKeyExA
add esp, 4
test eax, eax
mov ecx, dword [ebp + 8]
jne 0x40193e
push ecx
push dword [ebp + 0x10]
push ecx
call sub.ADVAPI32.dll_RegDeleteKeyA
call sub.ADVAPI32.dll_RegCloseKey
leave
ret 0xc
Function at 0x4073b8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409e8c
test esi, esi
jne 0x4073ee
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a014
jmp 0x40740c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040729c
mov edi, eax
test esi, esi
je 0x40740c
cmp dword [ebx], 0
je 0x40740c
dec esi
jmp 0x4073f5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408b24
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408fb0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408cad
test edi, edi
je 0x408cad
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408bed
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408bc8
cmp edi, 0xffffffff
je 0x408b89
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b89
mov byte [esp], 0
jmp 0x408cad
cmp dword [esi], 1
jg 0x408bc8
cmp dword [esi], 0
jne 0x408bba
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408bba
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408cad
lea eax, [esp + 0xc]
call fcn.004087e0
dec ebp
test ebp, ebp
jg 0x408b6e
cmp edi, 0xffffffff
je 0x408bed
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408beb
mov byte [esp], 0
jmp 0x408cad
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408b32
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bed
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408d1c
mov edx, eax
mov ebx, dword [0x7538fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408c51
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408c4f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408c51
xor edi, edi
cmp byte [esp], 0
je 0x408c77
mov ebx, dword [esi]
test bl, 1
jne 0x408c8d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c57
mov byte [esp + 1], 1
jmp 0x408c8d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c77
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c04
cmp byte [esp], 0
je 0x408cad
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409b24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x75305c], 0
je 0x409b8b
cmp word [0x753348], 0xd7b2
jne 0x409b4d
cmp dword [0x753350], 0
jbe 0x409b4d
mov eax, 0x753344
call dword [0x753360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409bb8
call fcn.0040a6d8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x749032], 0
jne 0x409ba7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409d4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x749034], 0
je 0x409d77
mov edx, edi
mov eax, esi
call dword [0x749034]
mov ebx, eax
jmp 0x409d88
mov eax, 8
call fcn.00406fd8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x75305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409d14
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x409db8
mov eax, ebx
call fcn.00406ff4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40cfec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d151
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409e8c
cmp si, word [0x749a00]
jb 0x40d084
cmp si, word [0x749c00]
ja 0x40d084
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d084
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x749a00]
jae 0x40d05e
mov edi, ebx
dec edi
jmp 0x40d07f
cmp si, word [ebx*8 + 0x749a00]
jbe 0x40d06e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d07f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x749a04]
call fcn.0040cf0c
jmp 0x40d084
cmp edi, dword [ebp - 8]
jae 0x40d048
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d133
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d133
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab80
push dword [ebp - 0x160]
push 0x40d16c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab80
push dword [ebp - 0x164]
push 0x40d17c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab80
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040adb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d158
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409eec
ret