joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c484
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
mov al, 0xff
push dword [ebp + 0x10]
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
push dword [ebp + 0xc]
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 7], al
xor eax, eax
lea edi, [ebp - 6]
push 0x41c7f0
mov dword [ebp - 0x1c], 1
stosd dword es:[edi], eax
call fcn.00403cd9
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push dword [ebp + 0xc]
push eax
call fcn.0040c41f
mov al, byte [esi + 1]
push eax
call fcn.0040c400
mov bl, al
mov al, byte [esi]
push eax
call fcn.0040c400
shl al, 4
add bl, al
mov al, byte [esi + 2]
push eax
mov byte [ebp - 0x18], bl
call fcn.0040c400
mov bl, al
mov al, byte [esi + 3]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 4]
push eax
mov byte [ebp - 0x17], bl
call fcn.0040c400
mov bl, al
mov al, byte [esi + 5]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 6]
push eax
mov byte [ebp - 0x16], bl
call fcn.0040c400
mov bl, al
mov al, byte [esi + 7]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 8]
push eax
mov byte [ebp - 0x15], bl
call fcn.0040c400
add esp, 0x40
mov bl, al
mov al, byte [esi + 9]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 0xa]
push eax
mov byte [ebp - 0x14], bl
call fcn.0040c400
mov bl, al
shl bl, 4
mov al, byte [esi + 0xb]
push eax
call fcn.0040c400
add bl, al
lea eax, [ebp - 0xc]
push 6
push eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 0x13], bl
push eax
call fcn.0040cb80
add esp, 0x18
lea esi, [ebp - 0xda]
push 0x14
pop edi
lea eax, [ebp - 0x18]
push 6
push eax
push esi
call fcn.0040cb80
add esp, 0xc
add esi, 6
dec edi
jne 0x40c59c
lea eax, [ebp - 0x60]
mov word [ebp - 0x2c], 2
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 7
mov dword [ebp - 0x28], eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 2
push 2
mov word [ebp - 0x2a], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c5fa
push 0x41c538
push dword [ebp + 8]
call fcn.0040b6b6
pop ecx
pop ecx
push 0xfffffffffffffffb
pop eax
jmp 0x40c683
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40c626
push 0x41c7e4
push dword [ebp + 8]
call fcn.0040b6b6
pop ecx
pop ecx
push 0xfffffffffffffffa
jmp 0x40c65f
push 0x41c7cc
call fcn.00403cd9
pop ecx
lea eax, [ebp - 0x2c]
push 0x10
push eax
push 0
lea eax, [ebp - 0xe0]
push 0x7e
push eax
push esi
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40c66b
push 0x41c7c4
push dword [ebp + 8]
call fcn.0040b6b6
pop ecx
pop ecx
push 0xfffffffffffffff9
pop edi
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, edi
jmp 0x40c683
test esi, esi
jl 0x40c676
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x41c7b4
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4027f8
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.00403dac
test esi, esi
jne 0x40282e
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.00403e9c
jmp 0x40284c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040270c
mov edi, eax
test esi, esi
je 0x40284c
cmp dword [ebx], 0
je 0x40284c
dec esi
jmp 0x402835
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40337c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40335c
xor eax, eax
push ebp
push 0x403355
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 0x403398
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 0x40335c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x403c91
cmp word [0x40c218], 0xd7b2
jne 0x403c59
cmp dword [0x40c220], 0
jbe 0x403c59
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b060
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 0x403cb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x403cad
push 0
push 0x40b058
push 0x40b060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4047b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4049e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40483b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4049e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40483b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404a04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4048c4
xor eax, eax
push ebp
push 0x4048bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404600
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4048a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404a24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4048a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4049de
cmp byte [ebp - 0xd], 0
jne 0x40490b
cmp byte [ebp - 0x12], 0
je 0x4049de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404924
dec ebx
cmp byte [ebx], 0x2e
je 0x404933
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404923
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4049de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404970
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049de
cmp byte [ebp - 0xd], 0
je 0x4049de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b74
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 0x404bda
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.00404000
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ed8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404bc4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404be1
lea eax, [ebp - 0x10]
call fcn.00403dac
ret

Function at 0x405f6c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040422c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x405f80
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040422c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x405fa2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x406df8
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 0x406e31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e9c
jmp 0x406e3a
mov eax, ebx
mov edx, esi
call fcn.00403e00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406e44
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 0x406e65
mov al, byte [esp]
jmp 0x406e67
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4074ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407364
mov eax, dword [0x40b3b0]
cmp byte [eax], 0
je 0x407568
mov eax, dword [0x40b304]
call fcn.00402c14
call fcn.00402644
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.004061e4
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 0x4075b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40759e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40b2e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40c660]
call fcn.004045c4
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 main
add esp, 0x444
ret
Function at 0x407f5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407fc0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405ec4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407fc7
lea eax, [ebp - 0xc]
call fcn.00403dac
ret

Function at 0x408e1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040421c
xor eax, eax
push ebp
push 0x408eb9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x205]
mov edx, dword [ebp - 4]
call fcn.00406240
lea eax, [ebp - 0x24c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ce8
mov dword [ebp - 0x24c], 0x44
mov dword [ebp - 0x220], 1
mov word [ebp - 0x21c], 5
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x205]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ec0
lea eax, [ebp - 4]
call fcn.00403dac
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040422c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x408f3e
test byte [ebp - 0xc], 0x10
jne 0x408f42
xor eax, eax
jmp 0x408f44
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40923c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040421c
mov eax, dword [ebp - 8]
call fcn.0040421c
xor eax, eax
push ebp
push 0x409357
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
push 0x409370
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004040ec
mov eax, dword [ebp - 0x154]
call fcn.0040422c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x409323
jmp 0x40930f
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404000
mov eax, dword [ebp - 0x15c]
mov ecx, 1
mov edx, 1
call fcn.00404238
mov eax, dword [ebp - 0x158]
mov edx, 0x40937c
call fcn.00404178
je 0x40930f
add dword [ebp - 0xc], 1
jae 0x40930f
call fcn.004033b4
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4092c0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40935e
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403dd0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dd0
ret

Function at 0x40942c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x4094af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, dword [0x40c978]
mov edx, 0x4094c4
call fcn.00404078
lea eax, [ebp - 8]
mov ecx, 0x409564
mov edx, dword [0x40c97c]
call fcn.00404078
push 0
mov eax, dword [0x40c96c]
push eax
call sub.user32.dll_ShowWindow
push 0x40
mov eax, dword [ebp - 8]
call fcn.0040422c
push eax
mov eax, dword [ebp - 4]
call fcn.0040422c
push eax
push 0
call main
call fcn.00403cbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094b6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dd0
ret
Function at 0x409574
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
xor ecx, ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040421c
mov eax, dword [ebp - 8]
call fcn.0040421c
xor eax, eax
push ebp
push 0x4096b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x154]
push eax
mov ecx, 4
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00404238
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x10]
call fcn.00405d78
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
push 0x4096cc
push dword [ebp - 8]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004040ec
mov eax, dword [ebp - 0x158]
call fcn.0040422c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40967d
cmp byte [ebp - 0x123], 0x2e
je 0x409669
push dword [ebp - 4]
push 0x4096cc
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404000
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.004040ec
mov eax, dword [ebp - 0x15c]
call fcn.004091ac
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x409621
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096c0
lea eax, [ebp - 0x160]
mov edx, 4
call fcn.00403dd0
lea eax, [ebp - 0x10]
call fcn.00403dac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403dd0
ret
Function at 0x409e08
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x409e10
push ebx
push esi
push edi
mov eax, 0x409db8
call fcn.00404dd4
xor eax, eax
push ebp
push 0x409fe8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.004027f8
mov eax, dword [ebp - 0x14]
mov edx, 0x40a000
call fcn.00404178
jne 0x409e96
mov ax, 5
call fcn.00408ec4
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.004027f8
push dword [ebp - 0x1c]
push 0x40a014
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.004027f8
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004040ec
mov eax, dword [ebp - 0x18]
call fcn.00408e1c
call fcn.00403cbc
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.004027f8
mov eax, dword [ebp - 0x24]
mov edx, 0x40a020
call fcn.00404178
jne 0x409efa
mov ax, 0xa
call fcn.00408ec4
lea edx, [ebp - 0x2c]
mov eax, 2
call fcn.004027f8
push dword [ebp - 0x2c]
push 0x40a014
lea edx, [ebp - 0x30]
mov eax, 3
call fcn.004027f8
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004040ec
mov eax, dword [ebp - 0x28]
call fcn.00408e1c
call fcn.00403cbc
lea edx, [ebp - 0x34]
mov eax, 1
call fcn.004027f8
mov eax, dword [ebp - 0x34]
mov edx, 0x40a034
call fcn.00404178
je 0x409f1b
call fcn.00403cbc
mov edx, 0x40c97c
mov eax, 2
call fcn.004027f8
call fcn.00408b3c
test al, al
je 0x409f38
call fcn.00408bb8
call fcn.00409380
lea eax, [ebp - 0x38]
mov ecx, 0x40a048
mov edx, dword [0x40c970]
call fcn.00404078
mov eax, dword [ebp - 0x38]
call fcn.00405f5c
test al, al
jne 0x409f81
push 0
mov eax, dword [0x40c96c]
push eax
call sub.user32.dll_ShowWindow
push 0x30
push 0x40a054
push 0x40a05c
push 0
call main
call fcn.00403cbc
mov ax, 5
call fcn.00408ec4
mov byte [0x40c980], 0
xor eax, eax
push ebp
push 0x409fae
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004096d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409fbf
cmp byte [0x40c980], 0
je 0x409fcd
call fcn.0040942c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fef
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00403dd0
ret
Function at 0x10016ec
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001138
call fcn.010018d0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001727
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001727
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100173f
cmp eax, 0x20b
je 0x100172c
mov dword [ebp - 0x1c], edi
jmp 0x1001753
cmp dword [ecx + 0x84], 0xe
jbe 0x1001727
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100174d
cmp dword [ecx + 0x74], 0xe
jbe 0x1001727
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100201c], 0xffffffff
or dword [0x1002020], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002024], eax
call fcn.010018cc
cmp dword [section..data], edi
jne 0x10017ae
push fcn.010018cc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010018ba
push 0x10010c4
push 0x10010c0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010bc
push 0x10010b8
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001468
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001825
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100185a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001909
ret
Function at 0x1000ac00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xorps xmm1, xmm1
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1000ac5d
lea edx, [esi + 8]
mov edi, eax
nop word [eax + eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x1000ac20
mov eax, dword [esi]
jmp 0x1000ad37
cmp eax, 0x4e0
jb 0x1000ad37
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x1000ac76
mov edi, dword [ebp + 8]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x1000acc0
mov esi, dword [ebp + 8]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov ecx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [esi + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
pop esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101187f0]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1011878c]
movss dword [ebp - 4], xmm0
fld dword [ebp - 4]
mov esp, ebp
pop ebp
ret