joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446c80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xe8
mov al, byte [0x46be68]
push ebx
push esi
push edi
mov esi, ecx
push ebp
xor ebx, ebx
cmp al, 1
sbb eax, eax
and eax, 0xfffffe98
add eax, 0x2d0
cdq
mov dword [0x49010c], eax
sub eax, edx
sar eax, 1
mov dword [0x490118], eax
dec eax
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x490110], eax
mov eax, dword [0x49010c]
imul eax, dword [0x4a9958]
push eax
push 0x40
call ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x446dfb
mov ecx, esi
call fcn.00446c60
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x446dee
lea eax, [esp + 0x1c]
push ebx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [0x49010c]
mov edx, dword [esp + 0x20]
imul eax, dword [0x4a9958]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446de1
lea edx, [esp + 0x20]
mov ecx, dword [0x46bf00]
call fcn.0041a400
test al, al
je 0x446de1
lea edx, [esp + 0x8c]
mov ecx, dword [0x46bf04]
call fcn.0041a400
test al, al
je 0x446dd1
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0xb0]
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x4a9958]
cmp ecx, ebx
jle 0x446dbc
mov ecx, dword [0x490118]
mov edi, eax
mov esi, ebp
inc ebx
mov dword [esp + 0x10], ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov ecx, dword [0x490118]
add eax, esi
add ebp, ecx
mov edi, edx
mov esi, ebp
mov dword [esp + 0x10], ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x9c]
mov ecx, dword [0x490118]
add edx, edi
add ebp, ecx
cmp ebx, dword [0x4a9958]
jl 0x446d62
mov ebx, 1
push 0
mov eax, dword [0x46bf04]
push eax
mov ebp, dword [eax]
call dword [ebp + pe_nt_image_headers32]
push 0
mov eax, dword [0x46bf00]
push eax
mov ebp, dword [eax]
call dword [ebp + pe_nt_image_headers32]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call ebp
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
Function at 0x446e30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x78
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
xor esi, esi
mov al, byte [0x46be68]
test al, al
jne 0x446e64
mov eax, dword [esp + 0x90]
mov ecx, dword [0x46bef8]
cmp eax, ecx
je 0x446e64
sar ebx, 1
mov ebp, dword [esp + 0x8c]
sar ebp, 1
jmp 0x446e6b
mov ebp, dword [esp + 0x8c]
imul ebp, ebx
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x446f35
mov ecx, edi
call fcn.00446c60
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x446f2a
lea eax, [esp + 0x18]
push 0
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x1c]
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446f1f
mov eax, dword [esp + 0x18]
sub edx, edx
div ebx
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x8c], eax
call fcn.0041a400
test al, al
je 0x446f1f
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jle 0x446f06
mov ebp, ecx
mov edi, eax
mov esi, edx
mov ecx, ebx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x2c]
dec ebp
jne 0x446eeb
mov eax, dword [esp + 0x90]
push 0
push eax
mov ebx, dword [eax]
call dword [ebx + pe_nt_image_headers32]
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret 8

Function at 0x446f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
mov esi, edx
call fcn.00446c60
cmp eax, 0xffffffff
je 0x446faa
lea ecx, [esp + 4]
push 0
push ecx
push 0x400
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 4]
cmp ecx, 0x400
jne 0x446faa
mov eax, 1
pop esi
add esp, 4
ret
xor eax, eax
pop esi
add esp, 4
ret
Function at 0x44a2c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push ebx
push esi
push edi
push ebp
push eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44a340
mov ecx, dword [0x490124]
mov al, byte [esp + ebp + 0x14]
test al, 0x80
je 0x44a337
mov al, byte [ebp + 0x4b6690]
test al, al
je 0x44a337
xor ebx, ebx
test ecx, ecx
jle 0x44a337
mov edi, 0x46d690
mov esi, 0x45eef9
mov al, byte [ebp + 0x4b6690]
mov dl, byte [esi]
cmp dl, al
jne 0x44a32c
mov ecx, ebx
call fcn.0044a290
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
or eax, ecx
mov ecx, dword [0x490124]
mov dword [esp + 0x10], eax
add edi, 8
add esi, 2
inc ebx
cmp ebx, ecx
jl 0x44a307
inc ebp
cmp ebp, 0x100
jb 0x44a2e5
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x44b900
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
test edx, edx
push esi
push edi
mov dword [ecx], edx
push ebp
mov edi, ecx
jne 0x44b91a
mov dword [edi + 4], 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret 4
mov eax, dword [edx]
mov dword [edi + 4], eax
cmp eax, 0x52445744
jg 0x44b943
je 0x44b96d
cmp eax, 0x52424c44
je 0x44b957
mov ebx, dword [esp + 0x14]
pop ebp
mov dword [edi + 0xc], ebx
sar ebx, 8
mov dword [edi + 0x10], ebx
pop edi
pop esi
pop ebx
ret 4
cmp eax, 0x5248494c
je 0x44ba14
cmp eax, 0x524d544e
je 0x44b96d
jmp 0x44b92f
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
add edx, 0x10
mov dword [edi + 8], edx
jmp 0x44b92f
mov ebx, dword [esp + 0x14]
lea ebp, [edi + 0x18]
test ebx, ebx
jne 0x44b98a
lea ecx, [edi + 0x1c]
mov dword [ebp], 0
mov dword [ecx], 0
jmp 0x44b99a
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x1c]
dec eax
mov dword [ebp], eax
mov eax, dword [edx + 0x10]
dec eax
mov dword [ecx], eax
lea esi, [edi + 0x20]
mov eax, dword [ebp]
shl eax, 4
mov ebp, dword [ecx]
add eax, edx
add eax, 0x18
mov dword [esi], eax
mov eax, dword [edx + 0xc]
add eax, ebp
shl eax, 4
add eax, edx
add eax, 0x18
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0xc]
mov ecx, 2
shl eax, 4
add eax, edx
add eax, 0x18
mov dword [edi + 8], eax
mov edx, dword [esi]
xor eax, eax
add esi, 4
mov al, byte [edx + 6]
add eax, eax
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 4], eax
xor eax, eax
mov edx, dword [esi - 4]
mov al, byte [edx + 0xb]
shl eax, 2
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
xor eax, eax
mov edx, dword [esi - 4]
mov al, byte [edx + 8]
shl eax, 2
cdq
sub eax, edx
sar eax, 1
dec ecx
mov dword [esi + 0x14], eax
jne 0x44b9d2
jmp 0x44b933
mov ebx, dword [esp + 0x14]
mov ecx, edi
push ebx
call fcn.0044b800
jmp 0x44b933
Function at 0x44fdd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [edx]
mov eax, dword [eax]
mov edx, esi
dec esi
test edx, edx
je 0x44fe02
xor edx, edx
mov dl, byte [ecx]
inc ecx
xor edx, eax
shr eax, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x46d868]
xor edx, eax
mov eax, edx
mov edx, esi
dec esi
test edx, edx
jne 0x44fde0
pop esi
ret 4

Function at 0x450720
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.004507b0
mov dword [0x46e7cc], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x46e7c8], bl
jne 0x450781
cmp dword [0x4b9ac4], 0
je 0x45076f
mov esi, dword [0x4b9ac0]
sub esi, 4
cmp esi, dword [0x4b9ac4]
jb 0x45076f
mov eax, dword [esi]
test eax, eax
je 0x450764
call eax
sub esi, 4
cmp esi, dword [0x4b9ac4]
jae 0x45075c
push 0x45c024
push 0x45c01c
call fcn.004507d0
add esp, 8
push 0x45c02c
push 0x45c028
call fcn.004507d0
add esp, 8
test ebx, ebx
je 0x45079f
call fcn.004507c0
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x452530
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x74
push 1
call fcn.004551f0
add esp, 8
mov esi, eax
cmp esi, edi
je 0x452590
push esi
call fcn.00452a70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esi + 0x48], eax
push edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x14]
push esi
mov dword [esi + 4], 0xffffffff
push 0x4525b0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4525a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00450530
add esp, 4
test edi, edi
je 0x4525a6
push edi
call fcn.00453270
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x4526b0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b6e0
push 0x4563d8
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 [0x46e794], eax
xor eax, eax
mov al, byte [0x46e795]
mov dword [0x46e7a0], eax
mov eax, dword [0x46e794]
shr dword [0x46e794], 0x10
and eax, 0xff
mov dword [0x46e79c], eax
shl eax, 8
add eax, dword [0x46e7a0]
mov dword [0x46e798], eax
call fcn.00452880
call fcn.00452a10
test eax, eax
jne 0x452729
push 0x10
call fcn.00452850
add esp, 4
mov dword [ebp - 4], 0
call fcn.00453090
call fcn.00456d20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4b8ab4], eax
call fcn.00456870
mov dword [0x46ebe4], eax
test eax, eax
je 0x45275c
cmp dword [0x4b8ab4], 0
jne 0x452766
push 0xffffffffffffffff
call fcn.004506e0
add esp, 4
call fcn.004565f0
call fcn.00456510
call fcn.004506b0
mov esi, dword [0x4b8ab4]
mov al, byte [esi]
cmp al, 0x22
je 0x45278d
cmp al, 0x20
jbe 0x4527ba
inc esi
cmp byte [esi], 0x20
ja 0x452785
jmp 0x4527ba
inc esi
cmp byte [esi], 0x22
je 0x4527b9
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4527b4
xor eax, eax
mov al, bl
push eax
call fcn.004564b0
add esp, 4
test eax, eax
je 0x4527ae
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x452796
cmp byte [esi], 0x22
jne 0x4527ba
inc esi
cmp byte [esi], 0
je 0x4527ca
cmp byte [esi], 0x20
ja 0x4527ca
inc esi
cmp byte [esi], 0
jne 0x4527bf
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 0x4527ee
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.004506e0
jmp 0x45282f
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 0x452a10
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00452bb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x46ec10], eax
cmp eax, 0xffffffff
jne 0x452a2a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004551f0
add esp, 8
mov esi, eax
test esi, esi
je 0x452a6c
push esi
mov eax, dword [0x46ec10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x452a6c
push esi
call fcn.00452a70
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 0x452a90
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 [0x46ec10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x452af3
push 0x74
push 1
call fcn.004551f0
add esp, 8
mov edi, eax
test edi, edi
je 0x452ae9
push edi
mov eax, dword [0x46ec10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x452ae9
push edi
call fcn.00452a70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x452af3
push 0x10
call fcn.00452850
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
cmp dword [0x46ec10], 0xffffffff
push esi
je 0x452b9f
mov esi, dword [esp + 8]
test esi, esi
jne 0x452b28
mov eax, dword [0x46ec10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x452b91
mov eax, dword [esi + 0x24]
test eax, eax
je 0x452b38
push eax
call fcn.00450530
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x452b48
push eax
call fcn.00450530
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x452b58
push eax
call fcn.00450530
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x452b68
push eax
call fcn.00450530
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x452b78
push eax
call fcn.00450530
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x452b88
push eax
call fcn.00450530
add esp, 4
push esi
call fcn.00450530
add esp, 4
push 0
mov eax, dword [0x46ec10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x453390
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 0x4533b8
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, 0x4b89b0
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 0x4533f9
push 2
push 0
push edx
call fcn.00453000
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x453495
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4534ce
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x45345c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x45344a
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 0x453431
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 0x4534c4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x45341c
jmp 0x4534ce
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 0x4534c4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4534ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x45357a
cmp dword [esp + 0x10], 0
je 0x45352a
cmp dword [esp + 0x10], 5
jne 0x45350d
call fcn.004532f0
mov dword [eax], 9
call fcn.00453300
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.00453270
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 0x453554
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x453554
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.004532f0
mov dword [eax], 0x1c
call fcn.00453300
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
Function at 0x456870
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x46efb4], 0
push ebx
push esi
push edi
push ebp
jne 0x4568c0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x45689e
mov dword [0x46efb4], 1
mov ebx, dword [esp + 0x10]
jmp 0x4568ce
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4568b6
mov dword [0x46efb4], 2
jmp 0x4568ce
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x46efb4], 1
jne 0x45697d
test edi, edi
jne 0x4568f1
call esi
mov edi, eax
test edi, edi
jne 0x4568f1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x45690b
add esi, 2
cmp word [esi], 0
jne 0x4568f9
add esi, 2
cmp word [esi], 0
jne 0x4568f9
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 0x45696c
push ebp
call fcn.00450550
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x45696c
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 0x45695b
push ebx
call fcn.00450530
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 [0x46efb4], 2
jne 0x456a01
test ebx, ebx
jne 0x4569a0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4569a0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4569b5
inc ebp
cmp byte [ebp], 0
jne 0x4569a7
inc ebp
cmp byte [ebp], 0
jne 0x4569a7
sub ebp, ebx
inc ebp
push ebp
call fcn.00450550
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4569da
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 0x456d70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x46f438
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x456d98
add ecx, 8
inc eax
cmp ecx, 0x46f4c0
jb 0x456d88
cmp dword [eax*8 + 0x46f438], edx
lea ebx, [eax*8]
jne 0x456f53
cmp dword [0x46ebf0], 1
je 0x456f18
cmp dword [0x46ebf0], 0
jne 0x456dcf
cmp dword [0x46ebf4], 1
je 0x456f18
cmp edx, 0xfc
je 0x456f53
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x456e0c
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 0x456e50
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 0x46f50c
push ebp
call fcn.00452260
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, 0x46f4ec
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 + 0x46f43c]
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.00459410
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4b89b0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x456f2f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x46f43c]
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