joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b9de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101213b8]
jne 0x1000b9e8
repz ret
jmp fcn.1000d2d5

Function at 0x1000e5bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000badc
and dword [ebp - 4], 0
cmp dword [0x10122f78], 0
mov ebx, eax
jne 0x1000e670
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000e721
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000e721
push eax
call fcn.1000ba6a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10122f78], eax
call esi
push eax
call fcn.1000ba6a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10122f7c], eax
call esi
push eax
call fcn.1000ba6a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10122f80], eax
call esi
push eax
call fcn.1000ba6a
pop ecx
mov dword [0x10122f88], eax
test eax, eax
je 0x1000e670
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000ba6a
pop ecx
mov dword [0x10122f84], eax
mov eax, dword [0x10122f84]
cmp eax, ebx
je 0x1000e6c8
cmp dword [0x10122f88], ebx
je 0x1000e6c8
push eax
call fcn.1000bae5
push dword [0x10122f88]
mov esi, eax
call fcn.1000bae5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000e6c8
test edi, edi
je 0x1000e6c8
call esi
test eax, eax
je 0x1000e6bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000e6bf
test byte [ebp - 0xc], 1
jne 0x1000e6c8
or dword [ebp + 0x10], 0x200000
jmp 0x1000e701
mov eax, dword [0x10122f7c]
cmp eax, ebx
je 0x1000e701
push eax
call fcn.1000bae5
pop ecx
test eax, eax
je 0x1000e701
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000e701
mov eax, dword [0x10122f80]
cmp eax, ebx
je 0x1000e701
push eax
call fcn.1000bae5
pop ecx
test eax, eax
je 0x1000e701
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10122f78]
call fcn.1000bae5
pop ecx
test eax, eax
je 0x1000e721
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000e723
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.10010930]
mov dword [0x10120e38], 0x2ba
mov dword [ebp - 8], eax
mov eax, dword [0x10120e38]
sub eax, 0x19bc
mov dword [0x10120e3c], eax
jmp 0x1001096a
mov al, 1
test al, 1
jne 0x1001096a
jmp 0x100109b6
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100109cc
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1001097b
jmp 0x1001098f
jmp 0x1001098f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x10010962
jmp 0x10010979
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x10120e3c]
add eax, 0x9fc
mov dword [0x10120e38], eax
jmp 0x1001095a
mov eax, dword [0x10120e38]
add eax, 0x31f
mov dword [0x10120e3c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
Function at 0x10011280
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x10120e38], 0x9d2
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 4], eax
mov dword [0x10120e38], 0x2420
mov dword [ebp - 0xc], 0
jmp 0x100112f1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
je 0x100113c7
jmp 0x100113ff
jmp 0x100112e5
jmp 0x10011404
jmp 0x100112e3
jmp 0x100113ff
cmp dword [ebp - 0xc], 0x104
jge 0x10011333
mov dword [0x10120e38], 0x433
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10011317
jmp 0x10011333
mov eax, dword [0x10120e38]
sub eax, 0x20d9
mov dword [0x10120e3c], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x100112f1
mov dword [0x10120e38], 0x568
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x10011406
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x10011404
mov dword [0x10120e38], 0x23ba
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [eax + ecx*2 - 0x16]
cmp edx, 0x61
jne 0x100112e5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x100112e3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x100112c2
jmp 0x100112ea
mov eax, dword [0x10120e3c]
add eax, 0x1815
mov dword [0x10120e3c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100112ec
mov dword [0x10120e38], 0x263b
mov dword [ebp - 0x10], 1
jmp 0x10011417
jmp 0x100112ea
jmp 0x10011406
mov dword [0x10120e3c], 0x18b8
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x40f80d
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax + 2], 0
je 0x40f831
mov byte [ecx + 0xad4], 0x38
xor eax, eax
jmp 0x40f948
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0x4000
push 0xfffffffffffffff5
call ebx
push eax
call fcn.00425c80
pop ecx
pop ecx
push 0x457a04
push eax
call fcn.004257e0
pop ecx
mov esi, eax
pop ecx
mov eax, 0x458a80
push 8
mov edi, eax
pop ecx
push 0
push 4
push 0
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00425700
add esp, 0x10
push 0x4000
push 0xfffffffffffffff6
call ebx
push eax
call fcn.00425c80
pop ecx
pop ecx
push 0x457994
push eax
call fcn.004257e0
pop ecx
mov esi, eax
pop ecx
mov edi, 0x458a60
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push 4
push edi
push 0x458a60
call fcn.00425700
add esp, 0x10
push 1
push 0x40efbd
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [ebp - 0x804]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x404]
push str._d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
lea eax, [ebp - 0x804]
push eax
call esi
cmp ebx, edi
je 0x40f935
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
mov dword [eax + 0x7e0], 1
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x41c041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push dword [ebp + 0xc]
and byte [ebp - 1], 0
mov edi, eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x41c075
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41c079
xor al, al
jmp 0x41c0c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x41c0c0
cmp dword [ebp + 0x10], 0
jne 0x41c09c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x41c0bc
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x41c0c0
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00422ee0
add esp, 0xc
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4271b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450e60
push 0x4292c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x45e634], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x45e630], ecx
shl ecx, 8
add ecx, edx
mov dword [0x45e62c], ecx
shr eax, 0x10
mov dword [0x45e628], eax
call fcn.004293a0
test eax, eax
jne 0x42721a
push 0x1c
call fcn.00427360
add esp, 4
call fcn.0042a1f0
test eax, eax
jne 0x42722d
push 0x10
call fcn.00427360
add esp, 4
mov dword [ebp - 4], 0
call fcn.00429dc0
call fcn.00428350
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45ebd8], eax
call fcn.00430680
mov dword [0x45e610], eax
test eax, eax
je 0x427260
mov eax, dword [0x45ebd8]
test eax, eax
jne 0x42726a
push 0xffffffffffffffff
call fcn.00427db0
add esp, 4
call fcn.004303d0
call fcn.004302e0
call fcn.00427d80
mov esi, dword [0x45ebd8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x427349
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4272b1
test al, al
je 0x4272b1
and eax, 0xff
push eax
call fcn.00430280
add esp, 4
test eax, eax
je 0x42728b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x42728b
cmp byte [esi], 0x22
jne 0x4272ba
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4272ca
cmp al, 0x20
ja 0x4272ca
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4272ba
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4272eb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4272f0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00427db0
jmp 0x42732e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4272ba
inc esi
mov dword [ebp - 0x64], esi
jmp 0x427349

Function at 0x427df0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00427eb0
mov eax, dword [0x45e664]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x427e14
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x45e660], 1
mov byte [0x45e65c], bl
jne 0x427e6e
mov ecx, dword [0x45ebd4]
test ecx, ecx
je 0x427e5c
mov esi, dword [0x45ebd0]
sub esi, 4
cmp esi, ecx
jb 0x427e5c
mov eax, dword [esi]
test eax, eax
je 0x427e55
call eax
mov ecx, dword [0x45ebd4]
sub esi, 4
cmp esi, ecx
jae 0x427e47
push 0x4570b0
push 0x4570a8
call fcn.00427ed0
add esp, 8
push 0x4570bc
push 0x4570b4
call fcn.00427ed0
add esp, 8
test ebx, ebx
je 0x427e8d
call fcn.00427ec0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x45e664], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x429c50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x429cc5
push ebx
call fcn.00429d80
add esp, 4
test eax, eax
jne 0x429c93
call fcn.00427f80
mov dword [eax], 0xf
call fcn.00427f70
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x429cd5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x429d6f
inc eax
cmp eax, 0x104
ja 0x429d6f
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x429d27
cmp eax, ecx
jg 0x429d01
mov eax, ecx
push eax
call fcn.00423a60
mov edx, eax
add esp, 4
test edx, edx
jne 0x429d42
call fcn.00427f70
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x429d42
call fcn.00427f70
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x429d80
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x429d8e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x429dbd
cmp eax, 1
je 0x429dbd
mov eax, 1
ret
xor eax, eax
ret

Function at 0x42a1f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004287b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x45b5b4], eax
je 0x42a248
push 0x74
push 1
call fcn.00424580
mov esi, eax
add esp, 8
test esi, esi
je 0x42a248
mov eax, dword [0x45b5b4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x42a248
push esi
call fcn.0042a250
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x42a270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x45b5b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x42a2de
push 0x74
push 1
call fcn.00424580
mov esi, eax
add esp, 8
test esi, esi
je 0x42a2d4
mov ecx, dword [0x45b5b4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x42a2d4
push esi
call fcn.0042a250
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00427360
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x42d2f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x42d31c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x45eac0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x42d357
push 2
push ebp
push ecx
call fcn.0042d580
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x42d4b9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x42d401
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x42d3b2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x42d39f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x42d382
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42d4aa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x42d3fd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x42d37e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42d499
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42d455
cmp eax, 5
jne 0x42d43e
call fcn.00427f70
mov dword [eax], 9
call fcn.00427f80
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00427ef0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x42d475
cmp byte [ebp], 0x1a
jne 0x42d475
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00427f70
mov dword [eax], 0x1c
call fcn.00427f80
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x42d3fd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42d4ea
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x42d401
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x42d401
Function at 0x430680
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x45ea38]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4306c2
call edi
mov esi, eax
test esi, esi
je 0x4306ac
mov eax, 1
jmp 0x4306bd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4307cf
mov eax, 2
mov dword [0x45ea38], eax
cmp eax, 1
jne 0x430762
test esi, esi
jne 0x4306db
call edi
mov esi, eax
test esi, esi
je 0x4307cf
cmp word [esi], 0
mov eax, esi
je 0x4306f5
add eax, 2
cmp word [eax], 0
jne 0x4306e3
add eax, 2
cmp word [eax], 0
jne 0x4306e3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x430754
push edi
call fcn.00423a60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x430754
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x430746
push ebx
call fcn.004239f0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4307cf
test ebx, ebx
jne 0x430773
call ebp
mov ebx, eax
test ebx, ebx
je 0x4307cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x43078b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43077b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43077b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00423a60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4307ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x430820
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x45ba98
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x430844
add eax, 8
inc ebp
cmp eax, 0x45bb28
jb 0x430835
cmp ecx, dword [ebp*8 + 0x45ba98]
jne 0x4309eb
mov eax, dword [0x45e618]
cmp eax, 1
je 0x4309ad
test eax, eax
jne 0x430870
cmp dword [0x458de4], 1
je 0x4309ad
cmp ecx, 0xfc
je 0x4309eb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4308ab
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4308f4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x451554
add ebx, ecx
push ebx
call fcn.00422a30
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x451534
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x45ba9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00434630
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x45eac0]
test eax, eax
je 0x4309be
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4309c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x45ba9c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret