joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417030
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 4
mov dword [esp], pe_nt_image_headers32
push esi
push edi
mov esi, 1
lea edi, [ecx + 0x17c]
push edi
mov eax, dword [ecx + 0x184]
push 0xf003f
mov ecx, dword [ecx + 0x180]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41709f
lea eax, [esp + 8]
mov ecx, dword [esp + 0x14]
push eax
push pe_nt_image_headers32
call fcn.00440922
push eax
mov ecx, dword [edi]
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41709f
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4170a1
xor esi, esi
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
call fcn.00440977
mov eax, esi
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4170c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 4
mov eax, dword [ecx + 0x184]
mov dword [esp], 4
push esi
lea esi, [ecx + 0x17c]
push esi
mov ecx, dword [ecx + 0x180]
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41712b
lea eax, [esp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
mov eax, dword [esi]
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41712b
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41712b
mov eax, 1
pop esi
add esp, 4
ret 8
xor eax, eax
pop esi
add esp, 4
ret 8

Function at 0x417220
Capabilities:
Set registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
push edi
lea esi, [ecx + 0x17c]
push eax
push esi
push 0
mov edx, dword [ecx + 0x184]
push 0xf003f
mov ecx, dword [ecx + 0x180]
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x417294
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, dword [esp + 0x10]
push eax
mov edx, dword [esi]
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x417294
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x417294
mov eax, 1
pop edi
pop esi
add esp, 4
ret 8
xor eax, eax
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4172a0
Capabilities:
Set registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
lea esi, [ecx + 0x17c]
push eax
push esi
mov edx, dword [ecx + 0x184]
push 0
mov ecx, dword [ecx + 0x180]
push 0xf003f
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41730b
lea eax, [esp + 0x10]
push 4
mov ecx, dword [esp + 0x10]
push eax
push 4
mov edx, dword [esi]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41730b
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41730b
mov eax, 1
pop esi
add esp, 4
ret 8
xor eax, eax
pop esi
add esp, 4
ret 8
Function at 0x41d620
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d937
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
mov esi, ecx
lea ecx, [ecx + 0x18]
call fcn.00440440
mov dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
call fcn.00440440
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
call fcn.00440440
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
call fcn.00440440
push 0x463f54
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 3
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0044060d
push str.:_
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 4
lea ebx, [esi + 0x48]
call fcn.0044060d
push 0x463f4c
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
lea edi, [esi + 0x4c]
call fcn.0044060d
push 0x463f48
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0044060d
lea ecx, [esi + 0x50]
push str.M_d_yy
mov byte [ebp - 4], 7
call fcn.0044060d
lea ecx, [esi + 0x54]
push str.intl
mov byte [ebp - 4], 8
call fcn.0044060d
lea ecx, [esi + 0x58]
push str.iDate
mov byte [ebp - 4], 9
call fcn.0044060d
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x5c]
push str.iTime
call fcn.0044060d
lea ecx, [esi + 0x60]
push str.iTLZero
mov byte [ebp - 4], 0xb
call fcn.0044060d
lea ecx, [esi + 0x64]
push str.s1159
mov byte [ebp - 4], 0xc
call fcn.0044060d
lea ecx, [esi + 0x68]
push str.s2359
mov byte [ebp - 4], 0xd
call fcn.0044060d
lea ecx, [esi + 0x6c]
push str.sDate
mov byte [ebp - 4], 0xe
call fcn.0044060d
lea ecx, [esi + 0x70]
push str.sTime
mov byte [ebp - 4], 0xf
call fcn.0044060d
lea ecx, [esi + 0x74]
push 0x463efc
mov byte [ebp - 4], 0x10
call fcn.0044060d
lea ecx, [esi + 0x78]
push 0x463ef8
mov byte [ebp - 4], 0x11
call fcn.0044060d
lea ecx, [esi + 0x7c]
push 0x463ef4
mov byte [ebp - 4], 0x12
call fcn.0044060d
lea ecx, [esi + 0x80]
push 0x463ef0
mov byte [ebp - 4], 0x13
call fcn.0044060d
mov byte [ebp - 4], 0x14
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov dword [esi], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 8], edx
mov edx, dword [esi + 0x44]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x10], ecx
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edx
call fcn.00440698
lea ecx, [esi + 0x38]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00440698
push ebx
lea ecx, [esi + 0x20]
call fcn.00440698
push edi
lea ecx, [esi + 0x24]
call fcn.00440698
sub esp, 4
mov dword [ebp - 0x14], esp
push 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0043e569
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
mov ecx, esi
call fcn.0041d950
mov eax, esi
pop edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422630
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422766
push eax
mov dword fs:[0], esp
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CObject.0
mov edi, ecx
push str.SCMOVv1.0
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
call fcn.0044060d
lea ecx, [edi + 8]
push str.SCMOVv2.0
mov byte [ebp - 4], 1
call fcn.0044060d
lea ecx, [edi + 0xc]
push str.SCMOVv2.1
mov byte [ebp - 4], 2
call fcn.0044060d
lea ecx, [edi + 0x10]
push str.SCMOVv3.0
mov byte [ebp - 4], 3
lea esi, [edi + 0x40]
call fcn.0044060d
lea ecx, [edi + 0x14]
push str.MTII3.0
mov byte [ebp - 4], 4
call fcn.0044060d
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.00440440
mov byte [ebp - 4], 6
lea eax, [edi + 0x19]
mov dword [edi], method.CObject.virtual_0
mov byte [edi + 0x18], pe_nt_image_headers32
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
mov word [edi + 0x38], bx
mov dword [edi + 0x2c], ebx
mov word [edi + 0x36], bx
mov dword [edi + 0x28], ebx
mov word [edi + 0x3a], bx
mov dword [edi + 0x30], ebx
mov word [edi + 0x34], bx
mov ecx, esi
mov word [edi + 0x26], 1
mov word [edi + 0x3e], bx
mov word [edi + 0x3c], bx
call fcn.00440520
mov dword [edi + 0x44], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a620
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a84c
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0042a5e0
lea ecx, [ebp - 0x34]
call fcn.00441d46
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00440440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00440440
mov byte [ebp - 4], 3
call fcn.0044fe5c
mov eax, dword [eax + 4]
add eax, 0xd4
mov eax, dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044060d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00440520
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00440922
push eax
push 0
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00440977
test edi, edi
je 0x42a6d5
mov eax, dword [ebp - 0x14]
push eax
call fcn.004410b5
test edi, edi
jne 0x42a731
lea ecx, [ebp - 0x18]
call fcn.00440520
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00440922
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00440977
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00440922
push eax
push 0
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00440977
mov eax, dword [ebp - 0x14]
push eax
call fcn.004410b5
mov edi, dword [ebp + 8]
test edi, edi
je 0x42a7dd
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043e854
push eax
lea ecx, [ebp - 0x14]
call fcn.0044099f
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00440977
push edi
lea ecx, [ebp - 0x14]
call fcn.004408cd
mov ebx, 1
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00441aa0
test eax, eax
je 0x42a7dd
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00440922
push eax
push ebx
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00440977
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043e854
push eax
lea ecx, [ebp - 0x14]
call fcn.0044099f
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00440977
push edi
lea ecx, [ebp - 0x14]
call fcn.004408cd
inc ebx
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00441aa0
test eax, eax
jne 0x42a77b
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov dword [esi + 0x18], 1
mov byte [ebp - 4], 3
call fcn.0042a828
mov byte [ebp - 4], 2
call fcn.0042a830
mov byte [ebp - 4], 1
call fcn.0042a838
mov dword [ebp - 4], 0xffffffff
call fcn.0042a856
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42be00
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword [esp + 4]
push 0x20
cmp word [eax + 2], 1
mov ecx, dword [esp + 0xc]
push ecx
jne 0x42be22
mov eax, dword [eax + 0x9e]
push eax
call dword [sym.imp.WINMM.dll_waveOutWrite]
ret 8
mov eax, dword [eax + 0xa2]
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
ret 8
Function at 0x4309c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457730
push 0x434064
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x464f28], eax
xor eax, eax
mov al, byte [0x464f29]
mov dword [0x464f34], eax
mov eax, dword [0x464f28]
shr dword [0x464f28], 0x10
and eax, 0xff
mov dword [0x464f30], eax
shl eax, 8
add eax, dword [0x464f34]
mov dword [0x464f2c], eax
call fcn.00432ff0
call fcn.00432bf0
test eax, eax
jne 0x430a39
push 0x10
call fcn.00430b60
add esp, 4
mov dword [ebp - 4], 0
call fcn.00433e80
call fcn.004319f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46a250], eax
call fcn.00433ce0
mov dword [0x464f10], eax
test eax, eax
je 0x430a6c
cmp dword [0x46a250], 0
jne 0x430a76
push 0xffffffffffffffff
call fcn.00430be0
add esp, 4
call fcn.00433a70
call fcn.00433990
call fcn.00430bb0
mov esi, dword [0x46a250]
mov al, byte [esi]
cmp al, 0x22
je 0x430a9d
cmp al, 0x20
jbe 0x430aca
inc esi
cmp byte [esi], 0x20
ja 0x430a95
jmp 0x430aca
inc esi
cmp byte [esi], 0x22
je 0x430ac9
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x430ac4
xor eax, eax
mov al, bl
push eax
call fcn.00433930
add esp, 4
test eax, eax
je 0x430abe
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x430aa6
cmp byte [esi], 0x22
jne 0x430aca
inc esi
cmp byte [esi], 0
je 0x430ada
cmp byte [esi], 0x20
ja 0x430ada
inc esi
cmp byte [esi], 0
jne 0x430acf
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x430afe
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00430be0
jmp 0x430b3f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430c20
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00430ce0
cmp dword [0x464f64], 1
mov esi, dword [esp + 0x10]
jne 0x430c43
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x464f60], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x464f5c], bl
jne 0x430c9d
cmp dword [0x46a24c], 0
je 0x430c8b
mov edi, dword [0x46a248]
sub edi, 4
cmp dword [0x46a24c], edi
ja 0x430c8b
mov eax, dword [edi]
test eax, eax
je 0x430c80
call eax
sub edi, 4
cmp dword [0x46a24c], edi
jbe 0x430c78
push 0x4631a8
push 0x4631a0
call fcn.00430d00
add esp, 8
push 0x4631b0
push 0x4631ac
call fcn.00430d00
add esp, 8
test ebx, ebx
je 0x430cbc
call fcn.00430cf0
pop edi
pop esi
pop ebx
ret
mov dword [0x464f64], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x432bf0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00432ce0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4653e0], eax
cmp eax, 0xffffffff
jne 0x432c0a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004355b0
add esp, 8
mov esi, eax
test esi, esi
je 0x432c4c
push esi
mov eax, dword [0x4653e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x432c4c
push esi
call fcn.00432c50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x432c70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4653e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x432cd3
push 0x74
push 1
call fcn.004355b0
add esp, 8
mov edi, eax
test edi, edi
je 0x432cc9
push edi
mov eax, dword [0x4653e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x432cc9
push edi
call fcn.00432c50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x432cd3
push 0x10
call fcn.00430b60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x433ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x46555c], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x433d30
call esi
mov edi, eax
test edi, edi
je 0x433d0e
mov dword [0x46555c], 1
mov ebx, dword [esp + 0x10]
jmp 0x433d38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x433d26
mov dword [0x46555c], 2
jmp 0x433d38
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
cmp dword [0x46555c], 1
jne 0x433de7
test edi, edi
jne 0x433d5b
call esi
mov edi, eax
test edi, edi
jne 0x433d5b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x433d75
add esi, 2
cmp word [esi], 0
jne 0x433d63
add esi, 2
cmp word [esi], 0
jne 0x433d63
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x433dd6
push ebp
call fcn.00430690
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x433dd6
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x433dc5
push ebx
call fcn.00430670
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x46555c], 2
jne 0x433e6b
test ebx, ebx
jne 0x433e0a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x433e0a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x433e1f
inc ebp
cmp byte [ebp], 0
jne 0x433e11
inc ebp
cmp byte [ebp], 0
jne 0x433e11
sub ebp, ebx
inc ebp
push ebp
call fcn.00430690
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x433e44
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x434180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x465588
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4341a7
add eax, 8
inc ecx
cmp eax, 0x465610
jb 0x434198
cmp dword [ecx*8 + 0x465588], edx
lea ebx, [ecx*8]
jne 0x434362
cmp dword [0x464f1c], 1
je 0x434327
cmp dword [0x464f1c], 0
jne 0x4341de
cmp dword [0x464f20], 1
je 0x434327
cmp edx, 0xfc
je 0x434362
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x43421b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x43425f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x46430c
push ebp
call fcn.00436c40
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x457bb8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x46558c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00436ba0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x46a140]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x43433e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x46558c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x436dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push ebp
mov ebp, dword [esp + 0x434]
cmp ebp, ebx
jne 0x436de8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x46a140
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov esi, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x436e29
push 2
push 0
push edx
call fcn.00437040
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x436ec5
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x436efe
lea esi, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x436e8c
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x436e7a
mov byte [esi], 0xd
inc ebx
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x436e61
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436ef4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp esi, eax
jle 0x436e4c
jmp 0x436efe
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436ef4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x436efe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x436faa
cmp dword [esp + 0x10], 0
je 0x436f5a
cmp dword [esp + 0x10], 5
jne 0x436f3d
call fcn.004316b0
mov dword [eax], 9
call fcn.004316c0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00431630
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x436f84
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x436f84
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.004316b0
mov dword [eax], 0x1c
call fcn.004316c0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x418
ret