joyce8/EMBER2024-capa huggingface dataset:
Function at 0x660c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x699442
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x763480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00530780
mov dword [edi], vtable.CSkyObject.0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea esi, [edi + 0x134]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005df3dc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0x3f800000
mov dword [edi + 0x1cc], 0x3f800000
mov dword [edi + 0x1d0], 0x3f800000
mov dword [edi + 0x1d8], 0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0xf
mov byte [edi + 0x1d8], 0
lea ecx, [edi + 0x1f4]
mov byte [ebp - 4], 3
call fcn.00548870
mov dword [edi + 0x174], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x154], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x178], 0x3f800000
mov dword [edi + 0x164], 0x3f800000
mov dword [edi + 0x150], 0x3f800000
mov dword [edi + 0x13c], 0x3f800000
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x1b8], 0x3f800000
mov dword [edi + 0x1a4], 0x3f800000
mov dword [edi + 0x190], 0x3f800000
mov dword [edi + 0x17c], 0x3f800000
mov byte [ebp - 4], 4
mov dword [edi + 0xf8], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xfc], 0x3f800000
mov dword [edi + 0xe8], 0x3f800000
mov dword [edi + 0xd4], 0x3f800000
mov dword [edi + 0xc0], 0x3f800000
mov ecx, dword [0x77777c]
call fcn.00520130
mov dword [edi + 0x130], eax
mov eax, edi
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov word [edi + 0x1f0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xdde798
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdde7a2
pushal
call 0xdde7a8
pop ebp
sub ebp, 0x10
sub ebp, 0x9de798
jmp 0xdde7be
mov eax, 0x9de798
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bc
add byte [ecx + 0x5bc], bh
mov edx, 0x9a3c3ddc
xor byte [eax], dl
inc eax
dec ecx
jne 0xdde7d5
jmp 0xdde7e8
push edi
adc dword [edi + 0x55], edx
loopne 0xdde7ca
invalid
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x13f5108c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x664c360a
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403eb2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00403eb2
xor esi, esi
push esi
push esi
push esi
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
shl eax, 2
add ebx, eax
mov dword [ebx + 0x14], 0
mov ebx, dword [ebp + 8]
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebx + 0x14], 0
mov ebx, dword [ebp + 8]
xor eax, eax
shl eax, 2
add ebx, eax
mov dword [ebx], 0x67452301
mov ebx, dword [ebp + 8]
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebx], 0xefcdab89
mov ebx, dword [ebp + 8]
mov eax, 2
shl eax, 2
add ebx, eax
mov dword [ebx], 0x98badcfe
mov ebx, dword [ebp + 8]
mov eax, 3
shl eax, 2
add ebx, eax
mov dword [ebx], 0x10325476
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x405841
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00405841
xor esi, esi
xor edi, edi
mov ecx, 0x10c
push esi
dec ecx
jne 0x40585d
mov edi, 0x400
lea ebx, [ebp - 0x49c]
mov eax, ebx
mov dword [ebp - 0x4b4], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
fldcw word [ebp - 0x10]
mov esi, eax
fild qword [0x41c0c0]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fcompp
fnstsw ax
sahf
je 0x40594c
lea ebx, [ebp - 0x4b0]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x98], eax
push 0
lea ebx, [ebp - 0x4a4]
push ebx
mov eax, edi
push eax
push dword [ebp - 0x4b4]
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
je 0x405940
push dword [ebp - 0x4a4]
push dword [ebp - 0x4b4]
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405389
mov eax, dword [ebp - 0x4ac]
sub eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x405940
jmp 0x4058d9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x406ab4
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00406ab4
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
fldcw word [ebp - 0x10]
mov esi, eax
push 1
mov edx, dword [ebp + 0xc]
call fcn.00417fe2
push 0
mov ebx, esp
call fcn.004173d3
call fcn.004069ea
pop dword [ebp - 0x30]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xa8], eax
push 4
push 0x1000
push dword [ebp - 0xa8]
push 0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
fldcw word [ebp - 0x10]
mov edi, eax
lea ebx, [ebp - 0xb0]
push ebx
push dword [ebp - 0xa8]
lea ebx, [ebp + 0xc]
call fcn.004180ee
push ebx
mov eax, edi
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
fldcw word [ebp - 0x10]
mov dword [ebp - 0xac], eax
push 0
mov edx, 0x41b9f8
call fcn.00417ff9
lea ebx, [esp]
call fcn.00417495
push 0
mov edx, 0x41b9e8
call fcn.00417ff9
lea ebx, [esp]
call fcn.00417495
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00413528
pop eax
add esp, 4
fldcw word [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00413528
pop eax
add esp, 4
fldcw word [ebp - 0x10]
mov dword [ebp - 0xa4], eax
lea ebx, [ebp - 0xb0]
push ebx
push 0
mov eax, edi
push eax
push dword [ebp - 0xa4]
push 0
push 0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
fldcw word [ebp - 0x10]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x406bf7
mov dword [ebp - 0x98], 1
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
call fcn.00417eaa
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x406c38
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00406c38
xor esi, esi
xor edi, edi
mov ecx, 0x91
push esi
dec ecx
jne 0x406c54
mov dword [ebp - 0xa4], 0
mov eax, 0x224
mov dword [ebp - 0x2c8], eax
push dword [ebp + 8]
push 8
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
fldcw word [ebp - 0x10]
mov esi, eax
lea ebx, [ebp - 0x2c8]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_Module32First]
fldcw word [ebp - 0x10]
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
fild dword [0x41c14c]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fcompp
fnstsw ax
sahf
je 0x406d24
xor eax, eax
lea ebx, [ebp - 0x1a8]
call fcn.00417e0b
xor ecx, ecx
xchg ecx, eax
call fcn.00410efd
mov eax, 1
mov edx, dword [ebp + 0xc]
call fcn.00417fe2
mov dword [ebp - 0x30], ecx
xor ecx, ecx
xchg ecx, eax
call fcn.00410efd
mov eax, ecx
call fcn.0040f1de
cmp eax, dword [ebp - 0x30]
jle 0x406d0a
mov dword [ebp - 0xa4], 1
jmp 0x406d24
lea ebx, [ebp - 0x2c8]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_Module32Next]
fldcw word [ebp - 0x10]
mov edi, eax
jmp 0x406ca0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x98], eax
call fcn.00417eaa
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x406d62
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00406d62
xor esi, esi
mov ecx, 0x50
push esi
dec ecx
jne 0x406d7c
xor eax, eax
call fcn.00418024
mov dword [ebp - 0x98], 0
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, 0x128
mov dword [ebp - 0x1c4], eax
lea ebx, [ebp - 0x1c4]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_Process32First]
fldcw word [ebp - 0x10]
nop
nop
push 1
lea ebx, [ebp - 0x1c4]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_Process32Next]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jl 0x406e2a
lea ebx, [ebp - 0x1a0]
call fcn.00417e0b
xor eax, eax
call fcn.00410eb6
mov edx, dword [ebp + 8]
call fcn.00417fe2
xor eax, eax
call fcn.00410eb6
call fcn.0041772c
jne 0x406e1e
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x98], eax
jmp 0x406e2a
mov eax, 1
call fcn.00412985
jmp 0x406dc0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
call fcn.00417eaa
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x407e6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00407e6f
xor esi, esi
xor edi, edi
mov ecx, 0x207
push esi
dec ecx
jne 0x407e8b
xor eax, eax
call fcn.00418024
mov edx, dword [ebp + 0x10]
call fcn.00417fe2
mov edx, 0x41bb70
call fcn.00417ff9
call fcn.0041772c
jne 0x407ecc
push 0
xor eax, eax
call fcn.0040e1d0
xor eax, eax
call fcn.0040e1d0
call fcn.0040e181
lea ebx, [ebp + 0x10]
call fcn.004173d3
push 0
push 0
push 0
lea ebx, [ebp - 0xa0]
mov dword [ebx], edi
push ebx
lea ebx, [ebp - 0x9c]
mov dword [ebx], esi
push ebx
push 0
push 0xf003f
push 0
mov edx, 0x41b920
call fcn.00417ff9
lea ebx, [esp + 0x18]
call fcn.00417495
push 0
mov edx, dword [ebp + 0xc]
call fcn.00417fe2
push 0
xor eax, eax
call fcn.0040e1d0
call fcn.0040e181
call fcn.00417697
lea ebx, [esp + 0x1c]
call fcn.00417495
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
push eax
mov ebx, esp
mov eax, dword [ebx + 8]
call fcn.00413528
mov eax, dword [ebx + 4]
call fcn.00413528
pop eax
add esp, 8
mov esi, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
je 0x407f72
mov dword [ebp - 0x98], 0
jmp 0x40806f
mov edx, dword [ebp + 0x14]
call fcn.00417fe2
lea ebx, [ebp - 0x8a0]
mov ecx, 0x800
call fcn.00417e54
mov edx, dword [ebp + 0x14]
call fcn.00417fe2
call fcn.00417fc7
test eax, eax
je 0x40800b
push 0
mov eax, 1
mov edx, dword [ebp + 0x14]
call fcn.00417fe2
mov dword [ebp - 0x30], eax
call fcn.00417fc7
mov ecx, dword [ebp - 0x30]
add eax, ecx
push eax
lea ebx, [ebp - 0x8a0]
push ebx
push 1
push 0
mov edx, dword [ebp + 0x10]
call fcn.00417fe2
push 0
xor eax, eax
call fcn.0040e1d0
call fcn.0040e181
call fcn.00417697
lea ebx, [esp + 0x10]
call fcn.00417495
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00413528
pop eax
add esp, 4
fldcw word [ebp - 0x10]
jmp 0x408059
push 0
push 1
lea ebx, [ebp - 0x8a0]
push ebx
push 1
push 0
mov edx, dword [ebp + 0x10]
call fcn.00417fe2
push 0
xor eax, eax
call fcn.0040e1d0
call fcn.0040e181
call fcn.00417697
lea ebx, [esp + 0x10]
call fcn.00417495
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00413528
pop eax
add esp, 4
fldcw word [ebp - 0x10]
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], 1
call fcn.00417eaa
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4080e9
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004080e9
xor esi, esi
xor edi, edi
mov ecx, 0x42
push esi
dec ecx
jne 0x408105
xor eax, eax
call fcn.00418024
mov dword [ebp - 0x98], 0
push 0
push 0x10000
push 1
push 0x1000000
push 0
lea ebx, [ebp - 0x18c]
call fcn.0040e2a5
mov edx, dword [ebp + 8]
call fcn.00417fe2
xor eax, eax
call fcn.00410eb6
mov edx, 0x41bb70
call fcn.00417ff9
call fcn.004167fb
mov esi, eax
lea ebx, [ebp - 0x118]
mov eax, 2
call fcn.0040e56b
push 0
mov eax, esi
sub eax, 1
push eax
push 4
push 0x12e0008
push 0
lea ebx, [ebp - 0x118]
call fcn.0040e2a5
mov edx, dword [ebp + 8]
call fcn.00417fe2
xor eax, eax
call fcn.00410eb6
lea ebx, [ebp - 0x118]
mov edx, 0x41bb70
call fcn.00417ff9
call fcn.00416cd3
xor eax, eax
add eax, dword [ebp - 0x18c]
mov ebx, eax
mov eax, ebx
mov dword [ebp - 0xa4], eax
push 0
xor eax, eax
lea ebx, [esp]
push ebx
mov dword [ebx], eax
push 0x10000
push dword [ebp - 0xa4]
push 5
call dword [sym.imp.NTDLL.DLL_NtQuerySystemInformation]
add esp, 4
fldcw word [ebp - 0x10]
mov edi, eax
mov eax, edi
push eax
call fcn.00408091
not eax
test eax, eax
je 0x4081fd
cmp edi, 0xc0000004
jne 0x4081fd
cmp edi, 0
jne 0x4081fd
jmp 0x4082a3
nop
nop
nop
mov ebx, dword [ebp - 0xa4]
mov eax, dword [ebx + 0x44]
call fcn.004173a5
call fcn.004161dc
mov eax, 1
sub eax, dword [ebp - 0x100]
mov ebx, dword [ebp - 0x118]
mov edx, dword [ebx + eax*4]
call fcn.00417fe2
call fcn.0041772c
jne 0x408246
mov dword [ebp - 0x98], 1
jmp 0x408293
fild dword [0x41c14c]
mov ebx, dword [ebp - 0xa4]
mov eax, dword [ebx]
call fcn.004173a5
fcompp
fnstsw ax
sahf
jne 0x40826e
jmp 0x408293
mov ebx, dword [ebp - 0xa4]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xa4]
add eax, ecx
mov dword [ebp - 0xa4], eax
mov eax, 1
call fcn.00412985
jmp 0x408200
lea ebx, [ebp - 0x18c]
mov eax, 8
call fcn.0040e56b
call fcn.00417eaa
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4087ab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004087ab
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov eax, 0x90
call fcn.004127f1
lea ebx, [ebp - 0x9c]
call fcn.004173d3
push 0
lea ebx, [ebp + 8]
call fcn.004180ee
push ebx
push 0x90
lea ebx, [ebp - 0x9c]
call fcn.004180ee
push ebx
mov edx, 0x41b920
call fcn.00417ff9
lea ebx, [esp + 0xc]
call fcn.00417495
lea ebx, [ebp + 0x10]
call fcn.004180ee
push ebx
lea ebx, [ebp + 0xc]
call fcn.004180ee
push ebx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.00413528
pop eax
add esp, 4
fldcw word [ebp - 0x10]
mov si, ax
xor eax, eax
movsx ecx, si
cmp ecx, eax
jle 0x4088e7
mov edx, 0x41b920
call fcn.00417ff9
lea ebx, [ebp - 0xa4]
call fcn.004173d3
mov di, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor eax, eax
mov edx, dword [ebp - 0x9c]
call fcn.00417fe2
movsx ecx, di
mov dword [ebp - 0x30], eax
mov eax, 1
call fcn.0041202a
call fcn.004163c1
cmp eax, dword [ebp - 0x30]
jne 0x4088a5
jmp 0x4088e2
mov edx, dword [ebp - 0xa4]
call fcn.00417fe2
mov edx, dword [ebp - 0x9c]
call fcn.00417fe2
movsx ecx, di
mov eax, 1
call fcn.0041202a
call fcn.00417697
lea ebx, [ebp - 0xa4]
call fcn.004173d3
inc di
cmp di, 0x90
jle 0x408870
jmp 0x4088fc
mov edx, 0x41b920
call fcn.00417ff9
lea ebx, [ebp - 0xa4]
call fcn.004173d3
mov edx, dword [ebp - 0xa4]
call fcn.00417fe2
call fcn.00415c01
call fcn.00415c58
lea ebx, [ebp - 0x98]
call fcn.004173d3
call fcn.00417eaa
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40da6b
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x40da4d], 4
jne 0x40da86
jmp fcn.0040dcb8
jmp 0x40deb5
cmp dword [ebp + 0xc], 1
jne 0x40df13
call fcn.0040dbb4
lea eax, [ebx + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.0040dc5a
mov dword [ebx + 0x3e0], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x3ec], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x3f4], eax
call fcn.0040da8b
jb 0x40df6e
inc word [ebx + 0x3e8]
movzx ecx, word [0x40da4b]
jecxz 0x40df13
push ecx
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
pop eax
pop eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x3f0], eax
cmp eax, 2
jne 0x40df26
call fcn.0040dd97
push ebx
call fcn.0040db00
pop ebx
cmp dword [ebx + 0x3f0], 3
jne 0x40df3b
call fcn.0040ddd0
cmp dword [ebx + 0x3f0], 0
jne 0x40df6e
mov ecx, dword [ebx + 0xd8]
call fcn.0040df7c
mov ecx, dword [ebx + 0xb4]
jecxz 0x40df5e
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebx + 0x428]
call fcn.0040db05
call fcn.0040daec
movzx eax, word [ebx + 0x3e8]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40da8b
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x40daeb
mov dword [ebx + 0x3d0], eax
mov dword [ebx + 0x3d8], 0
mov dword [ebx + 0x3d4], 0
call fcn.0040dd97
jb 0x40daeb
mov dword [ebx + 0x3d4], eax
mov word [eax + 0xac], 8
call fcn.0040dada
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x40daf4
push ebx
jb 0x40db41
add byte [esi - 4], bl
mov bl, 0xd0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret

Function at 0x40dfb8
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
sub esp, 0x20
call fcn.0040e09f
mov edi, esp
mov cl, 4
call fcn.0040dfd9
call fcn.0040dfd9
mov edx, 8
jmp 0x40e032
or esi, esi
jne 0x40e03a
mov byte [edi], 0x30
inc esi
mov ecx, dword [esp + 0x2c]
jecxz 0x40e048
cmp ecx, edx
jbe 0x40e04a
mov ecx, edx
jmp 0x40e04a
mov ecx, esi
cmp ecx, esi
ja 0x40e054
add esi, esp
sub esi, ecx
jmp 0x40e072
mov edx, esi
lea edi, [esp + ecx - 1]
lea esi, [esp + esi - 1]
push ecx
mov ebx, ecx
sub ebx, edx
mov ecx, edx
std
rep movsb byte es:[edi], byte [esi]
mov al, 0x30
mov ecx, ebx
rep stosb byte es:[edi], al
cld
pop ecx
mov esi, esp
call fcn.004180bd
jb 0x40e081
add esp, 0x20
pop edi
pop esi
pop ebx
pop eax
ret
add esp, 0x20
pop edi
pop esi
pop ebx
pop edx
jmp fcn.0040dccf
Function at 0x40e0a7
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
sub esp, 0x170
mov dword [esp], eax
mov dword [esp + 4], ecx
and eax, 0x7fff
mov esi, eax
cld
xor eax, eax
mov ecx, 4
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x5c]
call fcn.00417652
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], si
lea eax, [esp + 8]
lea ebx, [esp + 0x18]
mov edi, dword [esp + 4]
push edi
push 0
push 0xc
mov ecx, esp
push eax
push ebx
push 0
push 0
push 0x20
push edi
push ecx
push ecx
push edx
push 0
mov edx, dword [sym.imp.KERNEL32.DLL_CreateProcessA]
call fcn.004185d3
pop ecx
pop ecx
pop ecx
jae 0x40e12a
test eax, eax
je 0x40e171
mov ebx, dword [esp + 0x10]
test dword [esp], 0x8000
je 0x40e151
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
push esp
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
add esp, 0x170
pop edi
pop esi
pop ebx
ret
add esp, 0x170
pop edi
pop esi
pop ebx
xor eax, eax
jmp fcn.0040dcc4

Function at 0x40e181
Capabilities:
Terminate process

Disassembly:
push eax
push ecx
push esi
push edi
lea esi, [esp + 0x18]
mov ecx, dword [esi - 4]
push ecx
call fcn.00412ce2
jb 0x40e1b7
jecxz 0x40e1a4
lea esi, [esi + ecx*4 - 4]
mov eax, dword [esi]
mov byte [edi], al
sub esi, 4
inc edi
loop 0x40e19a
call fcn.00418076
pop edx
pop edi
pop esi
pop ecx
pop eax
shl edx, 2
pop dword [esp + edx]
add esp, edx
ret
call fcn.00418074
pop edx
pop edi
pop esi
pop ecx
add esp, 4
shl edx, 2
pop dword [esp + edx]
add esp, edx
jmp fcn.0040dccf