joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452050
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004521a0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x452070
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x452051
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004521a0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x452070
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4520a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4520f7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45210d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00452130
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x452130
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4521c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x452209
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x452680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4783d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00452230
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004522b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004522b0
lea ecx, [esi + 0xc]
call fcn.00469a41
lea ecx, [esi + 0x10]
call fcn.00469a41
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00454ae0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00454ae0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00454ae0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00469ab6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00469ab6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x453328
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4785f8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x453338
call fcn.00453850
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45341b
cmp byte [edi], 0
je 0x45341b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45335d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00452050
test eax, eax
jne 0x45337d
push 0x5c54a0
lea ecx, [esi + 0x38]
call fcn.00469bf3
jmp 0x45341b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004520a0
test eax, eax
jne 0x4533ac
mov ecx, esi
call fcn.004521a0
push edi
add esi, 0x38
push 0x5c547c
push esi
call fcn.004678ba
add esp, 0xc
jmp 0x45341b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004540d0
test eax, eax
je 0x453414
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004534f0
test eax, eax
jne 0x453430
push edi
lea eax, [esi + 0x38]
push 0x5c5458
push eax
call fcn.004678ba
add esp, 0xc
mov ecx, esi
call fcn.00453850
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4534d8
mov ecx, dword [0x5c57a0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004678ba
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00452150
test eax, eax
jne 0x45349a
push 0x5c543c
lea ecx, [esi + 0x38]
call fcn.00469bf3
jmp 0x4534aa
push 0xfa
mov ecx, esi
call fcn.004540d0
test eax, eax
jne 0x4534c7
mov ecx, esi
call fcn.00453850
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00469ab6
jmp 0x45341b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00469ab6
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x455630
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4556d3
test eax, eax
jbe 0x4556d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4556d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45567e
xor esi, esi
jmp 0x455684
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4556af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00457540
add esi, eax
push esi
mov ebx, esi
call fcn.00457540
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x455690
pop ebp
test edi, edi
pop edi
jne 0x4556d3
test ebx, ebx
je 0x4556d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045a030
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x455815
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45592d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45592d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046b4b7
mov esi, eax
test esi, esi
je 0x45592d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45592d
mov ecx, esi
call fcn.00455780
cmp edi, eax
jge 0x45592d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4558b3
mov dword [esp + 0x34], 1
jmp 0x45590e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45592d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00454d30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46be5a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46be92
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469f11
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00469ee9
jmp 0x46be9e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d54b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46d58d
call fcn.00473102
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d58d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d584
xor eax, eax
jmp 0x46d595
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d59b
pop edi
pop esi
pop ebx
ret 4

Function at 0x473632
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473660
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47367e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473598
jmp 0x47367e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47367e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00473598
test edi, edi
mov eax, edi
jne 0x473668
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40a561
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x401521
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov ebx, eax
test eax, eax
je 0x40153c
mov edx, dword [0x40a050]
add edx, edx
jmp 0x401542
mov edx, dword [0x40a050]
mov eax, 0x40a054
call fcn.0040146c
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x401f33
push edx
sub edi, fcn.004016fe
push edi
xor eax, eax
push fcn.004016fe
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401597
mov eax, fcn.004016fe
mov ebx, esi
mov edx, edi
call fcn.0040146c
mov edx, 0x1ba00
mov eax, 0x40a054
mov ebx, esi
call fcn.00401337
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401646
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x13c, 0
xor eax, eax
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x7f00
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], 6
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 1
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x13c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x10]
lea ebx, [eax - 0x47]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
mov eax, dword [ebp - 4]
add eax, ebx
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x404c1a
Capabilities:
Delete directory
Get common file path
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x4d9c08], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], eax
jne 0x404c63
push 0x4046e8
push 0x404708
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x40470c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x4293a8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4293ac]
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00404c10
mov eax, dword [0x4293b0]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4293b4]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
jmp 0x404ca4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, esi
shl eax, 4
cmp dword [0x4d9c08], 0xc
mov dword [ebp - 4], eax
jne 0x404ce2
push edi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x4d9c08]
cmp eax, 0xfa9
jne 0x404cfe
mov dword [0x4d91a4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x404d0b
mov dword [0x4d8b58], edi
mov ecx, dword [ebp - 8]
lea eax, [ebx + esi]
shr esi, cl
mov dword [ebp - 0x10], eax
mov dword [0x4d91a0], 0xf4ea3dee
add esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x4d9c08], 0x213
mov dword [ebp - 0x10], esi
jne 0x404d43
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4d9c08], 0xc
jne 0x404d83
lea eax, [ebp - 0x10]
push eax
push edi
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push edi
lea eax, [ebp - 0x830]
push eax
push 0x40472c
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [ebx + esi]
xor dword [ebp - 4], eax
shr esi, cl
add esi, dword [ebp - 0x20]
cmp dword [0x4d9c08], 0x121
jne 0x404db9
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
xor dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
call fcn.00404c17
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x404ca1
cmp dword [0x4d9c08], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop ebx
jne 0x404df7
push edi
push 0x404764
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
leave
ret 4
Function at 0x4066f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4280f8]
jne 0x4066fa
repz ret
jmp fcn.0040c9d2

Function at 0x40c6f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407179
and dword [ebp - 4], 0
cmp dword [0x42a41c], 0
mov ebx, eax
jne 0x40c7a6
push 0x401db8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c857
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dac
push edi
call esi
test eax, eax
je 0x40c857
push eax
call fcn.00407107
mov dword [esp], 0x401d9c
push edi
mov dword [0x42a41c], eax
call esi
push eax
call fcn.00407107
mov dword [esp], 0x401d88
push edi
mov dword [0x42a420], eax
call esi
push eax
call fcn.00407107
mov dword [esp], 0x401d6c
push edi
mov dword [0x42a424], eax
call esi
push eax
call fcn.00407107
pop ecx
mov dword [0x42a42c], eax
test eax, eax
je 0x40c7a6
push 0x401d54
push edi
call esi
push eax
call fcn.00407107
pop ecx
mov dword [0x42a428], eax
mov eax, dword [0x42a428]
cmp eax, ebx
je 0x40c7fe
cmp dword [0x42a42c], ebx
je 0x40c7fe
push eax
call fcn.00407182
push dword [0x42a42c]
mov esi, eax
call fcn.00407182
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c7fe
test edi, edi
je 0x40c7fe
call esi
test eax, eax
je 0x40c7f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c7f5
test byte [ebp - 0xc], 1
jne 0x40c7fe
or dword [ebp + 0x10], 0x200000
jmp 0x40c837
mov eax, dword [0x42a420]
cmp eax, ebx
je 0x40c837
push eax
call fcn.00407182
pop ecx
test eax, eax
je 0x40c837
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c837
mov eax, dword [0x42a424]
cmp eax, ebx
je 0x40c837
push eax
call fcn.00407182
pop ecx
test eax, eax
je 0x40c837
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a41c]
call fcn.00407182
pop ecx
test eax, eax
je 0x40c857
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c859
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40bf47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x14], 0
mov ebx, 1
lea ecx, [esp + 8]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x20], 2
test eax, eax
jne 0x402f36
mov eax, 0x410f00
push eax
lea ecx, [esp + 0x10]
call fcn.0040b29c
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::MakeLower
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x402f95
mov esi, dword [esp + 0x28]
push 0x410f00
mov ecx, esi
call fcn.0040b29c
mov dword [esp + 0x14], ebx
jmp 0x403040
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
add ecx, eax
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
push 0x410230
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x402fee
mov esi, dword [esp + 0x28]
push 0x410f00
mov ecx, esi
call fcn.0040b29c
jmp 0x40303c
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimRight
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x4034a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c027
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
push ebp
mov ecx, edi
mov dword [esi + 4], ebp
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x40d5bc
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString_2
push ebp
lea eax, [esi + 0x54]
push ebp
push 1
mov dword [esi + 0x48], 4
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x58], ebp
mov dword [esi], 0x40d5b8
push ebp
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret