joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
or ebp, 0xffffffff
jmp 0x485b02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x485b09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485af8
mov eax, 1
add ebx, ebx
jne 0x485b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x485b2c
jne 0x485b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b4b
dec eax
add ebx, ebx
jne 0x485b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x485b10
add ebx, ebx
jne 0x485b47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x485b9d
xor ecx, ecx
sub eax, 3
jb 0x485b63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x485bd2
sar eax, 1
mov ebp, eax
jmp 0x485b6e
add ebx, ebx
jne 0x485b6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b3c
inc ecx
add ebx, ebx
jne 0x485b7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b3c
add ebx, ebx
jne 0x485b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x485b7e
jne 0x485b9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x485b7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x485bbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x485bae
jmp 0x485afe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x485bbc
add edi, ecx
jmp 0x485afe
pop esi
mov edi, esi
mov ecx, 0x946
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x485bda
cmp byte [edi], 0x11
jne 0x485bda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x485bdf
lea edi, [esi + 0x82000]
mov eax, dword [edi]
or eax, eax
je 0x485c57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9e218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e2d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x485c0c
mov ecx, edi
jns 0x485c3b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e2dc]
or eax, eax
je 0x485c51
mov dword [ebx], eax
add ebx, 4
jmp 0x485c29
call dword [esi + 0x9e2d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x485c88
cmp al, 0xef
ja 0x485c7b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x485c5d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x485c6a
mov ebp, dword [esi + 0x9e2e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x485cbc
sub esp, 0xffffff80
jmp 0x404ff7
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x5be23419
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x504f0446
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4011c0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0xe4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4153e4
push eax
call edi
mov ebx, dword [esp + 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xf4]
push ebx
push ecx
call esi
lea edx, [esp + 0xf4]
push str..ttf
push edx
call esi
push 0x180
lea eax, [esp + 0xf8]
push 0x8101
push eax
call fcn.00401740
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x401234
push str.Couldnt_create_data_file
call fcn.004016c0
add esp, 4
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
push ecx
push edx
push ebp
call fcn.004014a0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401262
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.004013c0
add esp, 4
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x174]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb4]
push eax
push ecx
call edi
lea edx, [esp + 0xb4]
push str._fonts
push edx
call esi
lea eax, [esp + 0x10]
push str._fonts_
push eax
call esi
lea ecx, [esp + 0x10]
push ebx
push ecx
call esi
lea edx, [esp + 0x10]
push str..ttf
push edx
call esi
lea eax, [esp + 0x50]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x50]
push 0x4153ac
push ecx
call esi
lea edx, [esp + 0x50]
push ebx
push edx
call esi
lea eax, [esp + 0x50]
push str..fot
push eax
call esi
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x178]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1b4]
push ebx
push ecx
call edi
lea edx, [esp + 0x1b4]
push str..ttf
push edx
call esi
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateScalableFontResourceA]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xf4]
push ecx
call fcn.00401390
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x401390
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4013a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4013a9
xor eax, eax
test eax, eax
je 0x4013ba
push eax
call fcn.00401cf0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4014a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x417e60]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40164d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x417d60]
lea edi, [ecx*4 + 0x417d60]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40164d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40150e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40151f
push 2
push ebp
push eax
call fcn.00402300
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40167e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4015c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40157a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x401567
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 0x40154a
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 0x40166f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4015c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x401546
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40163e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401612
cmp eax, 5
jne 0x4015fb
mov dword [0x417a90], eax
mov dword [0x417a8c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00401cf0
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 0x401632
cmp byte [ebp], 0x1a
jne 0x401632
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x417a8c], 0x1c
jmp 0x401657
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x417a8c], 9
pop edi
pop esi
pop ebp
mov dword [0x417a90], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4015c5
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 0x4016af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4015c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4015c9
Function at 0x401b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405008
push 0x4032a8
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 [0x417aa4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x417aa0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x417a9c], ecx
shr eax, 0x10
mov dword [0x417a98], eax
call fcn.00403170
test eax, eax
jne 0x401b8a
push 0x1c
call fcn.00401cc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402100
call fcn.00403160
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417e70], eax
call fcn.00402d30
mov dword [0x417a80], eax
test eax, eax
je 0x401bbd
mov eax, dword [0x417e70]
test eax, eax
jne 0x401bc7
push 0xffffffffffffffff
call fcn.00401d90
add esp, 4
call fcn.00402a80
call fcn.00402990
call fcn.00401d60
mov esi, dword [0x417e70]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401ca6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401c0e
test al, al
je 0x401c0e
and eax, 0xff
push eax
call fcn.00402930
add esp, 4
test eax, eax
je 0x401be8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401be8
cmp byte [esi], 0x22
jne 0x401c17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401c27
cmp al, 0x20
ja 0x401c27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401c48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401c4d
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.00401d90
jmp 0x401c8b
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 0x401c17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ca6

Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x417ad4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401def
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 [0x417ad0], 1
mov byte [0x417acc], bl
jne 0x401e49
mov ecx, dword [0x417e68]
test ecx, ecx
je 0x401e37
mov esi, dword [0x417e64]
sub esi, 4
cmp esi, ecx
jb 0x401e37
mov eax, dword [esi]
test eax, eax
je 0x401e30
call eax
mov ecx, dword [0x417e68]
sub esi, 4
cmp esi, ecx
jae 0x401e22
push 0x406014
push 0x406010
call fcn.00401e80
add esp, 8
push 0x40601c
push 0x406018
call fcn.00401e80
add esp, 8
test ebx, ebx
jne 0x401e70
push ebp
mov dword [0x417ad4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4023c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00403720
mov eax, dword [0x417e60]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x402522
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x417d60]
test byte [edx + ecx*8 + 4], 1
je 0x402522
push 1
push ebp
push ebx
call fcn.00402300
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40252c
push 2
push ebp
push ebx
call fcn.00402300
add esp, 0xc
cmp eax, 0xffffffff
je 0x40252c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4024c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004036a0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40246f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004014a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40248b
sub esi, eax
test esi, esi
jle 0x4024a1
jmp 0x402460
cmp dword [0x417a90], 5
jne 0x40249e
mov dword [0x417a8c], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004036a0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x402509
push 0
push ecx
push ebx
call fcn.00402300
add esp, 0xc
push ebx
call fcn.004020b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x402509
mov dword [0x417a8c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x417a90], eax
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x417a8c], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x402d30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x417be8]
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 0x402d72
call edi
mov esi, eax
test esi, esi
je 0x402d5c
mov eax, 1
jmp 0x402d6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov eax, 2
mov dword [0x417be8], eax
cmp eax, 1
jne 0x402e12
test esi, esi
jne 0x402d8b
call edi
mov esi, eax
test esi, esi
je 0x402e7f
cmp word [esi], 0
mov eax, esi
je 0x402da5
add eax, 2
cmp word [eax], 0
jne 0x402d93
add eax, 2
cmp word [eax], 0
jne 0x402d93
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 0x402e04
push edi
call fcn.004035a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e04
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 0x402df6
push ebx
call fcn.00403650
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 0x402e7f
test ebx, ebx
jne 0x402e23
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402e3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004035a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402e5d
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 0x4033c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4157b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4033e4
add eax, 8
inc ebp
cmp eax, 0x415840
jb 0x4033d5
cmp ecx, dword [ebp*8 + 0x4157b0]
jne 0x40358b
mov eax, dword [0x417a88]
cmp eax, 1
je 0x40354d
test eax, eax
jne 0x403410
cmp dword [0x4153ec], 1
je 0x40354d
cmp ecx, 0xfc
je 0x40358b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40344b
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 0x403494
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 0x405620
add ebx, ecx
push ebx
call fcn.00403f00
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, 0x405600
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 + 0x4157b4]
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.00403e70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x417d60]
test eax, eax
je 0x40355e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403568
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4157b4]
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
Function at 0x40d150
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x431760
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40d174
add eax, 8
inc ebp
cmp eax, 0x4317f0
jb 0x40d165
cmp ecx, dword [ebp*8 + 0x431760]
jne 0x40d31b
mov eax, dword [0x436a34]
cmp eax, 1
je 0x40d2dd
test eax, eax
jne 0x40d1a0
cmp dword [0x431034], 1
je 0x40d2dd
cmp ecx, 0xfc
je 0x40d31b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d1db
mov ecx, 5
mov esi, 0x42ae34
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 0x40d224
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 0x42ae30
add ebx, ecx
push ebx
call fcn.0040ff50
add esp, 0xc
mov ecx, 6
mov esi, 0x42ae14
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, 0x42ae10
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42ade8
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 + 0x431764]
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.0040fec0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x437ee0]
test eax, eax
je 0x40d2ee
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40d2f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x431764]
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

Function at 0x40df91
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x40dfa4
xor eax, eax
jmp 0x40e047
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx