joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e12e0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040518c
mov eax, dword [ebp - 8]
call fcn.0040518c
xor eax, eax
push ebp
push 0x5e1546
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.0040aca8
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.00404f78
mov eax, dword [ebp - 4]
call fcn.00402d18
call fcn.00402cdc
lea eax, [ebp - 0x250]
push eax
push 0x5e1558
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5e14d3
mov eax, dword [ebp - 8]
call fcn.0059acb4
test al, al
jne 0x5e139b
mov eax, dword [ebp - 8]
call fcn.0059acd0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.00404f30
mov eax, dword [ebp - 0x10]
mov edx, 0x5e1564
call fcn.004050e8
je 0x5e14b6
mov eax, dword [ebp - 0x10]
mov edx, 0x5e1570
call fcn.004050e8
je 0x5e14b6
cmp dword [ebp - 0x250], 0x10
jne 0x5e1485
push dword [ebp - 8]
push 0x5e157c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040505c
mov eax, dword [ebp - 0xc]
call fcn.0059acb4
test al, al
jne 0x5e140d
mov eax, dword [ebp - 0xc]
call fcn.0059acd0
mov eax, dword [ebp - 4]
call fcn.00404f9c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x5e144c
push dword [ebp - 4]
push 0x5e157c
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.0040505c
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.005e12e0
jmp 0x5e14b6
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404fe8
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404fe8
mov edx, dword [ebp - 0x260]
mov eax, esi
pop ecx
call fcn.005e12e0
jmp 0x5e14b6
push dword [ebp - 8]
push 0x5e157c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040505c
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.0040519c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040519c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5e139b
jmp 0x5e14f8
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.00404f24
mov eax, dword [ebp - 0x264]
call fcn.00402d18
call fcn.00402cdc
xor ebx, ebx
jmp 0x5e151b
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.00404f24
mov eax, dword [ebp - 0x268]
call fcn.00402d18
call fcn.00402cdc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e154d
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404ce4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404ce4
ret
Function at 0x5e7448
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov esi, eax
jmp 0x5e7498
push 0
push edi
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi + 0x48]
push eax
call sub.wsock32.dll_send
mov ebx, eax
cmp ebx, edi
je 0x5e749e
cmp ebx, 0xffffffff
jne 0x5e7487
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
cmp ebp, 0x2733
je 0x5e7491
mov byte [esi + 0x40], 0
jmp 0x5e749e
cmp ebx, edi
jle 0x5e7491
mov byte [esi + 0x40], 0
jmp 0x5e749e
push 0x14
call sub.kernel32.dll_Sleep_1
cmp byte [esi + 0x40], 0
jne 0x5e7456
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5e74a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov ebp, edx
mov ebx, eax
jmp 0x5e74f4
mov edx, dword [ebx + 0x50]
mov eax, ebx
call fcn.005e7504
test al, al
je 0x5e74fa
push 0
mov eax, dword [esp + 4]
push eax
push ebp
mov eax, dword [ebx + 0x48]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e74fa
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x5e74ed
mov byte [ebx + 0x40], 0
jmp 0x5e74fa
push 0x14
call sub.kernel32.dll_Sleep_1
cmp byte [ebx + 0x40], 0
jne 0x5e74b2
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5e7504
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x5e753f
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x48]
call fcn.0058fb18
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
jmp 0x5e7577
mov dword [esp], 0x1770
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x48]
call fcn.0058fb18
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop ebx
ret

Function at 0x5e9174
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov dword [esp], edx
mov edi, eax
test esi, esi
je 0x5e91be
push 0
push esi
mov eax, dword [esp + 8]
push eax
mov eax, dword [edi + 0x7c]
push eax
call sub.wsock32.dll_send
mov ebx, eax
cmp ebx, esi
je 0x5e91be
cmp ebx, 0xffffffff
jne 0x5e91b3
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
cmp ebp, 0x2733
je 0x5e91b3
xor ebx, ebx
jmp 0x5e91be
push 0x14
call sub.kernel32.dll_Sleep_1
test esi, esi
jne 0x5e9184
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5e91c8
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x5e9203
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x7c]
call fcn.0058fb18
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
jmp 0x5e923b
mov dword [esp], 0x1770
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x7c]
call fcn.0058fb18
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop ebx
ret

Function at 0x5e9244
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, ecx
mov edi, edx
mov ebx, eax
mov edx, dword [ebx + 0x84]
mov eax, ebx
call fcn.005e91c8
test al, al
je 0x5e9286
push 0
push ebp
push edi
mov eax, dword [ebx + 0x7c]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e9286
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5e9286
push 0x14
call sub.kernel32.dll_Sleep_1
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x5e94cc
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x5e94c5
mov eax, esp
mov edx, dword [ebp + 8]
test edx, edx
jle 0x5e9506
test edx, edx
jle 0x5e9506
mov dword [ebp - 8], edx
lea edx, [eax + 1]
xor eax, eax
mov al, byte [edx]
xor eax, dword [ecx]
and eax, 0xff
mov eax, dword [eax*4 + 0x5f5cc4]
mov ebx, dword [ecx]
shr ebx, 8
and ebx, 0xffffff
xor eax, ebx
mov dword [ecx], eax
inc edx
dec dword [ebp - 8]
jne 0x5e94df
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x5eafc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov ebp, edx
mov ebx, eax
jmp 0x5eb012
mov edx, 0xea60
mov eax, ebx
call fcn.005eb020
test al, al
je 0x5eb018
push 0
mov eax, dword [esp + 4]
push eax
push ebp
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x5eb018
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x5eb00b
mov byte [ebx + 0x40], 0
jmp 0x5eb018
push 0x14
call sub.kernel32.dll_Sleep_1
cmp byte [ebx + 0x40], 0
jne 0x5eafce
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5eb020
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x5eb05b
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x50]
call fcn.0058fb18
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
jmp 0x5eb093
mov dword [esp], 0x1770
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x50]
call fcn.0058fb18
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop ebx
ret

Function at 0x5eb09c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov esi, eax
jmp 0x5eb0ec
push 0
push edi
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi + 0x50]
push eax
call sub.wsock32.dll_send
mov ebx, eax
cmp ebx, edi
je 0x5eb0f2
cmp ebx, 0xffffffff
jne 0x5eb0db
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
cmp ebp, 0x2733
je 0x5eb0e5
mov byte [esi + 0x40], 0
jmp 0x5eb0f2
cmp ebx, edi
jle 0x5eb0e5
mov byte [esi + 0x40], 0
jmp 0x5eb0f2
push 0x14
call sub.kernel32.dll_Sleep_1
cmp byte [esi + 0x40], 0
jne 0x5eb0aa
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5ec400
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov ebp, edx
mov ebx, eax
jmp 0x5ec459
mov edx, dword [ebx + 0x2758]
mov eax, ebx
call fcn.005ec46c
test al, al
je 0x5ec462
push 0
mov eax, dword [esp + 4]
push eax
push ebp
mov eax, dword [ebx + 0x275c]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x5ec462
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x5ec452
mov byte [ebx + 0x2754], 0
jmp 0x5ec462
push 0x14
call sub.kernel32.dll_Sleep_1
cmp byte [ebx + 0x2754], 0
jne 0x5ec40e
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5ec46c
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x5ec4aa
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x275c]
call fcn.0058fb18
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
jmp 0x5ec4e5
mov dword [esp], 0x1770
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x275c]
call fcn.0058fb18
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop ebx
ret
Function at 0x5ed6d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor ebx, ebx
xor edx, edx
push ebp
push 0x5ed748
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 8]
jne 0x5ed712
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ed752
cmp dword [ebp - 8], 0xffffffff
jne 0x5ed733
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5ed733
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ed752
inc ebx
xor eax, eax
mov al, bl
cmp ax, 0x12c
jne 0x5ed6f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ed752
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5ed75c
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x5ed797
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x40]
call fcn.0058fb18
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
jmp 0x5ed7cb
mov dword [esp], edx
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0058fb44
lea edx, [esp + 8]
mov eax, dword [ebx + 0x40]
call fcn.0058fb18
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop ebx
ret

Function at 0x5ed7d4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov ebp, edx
mov ebx, eax
jmp 0x5ed850
mov edx, 0x258
mov eax, ebx
call fcn.005ed75c
test al, al
jne 0x5ed80a
xor eax, eax
mov al, byte [ebx + 0x44]
mov edx, dword [0x5f6648]
mov eax, dword [edx + eax*4 - 4]
mov byte [eax + 0x3c8], 0
jmp 0x5ed86c
push 0
mov eax, dword [esp + 4]
push eax
push ebp
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x5ed86c
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x5ed849
xor eax, eax
mov al, byte [ebx + 0x44]
mov edx, dword [0x5f6648]
mov eax, dword [edx + eax*4 - 4]
mov byte [eax + 0x3c8], 0
jmp 0x5ed86c
push 0x14
call sub.kernel32.dll_Sleep_1
xor eax, eax
mov al, byte [ebx + 0x44]
mov edx, dword [0x5f6648]
mov eax, dword [edx + eax*4 - 4]
cmp byte [eax + 0x3c8], 0
jne 0x5ed7e2
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40f335
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
mov dword [esi + 8], edi
call fcn.0040f44f
mov ebx, 0x1388
test eax, eax
je 0x40f35a
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x3c]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f385
push 0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x64], 0
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x1c]
call dword [sym.imp.MFC42u.dll_CString::CString]
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp dword [sym.imp.MFC42u.dll_CString::CString]

Function at 0x40f3cd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0040f435
mov eax, dword [ebp + 0xc]
xor edi, edi
push dword [esi + 0x38]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], edi
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
cmp dword [esi + 0x64], edi
jne 0x40f420
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x68]
push eax
push edi
push esi
push 0x40f4f0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
jmp 0x40f42f
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40fd1d
Capabilities:
Get geographical location

Disassembly:
push 0x23c
mov eax, 0x422a23
call fcn.0042193f
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x230], ebx
push 0x208
xor edi, edi
lea eax, [ebp - 0x228]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edi
mov edi, 0x400
mov dword [ebp - 0x20], 0x2c
mov dword [ebp - 0x18], 0x2e
push 4
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 4
lea eax, [ebp - 0x18]
push eax
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 6
xor eax, eax
lea edi, [ebp - 0x248]
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x240], 3
test esi, esi
je 0x40fdaa
lea eax, [ebp - 0x18]
mov dword [ebp - 0x23c], eax
jmp 0x40fdb4
mov dword [ebp - 0x23c], 0x4021f0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x248], esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x238], eax
call dword [0x42e21c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call dword [0x42e21c]
push esi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push 0x403048
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
fld qword [ebp + 8]
lea eax, [ebp - 0x22c]
pop ecx
fstp qword [esp]
push dword [ebp - 0x230]
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
add esp, 0x10
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x22c]
push 0x402f74
call fcn.00419014
push 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x22c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
call dword [sym.imp.MFC42u.dll_CString::CString_1]
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, ebx
call fcn.004218ee
ret 8
Function at 0x417639
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x228
mov eax, 0x423789
call fcn.0042193f
mov dword [ebp - 0x228], edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x230], 0x208
call dword [0x42e21c]
xor edi, edi
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call dword [0x42e21c]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
test eax, eax
je 0x4177a5
push 0x153
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
test eax, eax
je 0x4177a5
lea eax, [ebp - 0x22c]
push eax
push 1
push edi
push 0x4044e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4177aa
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push 2
push ebx
push edi
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test ebx, ebx
jle 0x417704
movzx ebx, bx
or ebx, 0x80070000
mov esi, dword [esi]
lea eax, [ebp - 0x224]
push edi
push edi
push eax
push dword [ebp - 0x228]
mov ecx, dword [esi + 0x30]
call dword [0x42e58c]
mov ecx, dword [ebp - 0x21c]
call dword [esi + 0x30]
mov esi, dword [ebp - 0x228]
lea eax, [esi + 0x1c]
test ebx, ebx
js 0x417777
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
mov ebx, dword [ebp - 0x21c]
push edi
mov byte [ebp - 4], 2
push edi
mov edx, dword [ebx]
push eax
lea eax, [esi + 0x1c]
push eax
mov esi, dword [edx + 0x30]
mov ecx, esi
call dword [0x42e58c]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x234]
call dword [sym.imp.MFC42u.dll_CString::CString]
jmp 0x417797
mov ebx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
push edi
push edi
push ecx
mov esi, dword [ebx]
push eax
mov ecx, dword [esi + 0x30]
call dword [0x42e58c]
mov ecx, ebx
call dword [esi + 0x30]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4177aa
mov edi, 0x80070490
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, edi
call fcn.004218ee
ret 8
Function at 0x41b3ad
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x228
mov eax, 0x424074
call fcn.0042193f
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x230], eax
call dword [0x42e21c]
xor edi, edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
call dword [0x42e21c]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call dword [0x42e21c]
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jbe 0x41b421
push 0x4021f0
mov ecx, ebx
call dword [0x42e228]
jmp 0x41b5a3
push 0x4b6
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call dword [0x42e228]
push 0x402f9c
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
mov esi, eax
push 1
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::Right]
push dword [esi]
mov ecx, eax
call fcn.0040cc91
lea ecx, [ebp - 0x228]
mov esi, eax
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC42u.dll_CString::CString]
test esi, esi
jne 0x41b4d0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MFC42u.dll_operator]
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call dword [0x42e224]
lea ecx, [ebp - 0x220]
jmp 0x41b542
push 0x402f9c
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::CString_1]
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.MFC42u.dll_operator]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MFC42u.dll_operator]
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call dword [0x42e224]
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x228]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC42u.dll_CString::CString]
mov edx, dword [ebp - 0x230]
lea ecx, [ebp - 0x21c]
call fcn.0041b5d1
push edi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x41b591
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41b591
push 0x403591
mov ecx, ebx
call dword [sym.imp.MFC42u.dll_CString::operator_2]
jmp 0x41b5a3
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call dword [0x42e224]
xor edi, edi
inc edi
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x234]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, edi
call fcn.004218ee
ret 4
Function at 0x41dc5c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41dcc3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
jb 0x41dcbc
push esi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dcbc
cmp dword [ebp - 4], 4
jne 0x41dcbc
cmp dword [ebp - 8], 0xe011cfd0
jne 0x41dcbc
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4