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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46cd08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x432269
inc eax
mov dword [esi + 0x10], eax
jmp 0x43237c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43227d
mov eax, 0xffffffc7
jmp 0x43237e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43228e
cmp dword [esi + 8], eax
jne 0x43227d
cmp dword [esi + 8], eax
jne 0x4322a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4322a7
mov eax, 0xffffffc7
jmp 0x43237e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4322bb
push eax
mov ecx, ebx
call fcn.00431a60
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401f10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4322ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401f30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004311d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43231f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4e9650
call fcn.00402110
mov eax, dword [esp + 0x38]
jmp 0x43237e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432090
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432363
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004320b0
mov esi, eax
test esi, esi
jne 0x432393
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432090
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432335
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4e9650
call fcn.00402110
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4e9650
call fcn.00402110
mov eax, esi
jmp 0x43237e

Function at 0x4354c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435520
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435520
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435520
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435520
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43b680
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00465df0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b020
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00465d1e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004625d9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004625d9
push 1
push 0
push 0
mov ecx, esi
call fcn.00462581
push 1
push 0
push 1
mov ecx, esi
call fcn.00462581
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00465e62
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43b800
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00465df0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b020
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00465d1e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43b8c4
cmp dword [esp + 0x40], 1
jne 0x43b8c2
cmp ecx, eax
jge 0x43b8c4
mov eax, ecx
cmp eax, 0xc8
jge 0x43b8d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b680
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00465e62
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c040
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d3c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004609fa
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00466098
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004675b4
test eax, eax
je 0x43c15c
mov ecx, dword [esp + 0x3c]
call fcn.004660c5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c120
push edi
mov ecx, esi
call fcn.00463720
mov ecx, esi
call fcn.0043c2c0
cmp dword [esp + 0x38], 1
jne 0x43c155
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046385b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44b170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d8f0
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.0044ad20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044ada0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044ada0
lea ecx, [esi + 0xc]
call fcn.0045f3d6
lea ecx, [esi + 0x10]
call fcn.0045f3d6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044d5d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044d5d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044d5d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045f44b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045f44b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44be18
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46db18
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 0x44be28
call fcn.0044c340
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44bf0b
cmp byte [edi], 0
je 0x44bf0b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44be4d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044ab40
test eax, eax
jne 0x44be6d
push 0x504458
lea ecx, [esi + 0x38]
call fcn.0045f588
jmp 0x44bf0b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044ab90
test eax, eax
jne 0x44be9c
mov ecx, esi
call fcn.0044ac90
push edi
add esi, 0x38
push 0x504434
push esi
call fcn.0045d3e7
add esp, 0xc
jmp 0x44bf0b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044cbc0
test eax, eax
je 0x44bf04
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.0044bfe0
test eax, eax
jne 0x44bf20
push edi
lea eax, [esi + 0x38]
push 0x504410
push eax
call fcn.0045d3e7
add esp, 0xc
mov ecx, esi
call fcn.0044c340
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 0x44bfc8
mov ecx, dword [0x5046c8]
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.0045d3e7
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.0044ac40
test eax, eax
jne 0x44bf8a
push 0x5043f4
lea ecx, [esi + 0x38]
call fcn.0045f588
jmp 0x44bf9a
push 0xfa
mov ecx, esi
call fcn.0044cbc0
test eax, eax
jne 0x44bfb7
mov ecx, esi
call fcn.0044c340
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045f44b
jmp 0x44bf0b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045f44b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x401450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 0x208
push 0
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.00403c50
add esp, 0xc
push 0x103
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.00402820
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x4014d4
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4014d4
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004015a0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x207
push 0x208
push 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
add ecx, 8
push ecx
call fcn.00403c50
add esp, 0xc
mov dword [ebp - 4], 1
lea edx, [ebp - 8]
push edx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
add ecx, 8
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
add eax, 8
mov esp, ebp
pop ebp
ret

Function at 0x4015a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00403aa3
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x403933
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411080]
jne 0x40393d
repz ret
jmp fcn.0040497d
Function at 0x4054f6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x411208]
je 0x405511
inc edi
cmp edi, 0x17
jb 0x405502
cmp edi, 0x17
jae 0x405691
push ebp
push 3
call fcn.00409b9a
cmp eax, 1
pop ecx
je 0x40565d
push 3
call fcn.00409b9a
test eax, eax
pop ecx
jne 0x405545
cmp dword [0x411074], 1
je 0x40565d
cmp ebx, 0xfc
je 0x405690
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x412180
push ebp
call fcn.00404778
add esp, 0xc
test eax, eax
je 0x40557b
push esi
push esi
push esi
push esi
push esi
call fcn.00403951
add esp, 0x14
push 0x104
mov esi, 0x412199
push esi
push 0
mov byte [0x41229d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4055bf
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00404778
add esp, 0xc
test eax, eax
je 0x4055bf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403951
add esp, 0x14
push esi
call fcn.00403ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405604
push esi
call fcn.00403ac0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x412494
push 0x40d82c
sub ecx, eax
push ecx
push eax
call fcn.00409ae7
add esp, 0x14
test eax, eax
je 0x405604
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403951
add esp, 0x14
jmp 0x405606
xor esi, esi
push 0x40d828
push ebx
push ebp
call fcn.00409a76
add esp, 0xc
test eax, eax
je 0x405626
push esi
push esi
push esi
push esi
push esi
call fcn.00403951
add esp, 0x14
push dword [edi*8 + 0x41120c]
push ebx
push ebp
call fcn.00409a76
add esp, 0xc
test eax, eax
je 0x405648
push esi
push esi
push esi
push esi
push esi
call fcn.00403951
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004098b9
add esp, 0xc
jmp 0x405690
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x405690
cmp ebp, 0xffffffff
je 0x405690
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41120c]
push dword [esi]
call fcn.00403ac0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4098b9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404b63
xor ebx, ebx
cmp dword [0x4127f4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40998f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409a6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x409a6f
push eax
call fcn.00404af5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4127f4], eax
call esi
push eax
call fcn.00404af5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4127f8], eax
call esi
push eax
call fcn.00404af5
mov dword [0x4127fc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406c44
test eax, eax
pop ecx
pop ecx
je 0x40995d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403951
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40998f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404af5
cmp eax, ebx
pop ecx
mov dword [0x412804], eax
je 0x40998f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404af5
pop ecx
mov dword [0x412800], eax
mov eax, dword [0x412800]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x409a14
cmp dword [0x412804], ecx
je 0x409a14
push eax
call fcn.00404b6c
push dword [0x412804]
mov esi, eax
call fcn.00404b6c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x409a14
cmp edi, ebx
je 0x409a14
call esi
cmp eax, ebx
je 0x4099e1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4099e1
test byte [ebp - 0x18], 1
jne 0x409a14
lea eax, [ebp - 0x10]
push eax
call fcn.00406c7b
test eax, eax
pop ecx
je 0x4099fc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403951
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x409a0b
or dword [ebp + 0x10], 0x200000
jmp 0x409a4f
or dword [ebp + 0x10], 0x40000
jmp 0x409a4f
mov eax, dword [0x4127f8]
cmp eax, dword [ebp - 8]
je 0x409a4f
push eax
call fcn.00404b6c
cmp eax, ebx
pop ecx
je 0x409a4f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x409a4f
mov eax, dword [0x4127fc]
cmp eax, dword [ebp - 8]
je 0x409a4f
push eax
call fcn.00404b6c
cmp eax, ebx
pop ecx
je 0x409a4f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4127f4]
call fcn.00404b6c
cmp eax, ebx
pop ecx
je 0x409a6f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409a71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006240
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1001348
call fcn.01007688
mov edi, 0x94
mov eax, edi
call fcn.01006950
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x101203c], ecx
mov eax, dword [esi + 4]
mov dword [0x1012048], eax
mov edx, dword [esi + 8]
mov dword [0x101204c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1012040], esi
cmp ecx, 2
je 0x10062a0
or esi, 0x8000
mov dword [0x1012040], esi
shl eax, 8
add eax, edx
mov dword [0x1012044], eax
cmp word [0x1000000], 0x5a4d
jne 0x10062dc
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10062dc
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x10062f5
cmp ecx, 0x20b
je 0x10062e2
and dword [ebp - 0x1c], 0
jmp 0x1006309
cmp dword [eax + 0x84], 0xe
jbe 0x10062dc
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1006303
cmp dword [eax + 0x74], 0xe
jbe 0x10062dc
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100762c
pop ecx
test eax, eax
jne 0x1006336
cmp dword [0x101202c], 1
jne 0x1006323
call fcn.01006d20
push 0x1c
call fcn.01006b33
push 0xff
call fcn.01006992
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100745c
test eax, eax
jge 0x100634b
push 0x1b
call fcn.01006211
pop ecx
call fcn.010073ac
mov dword [0x10136b0], eax
call fcn.0100720d
mov dword [0x1012028], eax
call fcn.01007170
test eax, eax
jge 0x1006370
push 8
call fcn.01006211
pop ecx
call fcn.01006f2f
test eax, eax
jge 0x1006381
push 9
call fcn.01006211
pop ecx
call fcn.010069ec
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1006394
push eax
call fcn.01006211
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.01006ed6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x10063b6
movzx eax, word [ebp - 0x40]
jmp 0x10063b9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01005cb3
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x10063da
push esi
call fcn.01006acc
call fcn.01006b04
jmp 0x100640c
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.010076c3
ret
Function at 0x100720d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1012294]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x1007260
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1007247
mov dword [0x1012294], 1
jmp 0x1007265
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100725b
mov eax, edi
mov dword [0x1012294], eax
jmp 0x1007260
mov eax, dword [0x1012294]
cmp eax, 1
jne 0x10072cc
cmp dword [ebp - 4], ebx
jne 0x100727a
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100727a
xor eax, eax
jmp 0x100738b
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x1007292
add eax, edi
cmp word [eax], bx
jne 0x1007284
add eax, edi
cmp word [eax], bx
jne 0x1007284
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.010065ea
cmp eax, ebx
pop ecx
jne 0x10072b3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x100738b
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x10072a3
cmp eax, edi
je 0x10072d4
cmp eax, ebx
jne 0x1007273
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1007273
cmp byte [esi], bl
je 0x1007319
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1007273
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1007305
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x10072e7
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.010065ea
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1007332
push esi
jmp 0x100739c
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x100737c
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1007390
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1007360
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.010093aa
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x100733d
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.01006496
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1007273