joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4154d0
Capabilities:
Capture microphone audio

Disassembly:
cmp dword [ecx + 0x5a], 0
je 0x4154de
mov ecx, dword [ecx + 0x62]
jmp 0x42bca0
ret
cmp dword [ecx + 0x14], 0
jne 0x42bcac
mov eax, 0xffffffec
ret
jmp 0x42c180
mov eax, dword [ecx + 0xd4]
test eax, eax
je 0x42c1db
cmp word [eax], 3
jne 0x42c1db
cmp word [eax + 2], 1
jne 0x42c1b9
mov word [eax], 1
mov eax, dword [ecx + 0xd4]
mov ecx, dword [eax + 0x9e]
push ecx
call dword [sym.imp.WINMM.dll_waveOutRestart]
test eax, eax
je 0x42c1db
mov eax, 0xffffff9d
ret
mov word [eax], 2
mov eax, dword [ecx + 0xd4]
mov ecx, dword [eax + 0xa2]
push ecx
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
je 0x42c1db
mov eax, 0xffffff9d
ret
xor eax, eax
ret
Function at 0x4176f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 4
mov dword [esp], pe_nt_image_headers32
push ebx
push esi
push edi
xor esi, esi
lea edi, [ecx + 0x17c]
mov eax, dword [ecx + 0x184]
push edi
mov ecx, dword [ecx + 0x180]
push 0xf003f
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41776c
lea eax, [esp + 0xc]
mov ebx, dword [esp + 0x18]
push eax
mov ecx, ebx
push pe_nt_image_headers32
call fcn.00441c61
mov ecx, dword [esp + 0x18]
push eax
push esi
mov eax, dword [edi]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417754
mov esi, 1
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00441cb6
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41776c
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x417780
Capabilities:
Query or enumerate registry value

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

Function at 0x4178d0
Capabilities:
Set registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push ebx
push esi
push edi
xor esi, esi
lea edi, [ecx + 0x17c]
push eax
push edi
push esi
mov edx, dword [ecx + 0x184]
push 0xf003f
mov ecx, dword [ecx + 0x180]
push esi
push esi
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41793c
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [edi]
push ebx
push 1
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41792d
mov esi, 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41793c
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x417950
Capabilities:
Set registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
push edi
xor esi, esi
lea edi, [ecx + 0x17c]
push eax
push edi
mov edx, dword [ecx + 0x184]
push esi
mov ecx, dword [ecx + 0x180]
push 0xf003f
push esi
push esi
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4179b4
lea eax, [esp + 0x14]
push 4
mov ecx, dword [esp + 0x14]
push eax
push 4
mov edx, dword [edi]
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4179a5
mov esi, 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4179b4
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 4
ret 8
Function at 0x41dc90
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 0x41dfa7
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.00441779
mov dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
call fcn.00441779
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
call fcn.00441779
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
call fcn.00441779
push 0x464e60
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.0044194c
push 0x464e5c
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 4
lea ebx, [esi + 0x48]
call fcn.0044194c
push 0x464e58
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.0044194c
push 0x464e54
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0044194c
lea ecx, [esi + 0x50]
push str.M_d_yy
mov byte [ebp - 4], 7
call fcn.0044194c
lea ecx, [esi + 0x54]
push str.intl
mov byte [ebp - 4], 8
call fcn.0044194c
lea ecx, [esi + 0x58]
push str.iDate
mov byte [ebp - 4], 9
call fcn.0044194c
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x5c]
push str.iTime
call fcn.0044194c
lea ecx, [esi + 0x60]
push str.iTLZero
mov byte [ebp - 4], 0xb
call fcn.0044194c
lea ecx, [esi + 0x64]
push str.s1159
mov byte [ebp - 4], 0xc
call fcn.0044194c
lea ecx, [esi + 0x68]
push str.s2359
mov byte [ebp - 4], 0xd
call fcn.0044194c
lea ecx, [esi + 0x6c]
push str.sDate
mov byte [ebp - 4], 0xe
call fcn.0044194c
lea ecx, [esi + 0x70]
push str.sTime
mov byte [ebp - 4], 0xf
call fcn.0044194c
lea ecx, [esi + 0x74]
push 0x464e08
mov byte [ebp - 4], 0x10
call fcn.0044194c
lea ecx, [esi + 0x78]
push 0x464e04
mov byte [ebp - 4], 0x11
call fcn.0044194c
lea ecx, [esi + 0x7c]
push 0x464e00
mov byte [ebp - 4], 0x12
call fcn.0044194c
lea ecx, [esi + 0x80]
push 0x464dfc
mov byte [ebp - 4], 0x13
call fcn.0044194c
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.004419d7
lea ecx, [esi + 0x38]
push ecx
lea ecx, [esi + 0x1c]
call fcn.004419d7
push ebx
lea ecx, [esi + 0x20]
call fcn.004419d7
push edi
lea ecx, [esi + 0x24]
call fcn.004419d7
sub esp, 4
mov dword [ebp - 0x14], esp
push 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0043f8cb
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
mov ecx, esi
call fcn.0041dfc0
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 0x42ada0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42afcc
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.0042ad60
lea ecx, [ebp - 0x34]
call fcn.00443076
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00441779
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00441779
mov byte [ebp - 4], 3
call fcn.004513dc
mov eax, dword [eax + 4]
add eax, 0xd4
mov eax, dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044194c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00441859
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00441c61
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.00441cb6
test edi, edi
je 0x42ae55
mov eax, dword [ebp - 0x14]
push eax
call fcn.004423db
test edi, edi
jne 0x42aeb1
lea ecx, [ebp - 0x18]
call fcn.00441859
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00441c61
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00441cb6
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00441c61
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.00441cb6
mov eax, dword [ebp - 0x14]
push eax
call fcn.004423db
mov edi, dword [ebp + 8]
test edi, edi
je 0x42af5d
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043fbb6
push eax
lea ecx, [ebp - 0x14]
call fcn.00441cde
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00441cb6
push edi
lea ecx, [ebp - 0x14]
call fcn.00441c0c
mov ebx, 1
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00442dd0
test eax, eax
je 0x42af5d
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00441c61
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.00441cb6
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043fbb6
push eax
lea ecx, [ebp - 0x14]
call fcn.00441cde
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00441cb6
push edi
lea ecx, [ebp - 0x14]
call fcn.00441c0c
inc ebx
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00442dd0
test eax, eax
jne 0x42aefb
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.0042afa8
mov byte [ebp - 4], 2
call fcn.0042afb0
mov byte [ebp - 4], 1
call fcn.0042afb8
mov dword [ebp - 4], 0xffffffff
call fcn.0042afd6
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 0x42c510
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 0x42c532
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 0x431290
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459228
push 0x4352d8
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 [0x465854], eax
xor eax, eax
mov al, byte [0x465855]
mov dword [0x465860], eax
mov eax, dword [0x465854]
shr dword [0x465854], 0x10
and eax, 0xff
mov dword [0x46585c], eax
shl eax, 8
add eax, dword [0x465860]
mov dword [0x465858], eax
call fcn.004339d0
test eax, eax
jne 0x431304
push 0x1c
call fcn.00431440
add esp, 4
call fcn.004335d0
test eax, eax
jne 0x431317
push 0x10
call fcn.00431440
add esp, 4
mov dword [ebp - 4], 0
call fcn.004350f0
call fcn.00432330
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46b2e0], eax
call fcn.00434f60
mov dword [0x465830], eax
test eax, eax
je 0x43134a
cmp dword [0x46b2e0], 0
jne 0x431354
push 0xffffffffffffffff
call fcn.004314f0
add esp, 4
call fcn.00434cf0
call fcn.00434c00
call fcn.004314c0
mov esi, dword [0x46b2e0]
mov al, byte [esi]
cmp al, 0x22
je 0x43137b
cmp al, 0x20
jbe 0x4313a8
inc esi
cmp byte [esi], 0x20
ja 0x431373
jmp 0x4313a8
inc esi
cmp byte [esi], 0x22
je 0x4313a7
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4313a2
xor eax, eax
mov al, bl
push eax
call fcn.00434ba0
add esp, 4
test eax, eax
je 0x43139c
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x431384
cmp byte [esi], 0x22
jne 0x4313a8
inc esi
cmp byte [esi], 0
je 0x4313b8
cmp byte [esi], 0x20
ja 0x4313b8
inc esi
cmp byte [esi], 0
jne 0x4313ad
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 0x4313dc
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.004314f0
jmp 0x43141d
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 0x431530
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.004315f0
cmp dword [0x465890], 1
mov esi, dword [esp + 0x10]
jne 0x431553
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x46588c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x465888], bl
jne 0x4315ad
cmp dword [0x46b2dc], 0
je 0x43159b
mov edi, dword [0x46b2d8]
sub edi, 4
cmp edi, dword [0x46b2dc]
jb 0x43159b
mov eax, dword [edi]
test eax, eax
je 0x431590
call eax
sub edi, 4
cmp edi, dword [0x46b2dc]
jae 0x431588
push 0x46408c
push 0x464084
call fcn.00431610
add esp, 8
push 0x464094
push 0x464090
call fcn.00431610
add esp, 8
test ebx, ebx
je 0x4315cc
call fcn.00431600
pop edi
pop esi
pop ebx
ret
mov dword [0x465890], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4335d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004336c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x465d10], eax
cmp eax, 0xffffffff
jne 0x4335ea
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004369b0
add esp, 8
mov esi, eax
test esi, esi
je 0x43362c
push esi
mov eax, dword [0x465d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x43362c
push esi
call fcn.00433630
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 0x433650
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 [0x465d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4336b3
push 0x74
push 1
call fcn.004369b0
add esp, 8
mov edi, eax
test edi, edi
je 0x4336a9
push edi
mov eax, dword [0x465d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4336a9
push edi
call fcn.00433630
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x4336b3
push 0x10
call fcn.00431440
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x434f60
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4666b4], ebx
jne 0x434faf
call esi
cmp eax, ebx
mov edi, eax
je 0x434f8d
mov dword [0x4666b4], 1
jmp 0x434faf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x434fa5
mov dword [0x4666b4], 2
jmp 0x434faf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4666b4], 1
jne 0x43505e
test edi, edi
jne 0x434fd2
call esi
mov edi, eax
test edi, edi
jne 0x434fd2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x434fec
add esi, 2
cmp word [esi], 0
jne 0x434fda
add esi, 2
cmp word [esi], 0
jne 0x434fda
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 0x43504d
push ebp
call fcn.00431010
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43504d
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 0x43503c
push ebx
call fcn.00430fa0
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 [0x4666b4], 2
jne 0x4350e2
test ebx, ebx
jne 0x435081
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x435081
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x435096
inc ebp
cmp byte [ebp], 0
jne 0x435088
inc ebp
cmp byte [ebp], 0
jne 0x435088
sub ebp, ebx
inc ebp
push ebp
call fcn.00431010
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4350bb
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 0x4353f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4666e0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x435417
add eax, 8
inc ecx
cmp eax, 0x466770
jb 0x435408
cmp dword [ecx*8 + 0x4666e0], edx
lea ebx, [ecx*8]
jne 0x4355db
cmp dword [0x46583c], 1
je 0x435597
cmp dword [0x46583c], 0
jne 0x43544e
cmp dword [0x465840], 1
je 0x435597
cmp edx, 0xfc
je 0x4355db
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x43548b
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 0x4354cf
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 0x465098
push ebp
call fcn.00437fa0
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, 0x459698
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 + 0x4666e4]
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.00437f00
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x46b1d0], 0
je 0x4355ad
mov eax, dword [0x46b1d0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4355b7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4666e4]
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 0x438120
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x438148
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, 0x46b1d0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x438189
push 2
push 0
push edx
call fcn.004383a0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x438225
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x43825e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4381ec
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4381da
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4381c1
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 0x438254
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x4381ac
jmp 0x43825e
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 0x438254
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x43825e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x43830a
cmp dword [esp + 0x10], 0
je 0x4382ba
cmp dword [esp + 0x10], 5
jne 0x43829d
call fcn.00431f40
mov dword [eax], 9
call fcn.00431f50
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.00431ec0
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 0x4382e4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4382e4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00431f40
mov dword [eax], 0x1c
call fcn.00431f50
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, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret