joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7380
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4efb18
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4b73a4
add eax, 8
inc ebp
cmp eax, 0x4efba8
jb 0x4b7395
cmp ecx, dword [ebp*8 + 0x4efb18]
jne 0x4b754b
mov eax, dword [0x8cd56c]
cmp eax, 1
je 0x4b750d
test eax, eax
jne 0x4b73d0
cmp dword [0x4ed884], 1
je 0x4b750d
cmp ecx, 0xfc
je 0x4b754b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b740b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4b7454
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4d775c
add ebx, ecx
push ebx
call fcn.004b07b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d773c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4efb1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004ba360
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x8cd9a0]
test eax, eax
je 0x4b751e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4b7528
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4efb1c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4b7f50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x8cd718]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4b7f92
call edi
mov esi, eax
test esi, esi
je 0x4b7f7c
mov eax, 1
jmp 0x4b7f8d
call ebp
mov ebx, eax
test ebx, ebx
je 0x4b809f
mov eax, 2
mov dword [0x8cd718], eax
cmp eax, 1
jne 0x4b8032
test esi, esi
jne 0x4b7fab
call edi
mov esi, eax
test esi, esi
je 0x4b809f
cmp word [esi], 0
mov eax, esi
je 0x4b7fc5
add eax, 2
cmp word [eax], 0
jne 0x4b7fb3
add eax, 2
cmp word [eax], 0
jne 0x4b7fb3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4b8024
push edi
call fcn.004b0e30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b8024
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4b8016
push ebx
call fcn.004b0ee0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4b809f
test ebx, ebx
jne 0x4b8043
call ebp
mov ebx, eax
test ebx, ebx
je 0x4b809f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4b805b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4b804b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4b804b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004b0e30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4b807d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4bb490
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004b13e0
mov eax, dword [0x8cdaa0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4bb5f2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x8cd9a0]
test byte [edx + ecx*8 + 4], 1
je 0x4bb5f2
push 1
push ebp
push ebx
call fcn.004b69c0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4bb5fc
push 2
push ebp
push ebx
call fcn.004b69c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4bb5fc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4bb598
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004bbc20
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4bb53f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004b67a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4bb55b
sub esi, eax
test esi, esi
jle 0x4bb571
jmp 0x4bb530
cmp dword [0x8cd50c], 5
jne 0x4bb56e
mov dword [0x8cd508], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004bbc20
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004b69c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4bb5d9
push 0
push ecx
push ebx
call fcn.004b69c0
add esp, 0xc
push ebx
call fcn.004b9ad0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4bb5d9
mov dword [0x8cd508], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x8cd50c], eax
push 0
push edi
push ebx
call fcn.004b69c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x8cd508], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x4bc060
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4bc21e
push 0x3d
push edi
call fcn.004bc360
mov esi, eax
add esp, 8
test esi, esi
je 0x4bc21e
cmp edi, esi
je 0x4bc21e
mov dl, byte [esi + 1]
mov ecx, dword [0x8cd534]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x8cd530]
cmp eax, ecx
jne 0x4bc0b7
push eax
call fcn.004bc2f0
add esp, 4
mov dword [0x8cd530], eax
test eax, eax
jne 0x4bc132
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bc0de
mov eax, dword [0x8cd538]
test eax, eax
je 0x4bc0de
call fcn.004bbce0
test eax, eax
je 0x4bc12d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4bc0ea
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004b0e30
add esp, 4
mov dword [0x8cd530], eax
test eax, eax
je 0x4bc21e
mov dword [eax], 0
mov eax, dword [0x8cd538]
test eax, eax
jne 0x4bc12d
push 4
call fcn.004b0e30
add esp, 4
mov dword [0x8cd538], eax
test eax, eax
je 0x4bc21e
mov dword [eax], 0
mov eax, dword [0x8cd530]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004bc270
mov esi, eax
add esp, 8
test esi, esi
jl 0x4bc22f
cmp dword [ebx], 0
je 0x4bc22f
test ebp, ebp
je 0x4bc227
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004b0ee0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4bc189
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4bc178
lea eax, [esi*4]
push eax
push ebx
call fcn.004b1410
add esp, 8
test eax, eax
je 0x4bc1a3
mov dword [0x8cd530], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bc216
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004b0e30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bc216
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004b0ee0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4bc1a7
test ebp, ebp
jne 0x4bc216
test esi, esi
jge 0x4bc239
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004b1410
add esp, 8
test eax, eax
je 0x4bc21e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x8cd530], eax
jmp 0x4bc1a7
Function at 0x8d68b0
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
movzx eax, byte [edx + 0xd]
cmp al, 5
je 0x8d68fc
cmp al, 0x15
je 0x8d68e1
cmp al, 3
jne 0x8d691f
movzx eax, byte [edx + 0xf]
mov dword [esp], eax
call fcn.004a4660
test eax, eax
je 0x8d691f
mov ecx, eax
add esp, 0x1c
jmp fcn.0046e6b0
lea eax, [edx + 0x2f]
cmp byte [edx + 0x2f], 0x2a
je 0x8d6923
cmp byte [edx + 0x2f], 0
je 0x8d691f
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp fcn.004700e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [edx + 8]
mov dword [esp], eax
call fcn.0046f820
add esp, 0x1c
ret
cmp byte [eax + 1], 0
jne 0x8d68ea
add esp, 0x1c
jmp fcn.008d7066

Function at 0x8dadfc
Capabilities:
Get disk information

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x9667c0
mov dword [esp], 0x9667ca
call fcn.008da531
mov byte [0x797e30], al
mov dword [esp + 0x20], ebx
add esp, 0x18
pop ebx
jmp fcn.00482690

Function at 0x8db36f
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
call fcn.008db148
test eax, eax
jne 0x8db37f
add esp, 0xc
ret
add esp, 0xc
jmp fcn.004b2810
Function at 0x8db388
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xa7c
mov dword [esp], 0x9669ec
call dword [0x97d254]
sub esp, 4
mov dword [esp + 4], 0x9669f6
mov dword [esp], eax
call dword [0x97d25c]
sub esp, 8
test eax, eax
je 0x8db3ed
lea edi, [esp + 0x58]
xor ebx, ebx
mov ecx, 0x82
mov eax, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x103
lea esi, [esp + 0x58]
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [0x97d250]
sub esp, 0xc
test eax, eax
jne 0x8db3fc
xor ebx, ebx
mov eax, ebx
add esp, 0xa7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x260]
mov ecx, 0x82
mov eax, ebx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x468]
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea edx, [esp + 0x468]
mov dword [esp + 0x10], edx
lea ebp, [esp + 0x260]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x97d2e4]
lea edi, [esp + 0x670]
mov ecx, 0x100
mov eax, ebx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x468]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x966a08
mov dword [esp + 4], 0x1ff
lea ebx, [esp + 0x670]
mov dword [esp], ebx
call dword [0x97d2dc]
mov dword [esp + 0x20], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2001f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], reloc.DPLAYX.dll_Ordinal_1
call dword [0x97d224]
sub esp, 0x24
test eax, eax
jne 0x8db3ed
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0xa90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [0x97d228]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x8db53a
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [0x97d220]
sub esp, 4
mov eax, ebx
add esp, 0xa7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x38]
mov esi, 0x966a60
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], 0x20
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [esp + 0xa90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [0x97d22c]
sub esp, 0x18
xor ebx, ebx
test eax, eax
sete bl
jmp 0x8db51d

Function at 0x8db5f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test ebx, ebx
je 0x8db623
not eax
mov edx, dword [esp + 0xc]
add ebx, edx
mov ecx, eax
shr ecx, 8
xor al, byte [edx]
movzx eax, al
xor ecx, dword [eax*4 + 0x966b40]
mov eax, ecx
add edx, 1
cmp ebx, edx
jne 0x8db605
not eax
pop ebx
ret
mov eax, dword [esp + 8]
pop ebx
ret
Function at 0x8dc9c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x8dc9e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x8dc9f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x8dc9e5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x8dca38
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8dca2e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x8dca3a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x8dca20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100f318e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100f319d
pop dword [ebp - 0x28]
mov eax, 0x1692491a
sub eax, 0x683177d
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xd189a0f6
sub dword [ebp - 0x38], 0x83375bab
mov dword [ebp - 0x34], 0x632386b6
add dword [ebp - 0x34], 0xcf0fc58f
mov dword [ebp - 0x30], 0x3d84b763
add dword [ebp - 0x30], 0xec78ccb
mov dword [ebp - 0x2c], 0x3d8f3f43
sub dword [ebp - 0x2c], 0x3d8f3f43
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x3a054236
sub dword [ebp - 0x38], 0xc592d8e0
mov dword [ebp - 0x34], 0x3be583b
sub dword [ebp - 0x34], 0xc251f6c6
mov dword [ebp - 0x30], 0x2047972a
sub dword [ebp - 0x30], 0xbcd82abe
mov dword [ebp - 0x2c], 0xa793e7ce
add dword [ebp - 0x2c], 0x586c1832
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xd7703667
sub eax, 0xc7702607
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b30b
push 0
call eax
mov ecx, 0x7973b76b
sub ecx, 0x797370c4
xor ebx, ebx
add ebx, eax
mov esi, 0x26dae00f
add esi, 0xe941bdf1
add esi, dword [ebp - 0x28]
mov edi, 0x619f36bd
add edi, 0x8f72fa95
add dword [ebp - 0x14], eax
mov edx, dword [esi]
xor dword [ebp - 0x14], esi
xor edx, edi
mov dword [ebx], edx
xor dword [ebp - 0xc], 0x923be4de
add ebx, 4
add esi, 0xd72ac164
add esi, 0x28d53ea0
loop 0x100f32bc
add eax, 0x60622bc
sub eax, 0x605154d
xor ebx, ebx
add ebx, eax
add eax, 0xfc2e9e1f
add eax, 0x3d161e6
mov ecx, 0xd29bd771
add ecx, 0x3d64288f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x100f9147
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
push 0x10085744
mov esi, ecx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x100f9178
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x100f920a
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x10085738
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x100f91f7
push 0x1008572c
push dword [esi + 0x1c]
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x100f91f7
push 0x1008571c
push dword [esi + 0x1c]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x100f91f7
push 0x10085710
push dword [esi + 0x1c]
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x100f91f7
push 0x10085704
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x100f91f7
push 0x100856fc
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x100f91f7
push 0x100856f0
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x100f91f7
xor eax, eax
jmp 0x100f9209
push dword [esi + 0x1c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [esi + 0x1c], 0
mov eax, 0x80004005
pop edi
pop esi
ret
Function at 0x4038be
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038e7
cmp al, 0x22
je 0x4038df
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038d3
cmp byte [esi], 0x22
jne 0x4038f1
inc esi
jmp 0x4038f1
cmp al, 0x20
jle 0x4038f1
inc esi
cmp byte [esi], 0x20
jg 0x4038eb
mov al, byte [esi]
test al, al
je 0x4038fb
cmp al, 0x20
jle 0x4038e4
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403969
push 0x405004
push section..data
jmp section..htext
Function at 0x4028b8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028f5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402915
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404360
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402a7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040f0
test esi, esi
jne 0x402ab2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041e0
jmp 0x402ad0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402990
mov edi, eax
test esi, esi
je 0x402ad0
cmp dword [ebx], 0
je 0x402ad0
dec esi
jmp 0x402ab9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403194
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40322c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40320c
xor eax, eax
push ebp
push 0x403205
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403248
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40320c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ef0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x493048], 0
je 0x403f51
cmp word [0x49321c], 0xd7b2
jne 0x403f19
cmp dword [0x493224], 0
jbe 0x403f19
mov eax, 0x493218
call dword [0x493234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48a06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48a030], 0
jne 0x403f6d
push 0
push 0x48a064
push 0x48a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4040a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x493049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40406c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405cde
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404360
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d34
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cc8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ce5
lea eax, [ebp - 0x10]
call fcn.004040f0
ret

Function at 0x4086e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086f9
test al, 0x10
jne 0x4086fd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b1a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b1dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041e0
jmp 0x40b1e6
mov eax, ebx
mov edx, esi
call fcn.00404144
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b211
mov al, byte [esp]
jmp 0x40b213
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b898
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b710
mov eax, dword [0x491f98]
cmp byte [eax], 0
je 0x40b914
mov eax, dword [0x491d80]
call fcn.00402ba0
call fcn.00402844
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a04
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b95c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b94a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x491d2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x493664]
call fcn.0040518c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret