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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x42cb59
call fcn.00435765
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42cb59
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42cb75
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00435f0a
mov ebx, eax
test edi, edi
je 0x42cb73
test esi, esi
je 0x42cb73
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42d581
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42d63f
cmp dword [esi + 0x20], 0
je 0x42d63f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42d63f
cmp dword [ebp + 8], 0
je 0x42d63f
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00435765
push 0x5cbb20
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42d610
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42d63f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0043f5d9
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x42d630
test edi, edi
je 0x42d630
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x42d63b
mov ecx, esi
call fcn.0042d324
mov eax, ebx
jmp 0x42d641
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x431b4a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5b9993
call fcn.0055be9f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x431b70
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x431bcf
call fcn.00432234
push eax
lea ecx, [ebp - 0x10]
call fcn.00407d46
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0055be62
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00582140
push eax
call fcn.004069bc
add esp, 0x14
test esi, esi
je 0x431bc2
push esi
call fcn.005821ac
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406aae
mov eax, ebx
call fcn.0055be68
ret 8
Function at 0x441010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x44102a
mov edi, dword [esi + 0xc]
jmp 0x44106a
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x441043
call fcn.00433ded
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x441058
call fcn.00433ded
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x44106a
call fcn.00433ded
call fcn.00435765
cmp dword [eax + 0x3c], 0
je 0x44107f
push edi
mov ecx, ebx
call fcn.00440749
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0044125c
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4410a8
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4410b4
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45918d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00431a94
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4591c9
call fcn.004593af
mov dword [esi + 0xc], 1
jmp 0x4591ce
call fcn.004593af
cmp dword [esi], 0
je 0x459217
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4591f1
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042cbea
jmp 0x459202
push 0xff
mov ecx, esi
call fcn.00407d0e
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00427db0
jmp 0x45923b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45923b
push dword [esi]
push dword [ebp - 4]
call fcn.00438269
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x459304
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004593af
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45934c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042cbea
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00427db0
jmp 0x459357
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00438269
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4966cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4966e8
call fcn.00435765
mov esi, dword [eax + 0xc]
push 0x60803c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x49673e
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49673d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x49671e
xor esi, esi
jmp 0x496734
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00496746
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x55ef2f
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5c668b
call fcn.0055bed3
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x55f04c
cmp byte [ebx + 0x3e], 0
je 0x55f04c
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.0055be62
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x55ef7b
xor al, al
jmp 0x55f04e
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00403a34
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x55efab
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.0055be62
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x55efe0
sub eax, 1
je 0x55efe4
dec eax
sub eax, 1
je 0x55f03a
xor bl, bl
jmp 0x55f03c
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x55eff4
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x55f01c
cmp eax, 0x10
jae 0x55f003
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0057ee38
add esp, 0x10
cmp esi, eax
jne 0x55efdc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x55f03a
test esi, esi
jne 0x55ef9f
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403ee6
jmp 0x55ef99
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004039b3
mov al, bl
jmp 0x55f04e
mov al, 1
call fcn.0055be7d
ret
Function at 0x5749f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c76f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x630fe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov edx, 2
test edi, edi
mov eax, 1
cmove edi, eax
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425747
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x574a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x574a84
push 0x5f7dd0
push dword [ebp + 0xc]
push eax
call fcn.005758b0
add esp, 0xc
jmp 0x574a9d
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x574a9d
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.0040286e
mov dword [edi + 8], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esi], ax
je 0x574acf
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x574ac0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004065db
push esi
call fcn.00425742
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x593447
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059310a

Function at 0x593452
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059328b

Function at 0x598cd2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00598992

Function at 0x5a1496
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4034a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403501
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4034f3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4034ef
cmp esi, eax
jae 0x4034f3
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4034e1
cmp esi, eax
jb 0x4034f7
xor eax, eax
jmp 0x403500
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x404da5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
mov dword [ebp - 0x25c], eax
mov eax, dword [ebx]
push edi
lea ecx, [ebp - 0x254]
push ecx
cmp eax, 0xffffffff
jne 0x404e15
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x404e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404e08
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x404e82
push 0x8b
jmp 0x404e64
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404e82
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
jne 0x404e49
push dword [ebx + 4]
push 0x401750
push 0x4016f0
push 2
call fcn.0041956b
xor eax, eax
add esp, 0x10
inc eax
jmp 0x404eaa
call esi
test eax, eax
jle 0x404e59
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x404e82
push 0x96
push 0x4014d0
push esi
push 0x40139c
push 0x4016f0
push 1
call fcn.0041956b
add esp, 0x18
mov eax, esi
jmp 0x404eaa
sub esp, 0x250
mov edi, esp
push dword [ebp - 0x25c]
mov ecx, 0x94
push dword [ebp - 0x258]
lea esi, [ebp - 0x254]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00404bcc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004066f8
leave
ret 8
Function at 0x404ec0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x404f13
push 0x111
push 0x4013c8
mov eax, 0x80070057
push eax
push 0x40139c
push 0x401854
push 1
mov dword [ebp - 0xc], eax
call fcn.0041956b
add esp, 0x18
jmp 0x40507e
push esi
mov esi, dword [ebp + 0xc]
push dword [eax]
mov ecx, esi
call fcn.004042da
push dword [esi]
mov esi, 0x401854
push 0x401814
push esi
push 2
call fcn.0041956b
add esp, 0x10
cmp dword [ebp - 4], 1
jle 0x404f52
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp word [eax], 0x2f
je 0x404f52
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004042da
push edi
push 0x401804
push ebx
lea ecx, [ebp + 8]
call fcn.00404b96
mov ecx, eax
call fcn.00403f16
mov ecx, eax
call fcn.00403a02
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [0x41e468], ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403747
push dword [0x41e468]
push 0x4017d4
push esi
push 2
call fcn.0041956b
add esp, 0x10
push edi
push 0x4017cc
push ebx
lea ecx, [ebp + 8]
call fcn.00404b96
mov ecx, eax
call fcn.00403f16
mov ecx, eax
call fcn.00403a02
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [0x41e46c], ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403747
push dword [0x41e46c]
push 0x401790
push esi
push 2
call fcn.0041956b
add esp, 0x10
push 0x41e4ec
lea ecx, [ebp + 8]
call fcn.00403a61
push ebx
lea ecx, [ebp + 8]
call fcn.00404053
push edi
push 0x401788
lea ecx, [ebp + 8]
call fcn.00403f16
mov ecx, eax
call fcn.00403a02
pop esi
cmp eax, 0xffffffff
je 0x40506a
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00403d0a
push eax
lea ecx, [ebp + 8]
call fcn.00403fd6
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00403747
lea eax, [ebp + 0xc]
push eax
push 0x40177c
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
call fcn.00406796
add esp, 0xc
cmp eax, 1
jne 0x40506a
mov ax, word [ebp + 0xc]
mov word [0x41e470], ax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403747
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret 0xc
Function at 0x405b61
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00405aa2
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004067f0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x405bd4
cmp dword [ebp - 0x94], 5
jb 0x405bf5
jmp 0x405bf1
cmp dword [ebp - 0x88], 1
jne 0x405bf5
cmp dword [ebp - 0x94], 4
ja 0x405bf1
jne 0x405bf5
cmp dword [ebp - 0x90], 0
jbe 0x405bf5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x401bd0
call fcn.00405915
test eax, eax
jge 0x405c16
mov byte [0x41e464], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004066f8
leave
ret
Function at 0x4071f7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0040752d
pop ecx
test eax, eax
je 0x40722c
push esi
push esi
push esi
push esi
push esi
call fcn.00408b31
add esp, 0x14
push 4
pop eax
call fcn.0040ed90
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407348
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x4072c1
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x401ca0
call esi
test eax, eax
jne 0x407298
push 0x401c84
call esi
test eax, eax
je 0x4072c1
push 0x401c6c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4072c1
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x4072c1
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x4072c1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.004071cb
add esp, 0xc
test eax, eax
jl 0x407348
not esi
and dword [ebp - 8], esi
je 0x4072f3
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.004071cb
add esp, 0xc
test eax, eax
jl 0x407348
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x4072fe
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x407312
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x407348
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x407348
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x407348
xor eax, eax
inc eax
jmp 0x40734a
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004066f8
leave
ret
Function at 0x4077b9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x41d028]
je 0x4077df
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x4077cd
cmp esi, 0x17
jae 0x407939
push 3
call fcn.0040f3fb
pop ecx
cmp eax, 1
je 0x407903
push 3
call fcn.0040f3fb
pop ecx
test eax, eax
jne 0x407812
cmp dword [section..data], 1
je 0x407903
cmp edi, 0xfc
je 0x407939
push 0x40227c
mov edi, 0x314
push edi
mov esi, 0x41e598
push esi
call fcn.0040f38e
add esp, 0xc
test eax, eax
je 0x407848
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408b31
add esp, 0x14
mov byte [0x41e6b5], bl
push 0x104
mov ebx, 0x41e5b1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40788b
push 0x402264
push 0x2fb
push ebx
call fcn.0040f38e
add esp, 0xc
test eax, eax
je 0x40788b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408b31
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040f315
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x4078a9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408b31
add esp, 0x14
push 0x402260
push edi
push esi
call fcn.0040f315
add esp, 0xc
test eax, eax
je 0x4078c9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408b31
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x41d02c]
push edi
push esi
call fcn.0040f315
add esp, 0xc
test eax, eax
je 0x4078ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408b31
add esp, 0x14
push 0x12010
push 0x402238
push esi
call fcn.0040f16e
add esp, 0xc
jmp 0x407939
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x407939
cmp edi, 0xffffffff
je 0x407939
mov edx, dword [esi*8 + 0x41d02c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407922
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407eec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41eabc]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x407f3b
call edi
mov esi, eax
cmp esi, ebx
je 0x407f21
mov dword [0x41eabc], 1
jmp 0x407f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407f36
push 2
pop eax
mov dword [0x41eabc], eax
jmp 0x407f3b
mov eax, dword [0x41eabc]
cmp eax, 1
jne 0x407f9b
cmp esi, ebx
jne 0x407f53
call edi
mov esi, eax
cmp esi, ebx
jne 0x407f53
xor eax, eax
jmp 0x40806c
mov eax, esi
cmp word [esi], bx
je 0x407f68
inc eax
inc eax
cmp word [eax], bx
jne 0x407f5a
inc eax
inc eax
cmp word [eax], bx
jne 0x407f5a
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.00406f1f
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x407f8c
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40806c
push dword [ebp - 4]
push esi
push edi
call fcn.00408c90
add esp, 0xc
jmp 0x407f7e
cmp eax, 2
je 0x407fa4
cmp eax, ebx
jne 0x407f4c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x407f4c
cmp byte [esi], bl
je 0x407fe5
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x407f4c
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407fd1
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x407fb7
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.00407185
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x408009
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x407f4c
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x40805b
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x408071
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x408033
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x408045
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x408010
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
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.0040686f
pop ecx
push dword [ebp - 8]
jmp 0x407ffe