joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4284d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push ebx
push edi
push esi
cmp byte [0x46aed0], 0
jne 0x428526
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x46aecc], eax
mov esi, dword [eax]
mov ecx, dword [eax + 4]
add eax, 8
mov dword [0x46aecc], eax
push ecx
push eax
push 0
call fcn.00427fe0
add esp, 0xc
cmp eax, esi
jne 0x4285f7
mov byte [0x46aed0], 1
mov ebp, dword [esp + 0x1c]
push 0x45e3fc
push ebp
call fcn.00444240
add esp, 8
test eax, eax
je 0x42858a
cmp byte [0x46b004], 0
jne 0x42858a
mov esi, dword [sym.imp.python311.dll_PyDict_New]
call esi
mov dword [0x46b008], eax
call esi
mov dword [0x46b00c], eax
call esi
mov dword [0x46b010], eax
call esi
mov dword [0x46b014], eax
call esi
mov dword [0x46b018], eax
call esi
mov dword [0x46b01c], eax
call esi
mov dword [0x46b020], eax
call esi
mov dword [0x46b024], eax
mov byte [0x46b004], 1
mov esi, dword [0x46aecc]
push esi
push ebp
call fcn.00444240
add esp, 8
mov ebx, eax
push esi
call fcn.004442d0
add esp, 4
add eax, esi
inc eax
test ebx, ebx
je 0x4285d9
nop dword [eax]
mov ecx, dword [eax]
lea esi, [eax + ecx]
lea edi, [eax + ecx]
add edi, 4
push edi
push ebp
call fcn.00444240
add esp, 8
mov ebx, eax
push edi
call fcn.004442d0
add esp, 4
add eax, esi
add eax, 5
test ebx, ebx
jne 0x4285b0
movzx esi, word [eax + 4]
add eax, 6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push esi
push eax
call fcn.00432a50
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push str.Error__corrupted_constants_object
call fcn.00443f33
add esp, 4
call fcn.00443b68
int3

Function at 0x437034
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x437073
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x437073
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x437073
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x437073
cmp dword [ecx + 0x74], 0xe
jbe 0x437073
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x444bb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x444bdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x444bdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x444f3e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45664c
push 0x456644
push str.FlsAlloc
push 0x1e
call fcn.00445221
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444f72
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x444f78
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x444fbc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45665c
push 0x456654
push str.FlsGetValue
push 0x20
call fcn.00445221
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444ff3
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4491d7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4690e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x449222
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044934d
test al, al
jne 0x44921c
sub edx, 2
cmp edx, edi
jne 0x449202
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x449244
lea eax, [edi + 2]
cmp edx, eax
je 0x449244
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00449123
add esp, 0x10
jmp 0x44933e
push esi
lea ecx, [ebp - 0x255]
call fcn.0044934d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x449287
push dword [ebp - 0x25c]
jmp 0x449234
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4492c4
cmp word [ebp - 0x226], 0
je 0x4492e5
cmp word [ebp - 0x226], ax
jne 0x4492c4
cmp word [ebp - 0x224], 0
je 0x4492e5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00449123
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x449331
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44929e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x449319
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44933e
push 0x449371
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044f9d0
add esp, 0x10
jmp 0x44930e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436920
leave
ret

Function at 0x449a4e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x449a5f
pop esi
ret
push ebx
push edi
push esi
call fcn.00449a9c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00446fa9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x449a87
push ebx
push esi
push edi
call fcn.00438ed0
add esp, 0xc
push 0
call fcn.004463ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x449ad3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449ade
Function at 0x4019a0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4076d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [esp + 0x160], 0
call fcn.00401be0
mov ecx, edi
call fcn.004024d0
lea eax, [esp + 8]
lea ecx, [edi + 0x120]
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA
lea ecx, [esp + 8]
push 0x40c08c
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], esi
call fcn.00407294
cmp esi, 0xffffffff
jne 0x401a4e
lea ecx, [esp + 8]
mov dword [esp + 0x160], esi
call fcn.00407294
pop edi
pop esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
add esp, 0x15c
ret
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, 0x40c088
lea eax, [esp + 0x48]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401a82
test cl, cl
je 0x401a7e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401a82
add eax, 2
add esi, 2
test cl, cl
jne 0x401a5e
xor eax, eax
jmp 0x401a87
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b6b
mov esi, 0x40c084
lea eax, [esp + 0x48]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401abc
test cl, cl
je 0x401ab8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401abc
add eax, 2
add esi, 2
test cl, cl
jne 0x401a98
xor eax, eax
jmp 0x401ac1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b6b
mov eax, dword [esp + 0x1c]
and eax, 0x10
cmp al, 0x10
jne 0x401b6b
movsx ecx, byte [esp + 0x48]
push ecx
call dword [sym.imp.MSVCRT.dll_toupper]
add esp, 4
cmp eax, 0x41
jne 0x401b6b
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x164], 1
je 0x401b11
mov ecx, eax
call sub.MFC42.DLL_CString::CString
mov esi, eax
jmp 0x401b13
xor esi, esi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x48]
lea eax, [esp + 0x48]
push edx
push eax
push ecx
push str._s_s_s
push esi
mov byte [esp + 0x178], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b6b
mov eax, dword [edi + 0x100]
lea edx, [esp + 0x49]
push edx
push 0
push 0x180
push eax
call ebp
mov ecx, dword [edi + 0x100]
push esi
push eax
push 0x19a
push ecx
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x401a55
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edx, dword [edi + 0x100]
push 0
push 0
push 0x186
push edx
call ebp
mov ecx, edi
call fcn.004024d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x164], 0xffffffff
call fcn.00407294
mov ecx, dword [esp + 0x15c]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x402df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x3a0]
lea ecx, [esi + 0x420]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea edx, [esi + 0x3e0]
lea eax, [esi + 0x360]
lea ecx, [esi + 0x320]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea edx, [esi + 0x2e0]
lea eax, [esi + 0x2a0]
lea ecx, [esi + 0x260]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edx, [esi + 0x220]
lea eax, [esi + 0x1e0]
lea ecx, [esi + 0x1a0]
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
xor edi, edi
lea ebx, [esp + 0x10]
mov ecx, dword [ebx]
lea edx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402ee7
inc edi
add ebx, 4
cmp edi, 0xb
jb 0x402e92
mov ecx, dword [esi + 0x6c0]
push ecx
lea ecx, [esi + 0x560]
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.00407294
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
push 0
jmp 0x402eb9

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409c58
push 0x4073b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0xffffffff
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00404280
mov ecx, edi
call fcn.00404260
mov eax, dword [ebp + 8]
test eax, eax
jne 0x404322
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4043af
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x404364
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4043af
cmp esi, 0x64
jb 0x4043af
push 1
push esi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4043af
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4043af
cmp dword [ebp - 0x24], esi
jne 0x4043af
push esi
push ebx
call dword [sym.imp.NFSCSaveLib.dll_IsSave]
add esp, 8
test al, al
je 0x4043af
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004043da
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409c68
push 0x4073b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x404472
lea eax, [ebx + 4]
mov dword [ebp - 0x120], eax
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x120]
push ecx
push str._s.___tmp___
push 0x103
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov dword [ebp - 0x128], 0xffffffff
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 4], edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x128], esi
cmp esi, 0xffffffff
je 0x40451d
push edi
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebx + 0x10c]
push edx
mov eax, dword [ebx + 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40451d
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebx + 0x10c]
jne 0x40451d
mov edi, 1
mov dword [ebp - 0x12c], edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040454a
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.004049f0
mov esi, eax
test esi, esi
jne 0x404af9
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x20]
add ecx, 4
push ecx
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x404b17
pop edi
pop esi
pop ebx
ret 0xc
lea edx, [esi + 0x18]
push edi
push edx
call dword [sym.imp.NFSCSaveLib.dll_JDLZ_decompress]
mov ebx, eax
mov eax, dword [esi + 0x20]
add esp, 8
cmp ebx, eax
je 0x404b40
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
xor ebp, ebp
test eax, eax
mov eax, 0x40c258
jne 0x404b55
mov eax, 0x40c254
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x404b8b
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fflush]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x18
mov ebp, 1
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x404ba0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x1c], ecx
call fcn.004049f0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x404bc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 1
test eax, eax
mov eax, 0x40c260
jne 0x404be1
mov eax, 0x40c25c
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x404c00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
mov ebx, dword [sym.imp.MSVCRT.dll_calloc]
lea edx, [edi + 4]
push edx
push 1
call ebx
add esp, 0x1c
mov ebp, eax
test ebp, ebp
push esi
jne 0x404c48
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [edi + 0x74]
push 1
push eax
call ebx
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x404c82
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push ebx
push edi
push ebp
call dword [sym.imp.NFSCSaveLib.dll_JDLZ_compress]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404cd8
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x114]
dec ecx
cmp eax, ecx
jge 0x404cba
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x24], esi
jae 0x404cdc
mov dword [esp + 0x10], 0
jmp 0x404d1d
push eax
mov ecx, edi
call fcn.00404ab0
mov edx, dword [edi + 0x10c]
sub edx, eax
cmp edx, esi
jae 0x404cd8
mov dword [esp + 0x10], 0
jmp 0x404d1d
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
lea edi, [ecx + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc]
add eax, 0x1b
mov dword [esp + 0x20], edi
and al, 0xfc
mov dword [ecx + 8], eax
lea ecx, [eax - 0x18]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov ecx, esi
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x406420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x180]
xor esi, esi
push esi
push esi
push 0x1009
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [edi + 0x4a8]
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.00404880
cmp eax, esi
mov dword [esp + 0x14], eax
jle 0x406548
push ebp
add edi, 0x160
jmp 0x40648a
mov ebx, dword [esp + 0x14]
push esi
mov ecx, ebx
call fcn.004049f0
lea ebp, [esi + 1]
lea ecx, [esp + 0x10]
push ebp
push 0x40c1b4
push ecx
mov ebx, eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, edi
push 0
push 0
push 0
push 0
push edx
push esi
push 1
call sub.MFC42.DLL_CListCtrl::InsertItem
mov ecx, dword [esp + 0x14]
push esi
call fcn.00404ab0
push eax
lea eax, [esp + 0x14]
push str._08X
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 1
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [ebx + 0x24]
lea edx, [esp + 0x10]
push eax
push eax
push str._lu___08X_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, edi
push eax
push 2
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ebx, dword [ebx + 0x20]
lea ecx, [esp + 0x10]
push ebx
push ebx
push str._lu___08X_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, edi
push edx
push 3
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x18]
mov esi, ebp
cmp esi, eax
jl 0x406486
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00407294
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
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
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6869573d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4c9d205a
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a63a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [0x4d440c]
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
lea ecx, [esp + 8]
mov dword [esp + 0x30], eax
call fcn.00442010
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push ebx
lea ecx, [esp + 0xc]
push ecx
push edi
mov ecx, esi
call edx
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x405e0d
mov eax, dword [esp + 0xc]
push eax
call fcn.004692b1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00483bf3
add esp, 0x2c
ret

Function at 0x407ff0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a9fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00406430
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408044
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00408260
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00406430
cmp dword [esp + 0x24], 8
jb 0x40808a
mov eax, dword [esp + 0x10]
push eax
call fcn.004692b1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret