joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x417bc0], ebx
push esi
push edi
jne 0x40d230
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d26b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413738
push edi
call esi
test eax, eax
mov dword [0x417bc0], eax
je 0x40d26b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x417bc4], eax
call esi
cmp dword [0x4178e4], 2
mov dword [0x417bc8], eax
jne 0x40d230
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x417bd0], eax
je 0x40d230
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x417bcc], eax
mov eax, dword [0x417bcc]
test eax, eax
je 0x40d275
call eax
test eax, eax
je 0x40d25c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x417bd0]
test eax, eax
je 0x40d25c
test byte [ebp - 8], 1
jne 0x40d275
cmp dword [0x4178f0], 4
jb 0x40d26f
or byte [ebp + 0x12], 0x20
jmp 0x40d294
xor eax, eax
jmp 0x40d2a4
or byte [ebp + 0x12], 4
jmp 0x40d294
mov eax, dword [0x417bc4]
test eax, eax
je 0x40d294
call eax
mov ebx, eax
test ebx, ebx
je 0x40d294
mov eax, dword [0x417bc8]
test eax, eax
je 0x40d294
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x417bc0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d52f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040a490
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d5c4
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4178e4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40d5c4
cmp eax, 1
je 0x40d5dc
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d5c4
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40d599
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40d5c0
xor eax, eax
inc eax
jmp 0x40d5f8
cmp esi, ebx
jae 0x40d5c8
xor eax, eax
jmp 0x40d5f8
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4178e4]
jmp 0x40d5de
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e42e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40e499
push 0x3d
push dword [ebp + 8]
call fcn.0040ed38
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x40e499
cmp dword [ebp + 8], esi
je 0x40e499
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x417904]
cmp eax, dword [0x417908]
jne 0x40e47f
mov edi, eax
call fcn.0040e3cd
mov dword [0x417904], eax
cmp eax, ebx
jne 0x40e4d8
cmp dword [ebp + 0xc], ebx
je 0x40e4a1
cmp dword [0x41790c], ebx
je 0x40e4a1
call fcn.0040cb91
test eax, eax
je 0x40e4d8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x40e5dc
push 4
call fcn.004065fe
cmp eax, ebx
pop ecx
mov dword [0x417904], eax
je 0x40e499
mov dword [eax], ebx
cmp dword [0x41790c], ebx
jne 0x40e4d8
push 4
call fcn.004065fe
cmp eax, ebx
pop ecx
mov dword [0x41790c], eax
je 0x40e499
mov dword [eax], ebx
mov ebx, dword [0x417904]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0040e380
mov edi, eax
test edi, edi
pop ecx
jl 0x40e531
cmp dword [ebx], 0
je 0x40e531
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00405d36
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40e519
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x40e567
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x40e510
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00406f70
test eax, eax
pop ecx
pop ecx
je 0x40e567
jmp 0x40e562
cmp dword [ebp - 4], 0
jne 0x40e5d5
test edi, edi
jge 0x40e541
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00406f70
test eax, eax
pop ecx
pop ecx
je 0x40e499
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x417904], eax
cmp dword [ebp + 0xc], 0
je 0x40e5be
push dword [ebp + 8]
call fcn.0040aaf0
inc eax
inc eax
push eax
call fcn.004065fe
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40e5be
push dword [ebp + 8]
push esi
call fcn.0040b730
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40e5b7
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00405d36
pop ecx
cmp dword [ebp - 4], 0
je 0x40e5cd
push dword [ebp + 8]
call fcn.00405d36
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40e49c
push esi
call fcn.00405d36
pop ecx
xor eax, eax
jmp 0x40e49c
Function at 0x410290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
cmp esi, edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x100]
movzx edx, byte [eax + 0x101]
mov dword [esp + 0x10], edi
je 0x41030b
push ebx
push ebp
jmp 0x4102c0
mov ecx, dword [esp + 0x14]
nop
lea edi, [ecx + 1]
and edi, 0xff
mov bl, byte [edi + eax]
movzx ebp, bl
xor ecx, ecx
add edx, ebp
and edx, 0xff
mov cl, byte [edx + eax]
mov byte [edi + eax], cl
mov byte [edx + eax], bl
mov bl, byte [esi]
mov dword [esp + 0x14], edi
add ecx, ebp
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, bl
mov byte [esi], cl
movzx ecx, cl
add edx, ecx
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x4102bb
mov cl, byte [esp + 0x14]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
ret
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x40a890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41a744
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0040b070
lea edi, [esi + 0x14]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], fcn.0040a500
call dword [0x41b134]
mov ecx, esi
mov byte [esp + 0x18], 1
mov dword [esi + 0x2c], ebx
call fcn.0040ae30
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov ecx, 0xff000000
push eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], ecx
call sub.MFC71.DLL_operator_delete
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x2c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40a8a7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41a744
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0040b070
lea edi, [esi + 0x14]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], fcn.0040a500
call dword [0x41b134]
mov ecx, esi
mov byte [esp + 0x18], 1
mov dword [esi + 0x2c], ebx
call fcn.0040ae30
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov ecx, 0xff000000
push eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], ecx
call sub.MFC71.DLL_operator_delete
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x2c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40c380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x4220a0]
mov dword [esp + 0x124], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 4], 3
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c3e7
cmp dword [esp + 0x20], 1
jne 0x40c3c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c3e7
push 0
lea ecx, [esp + 4]
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp]
mov ecx, dword [esp + 0x124]
call fcn.00419291
add esp, 0x128
ret
lea edx, [esp + 4]
push edx
push 1
push 0
push str.Control_PanelDesktop
push reloc.ODBC32.dll_SQLAllocConnect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c456
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.WheelScrollLines
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c44b
push 0xa
push eax
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.MSVCR71.dll_strtoul]
add esp, 0xc
mov dword [esp], eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x124]
mov eax, dword [esp]
call fcn.00419291
add esp, 0x128
ret
Function at 0x40caa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41a893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC71.DLL_CDC::CDC
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], 0x41dfb0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x41d710
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x40cb7a
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x58]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::Attach
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.MFC71.DLL_CGdiObject::Attach
test ebp, ebp
je 0x40cb45
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::SetWindowOrg
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call sub.MFC71.DLL_CDC::FillSolidRect
jmp 0x40cb8c
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x417920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ac7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00418cfc
lea edi, [esi + 0x5c]
mov ecx, edi
mov dword [esi], 0x41e3c0
call dword [0x41b134]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call dword [0x41b14c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x60], ebx
mov ebx, dword [esp + 0x40]
xor eax, eax
cmp ebx, 1
setne al
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
lea ecx, [esi + 0x68]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x28]
mov edx, eax
mov ebp, dword [edx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ecx + 8], ebp
mov edx, dword [edx + 0xc]
mov ebp, dword [esp + 0x24]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push ebp
push eax
or edx, 0x50800080
push edx
mov ecx, esi
call sub.MFC71.DLL_CEdit::Create
test eax, eax
je 0x417abd
mov eax, dword [ebp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push eax
call ebp
push eax
call sub.MFC71.DLL_CGdiObject::FromHandle
test eax, eax
je 0x4179f1
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x20]
push 1
push eax
push 0x30
push ecx
call ebp
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetWindowTextA
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetFocus
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea eax, [ebx - 1]
cmp eax, 0x27
ja case.0x417a2c.2
movzx edx, byte [eax + 0x417af0]
jmp dword [edx*4 + 0x417ae0]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a40
sub eax, edx
push eax
push 0
push 0xb1
jmp 0x417ab7
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a60
mov ecx, dword [esi + 0x20]
sub eax, edx
push eax
push 0
push 0xb1
push ecx
jmp 0x417aad
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebp
push 0
push 0
push 0xb7
jmp 0x417ab7
mov ecx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push edx
call ebp
push 0
push ebx
push 0x102
mov eax, dword [esi + 0x20]
push eax
call ebp
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x4194a9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41e718
call fcn.004196a8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4194e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4194e9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x419501
cmp eax, 0x20b
je 0x4194ee
mov dword [ebp - 0x1c], ebx
jmp 0x419515
cmp dword [ecx + 0x84], 0xe
jbe 0x4194e9
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x41950f
cmp dword [ecx + 0x74], 0xe
jbe 0x4194e9
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4222bc], 0xffffffff
or dword [0x4222c0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x422274]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x422270]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4222b8], eax
call fcn.004197a6
call fcn.00419846
cmp dword [0x4220c8], ebx
jne 0x419575
push fcn.00419846
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00419834
push 0x422020
push 0x42201c
call sub.MSVCR71.dll__initterm
push 0x4197ea
call fcn.004192c5
mov eax, dword [0x42226c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x422268]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4195c9
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x422018
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x419647
cmp al, bl
je 0x4195f3
cmp dword [ebp - 0x20], ebx
jne 0x419647
mov al, byte [esi]
cmp al, bl
je 0x419603
cmp al, 0x20
ja 0x419603
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4195f3
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x41961f
movzx eax, word [ebp - 0x54]
jmp 0x419622
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00419996
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41963f
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41969c
cmp al, 0x22
jne 0x419656
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x419669
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4195e1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004196e3
ret
Function at 0x60b760
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x611390
push ebx
push esi
call fcn.006112bc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00611250
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x61133d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x61138f
push edi
push eax
call fcn.00611f10
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x61135d
call fcn.0060fdb1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x61138e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00611250
add esp, 0x20
test eax, eax
jne 0x61137c
push edi
call fcn.0060fdb1
jmp 0x611384
push ebx
call fcn.0060fdb1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x61268d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61a030
push 0x61a028
push str.FlsAlloc
push 0x1f
call fcn.0061254c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6126c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x61812c]
call esi
jmp 0x6126c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x61270b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61a040
push 0x61a038
push str.FlsGetValue
push 0x21
call fcn.0061254c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x612742
push dword [ebp + 8]
mov ecx, esi
call dword [0x61812c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x61274a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61a048
push 0x61a040
push str.FlsSetValue
push 0x22
call fcn.0061254c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x612784
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x61812c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x617be0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x617c0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x617c0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1f230e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx ecx, word [eax + 0x14]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [0x1f3064]
push esi
push edi
mov edi, dword [0x1f41c0]
lea esi, [ecx + eax + 0x18]
movzx ecx, word [eax + 6]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
lea ecx, [edi - 0x43175abf]
push ecx
push dword [eax + 0x54]
push dword [ebp + 8]
call ebx
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jbe 0x1f23e5
cmp dword [ebp - 8], 0
jne 0x1f23e5
lea eax, [edi - 0x43175aa6]
bt dword [esi + 0x24], eax
jae 0x1f2389
lea eax, [edi - 0x43175aa4]
bt dword [esi + 0x24], eax
jae 0x1f2381
lea ecx, [edi - 0x43175a83]
jmp 0x1f23ad
lea ecx, [edi - 0x43175aa3]
jmp 0x1f23ad
lea eax, [edi - 0x43175aa5]
bt dword [esi + 0x24], eax
jae 0x1f23a7
lea eax, [edi - 0x43175aa4]
bt dword [esi + 0x24], eax
lea ecx, [edi - 0x43175ac1]
jae 0x1f23ad
lea ecx, [edi - 0x43175abf]
mov eax, dword [esi + 0xc]
add eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push ecx
push dword [esi + 8]
push eax
call ebx
test eax, eax
jne 0x1f23cb
call dword [0x1f302c]
mov dword [ebp - 8], eax
lea eax, [edi - 0x3175ac2]
imul eax, eax, 0x28
add esi, eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x1f2357
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4