joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424560
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 0x4245dc
lea eax, [esp + 0xc]
mov ebx, dword [esp + 0x18]
push eax
mov ecx, ebx
push pe_nt_image_headers32
call fcn.00445385
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 0x4245c4
mov esi, 1
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004453da
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4245dc
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4245f0
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 0x424656
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 0x424647
mov esi, 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x424656
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 4
ret 8

Function at 0x424740
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 0x4247ac
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 0x42479d
mov esi, 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4247ac
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x4247c0
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 0x424824
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 0x424815
mov esi, 1
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x424824
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 4
ret 8
Function at 0x4264b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4266d7
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x18], ecx
push ebx
push esi
lea ecx, [ebp - 0x24]
push edi
mov dword [ebp - 0x10], esp
call fcn.00444ea3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00444ea3
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push edx
mov dword [ebp - 0x20], ecx
mov ecx, eax
mov eax, dword [ebp - 0x20]
call dword [eax + 0x20]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004450fb
mov byte [ebp - 4], 1
call fcn.004266c7
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 0x18]
call fcn.00426370
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x20]
call dword [ebx + 0x24]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 0x78]
mov dword [ecx + 0x18], esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov dword [eax], 1
call fcn.00445788
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
call fcn.00426390
test eax, eax
je 0x42656b
push 0
push 0x20
mov ecx, dword [ebp - 0x18]
call fcn.0042ce50
test eax, eax
jne 0x426572
push 9
call fcn.0041f080
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.00445402
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x34], eax
push 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x74]
neg eax
push eax
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x2c]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x34], ebx
jle 0x426644
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x58]
push ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
call fcn.00401240
mov esi, eax
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [esi + 0x10]
push eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x11]
call fcn.0041e740
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x42663b
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
sub eax, 8
push eax
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x34]
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x2c]
push 4
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x18], edi
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 1
inc ebx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x34], ebx
jg 0x4265cb
push 0
call fcn.0041f080
mov dword [ebp - 4], 1
call fcn.004266bf
mov byte [ebp - 4], 0
call fcn.004266cf
mov dword [ebp - 4], 0xffffffff
call fcn.004266e1
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429ac0
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 0x429ae2
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 0x42c5e6
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c80c
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.0042c5a0
lea ecx, [ebp - 0x34]
call fcn.00445788
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00444ea3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00444ea3
mov byte [ebp - 4], 3
call fcn.004500ae
mov eax, dword [eax + 4]
add eax, 0xd4
mov eax, dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00445070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00444f83
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00445385
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.004453da
test edi, edi
je 0x42c695
mov eax, dword [ebp - 0x14]
push eax
call fcn.00446544
test edi, edi
jne 0x42c6f1
lea ecx, [ebp - 0x18]
call fcn.00444f83
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00445385
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004453da
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00445385
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.004453da
mov eax, dword [ebp - 0x14]
push eax
call fcn.00446544
mov edi, dword [ebp + 8]
test edi, edi
je 0x42c79d
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043f33b
push eax
lea ecx, [ebp - 0x14]
call fcn.00445402
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004453da
push edi
lea ecx, [ebp - 0x14]
call fcn.00445330
mov ebx, 1
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00446f2f
test eax, eax
je 0x42c79d
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00445385
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.004453da
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043f33b
push eax
lea ecx, [ebp - 0x14]
call fcn.00445402
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004453da
push edi
lea ecx, [ebp - 0x14]
call fcn.00445330
inc ebx
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00446f2f
test eax, eax
jne 0x42c73b
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.0042c7e8
mov byte [ebp - 4], 2
call fcn.0042c7f0
mov byte [ebp - 4], 1
call fcn.0042c7f8
mov dword [ebp - 4], 0xffffffff
call fcn.0042c816
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 0x42d820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dab4
push eax
mov dword fs:[0], esp
sub esp, 4
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
mov esi, ecx
xor edi, edi
mov ebx, 1
lea ecx, [esi + 0xcc]
call fcn.00444ea3
lea ecx, [esi + 0xd0]
mov dword [ebp - 4], edi
call fcn.00444ea3
lea ecx, [esi + 0xd4]
mov byte [ebp - 4], bl
call fcn.00444ea3
mov byte [ebp - 4], 2
lea ecx, [esi + 0xd8]
call fcn.00444ea3
mov byte [ebp - 4], 3
lea ecx, [esi + 0xdc]
call fcn.00444ea3
mov byte [ebp - 4], 4
lea ecx, [esi + 0xe0]
call fcn.00444ea3
mov byte [ebp - 4], 5
lea ecx, [esi + 0xe4]
call fcn.00444ea3
mov byte [ebp - 4], 6
lea ecx, [esi + 0xe8]
call fcn.00444ea3
mov byte [ebp - 4], 7
lea ecx, [esi + 0xec]
call fcn.00444ea3
mov byte [ebp - 4], 8
lea ecx, [esi + 0xf0]
call fcn.00444ea3
mov byte [ebp - 4], 9
lea ecx, [esi + 0xcc]
call fcn.00444f83
lea ecx, [esi + 0xf0]
call fcn.00444f83
lea ecx, [esi + 0xe0]
call fcn.00444f83
lea ecx, [esi + 0xe4]
call fcn.00444f83
lea ecx, [esi + 0xd0]
call fcn.00444f83
lea ecx, [esi + 0xd4]
call fcn.00444f83
lea ecx, [esi + 0xd8]
call fcn.00444f83
mov dword [esi + 4], 0x1ae
mov dword [esi], 0xcf
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
push edi
mov dword [esi + 0x20], ebx
mov dword [esi + 8], 0x1af
mov dword [esi + 0x1c], edi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [esi + 0xb0], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xf4], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x58], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xac], 2
mov eax, esi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xc0], 0x2b11
mov dword [esi + 0xc4], 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42dfbc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ecx, dword [ebp - 0x10]
add ecx, 0x1d0
jmp 0x426f80
Function at 0x4328a0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00432960
cmp dword [0x465500], 1
mov esi, dword [esp + 0x10]
jne 0x4328c3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4654fc], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4654f8], bl
jne 0x43291d
cmp dword [0x46a3dc], 0
je 0x43290b
mov edi, dword [0x46a3d8]
sub edi, 4
cmp dword [0x46a3dc], edi
ja 0x43290b
mov eax, dword [edi]
test eax, eax
je 0x432900
call eax
sub edi, 4
cmp dword [0x46a3dc], edi
jbe 0x4328f8
push 0x4631a8
push 0x4631a0
call fcn.00432980
add esp, 8
push 0x4631b0
push 0x4631ac
call fcn.00432980
add esp, 8
test ebx, ebx
je 0x43293c
call fcn.00432970
pop edi
pop esi
pop ebx
ret
mov dword [0x465500], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push esi
call fcn.004335d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x465520], eax
cmp eax, 0xffffffff
jne 0x4334fa
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004366e0
add esp, 8
mov esi, eax
test esi, esi
je 0x43353c
push esi
mov eax, dword [0x465520]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x43353c
push esi
call fcn.00433540
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 0x433560
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 [0x465520]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4335c3
push 0x74
push 1
call fcn.004366e0
add esp, 8
mov edi, eax
test edi, edi
je 0x4335b9
push edi
mov eax, dword [0x465520]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4335b9
push edi
call fcn.00433540
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x4335c3
push 0x10
call fcn.00431450
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4345d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x46569c], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x434620
call esi
mov edi, eax
test edi, edi
je 0x4345fe
mov dword [0x46569c], 1
mov ebx, dword [esp + 0x10]
jmp 0x434628
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x434616
mov dword [0x46569c], 2
jmp 0x434628
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 [0x46569c], 1
jne 0x4346d7
test edi, edi
jne 0x43464b
call esi
mov edi, eax
test edi, edi
jne 0x43464b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x434665
add esi, 2
cmp word [esi], 0
jne 0x434653
add esi, 2
cmp word [esi], 0
jne 0x434653
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 0x4346c6
push ebp
call fcn.00430eb0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4346c6
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 0x4346b5
push ebx
call fcn.00430e90
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 [0x46569c], 2
jne 0x43475b
test ebx, ebx
jne 0x4346fa
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4346fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x43470f
inc ebp
cmp byte [ebp], 0
jne 0x434701
inc ebp
cmp byte [ebp], 0
jne 0x434701
sub ebp, ebx
inc ebp
push ebp
call fcn.00430eb0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x434734
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 0x434a70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4656c8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x434a97
add eax, 8
inc ecx
cmp eax, 0x465750
jb 0x434a88
cmp dword [ecx*8 + 0x4656c8], edx
lea ebx, [ecx*8]
jne 0x434c52
cmp dword [0x46503c], 1
je 0x434c17
cmp dword [0x46503c], 0
jne 0x434ace
cmp dword [0x465040], 1
je 0x434c17
cmp edx, 0xfc
je 0x434c52
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x434b0b
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 0x434b4f
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 0x4639f8
push ebp
call fcn.00437530
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, 0x457bc0
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 + 0x4656cc]
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.00437490
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x46a2d0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x434c2e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4656cc]
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 0x438a40
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 0x438a68
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, 0x46a2d0
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 0x438aa9
push 2
push 0
push edx
call fcn.00438cc0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x438b45
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x438b7e
lea esi, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x438b0c
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x438afa
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 0x438ae1
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 0x438b74
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp esi, eax
jle 0x438acc
jmp 0x438b7e
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 0x438b74
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x438b7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x438c2a
cmp dword [esp + 0x10], 0
je 0x438bda
cmp dword [esp + 0x10], 5
jne 0x438bbd
call fcn.00432780
mov dword [eax], 9
call fcn.00432790
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.00432700
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 0x438c04
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x438c04
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00432780
mov dword [eax], 0x1c
call fcn.00432790
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