joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460860
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x496588]
cmp dword [eax + 0x30], 0
je 0x46090a
cmp dword [ebx + 0x94], 0
jne 0x460904
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4607f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460904
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4608ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460904
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004186a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4608d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461624
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x461659
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e5c
jmp 0x461666
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404dc0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x462a68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462ad6
mov eax, esi
call fcn.0044cb08
test al, al
je 0x462ad6
mov eax, dword [ebx + 0x84]
call fcn.0044c768
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462ad6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x462aca
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c768
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00444a28
jmp 0x462ad6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004628a4
pop esi
pop ebx
ret
Function at 0x4639c4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407b8c]
call fcn.00405804
xor eax, eax
push ebp
push 0x463b65
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x491818], 0
jne 0x463a1f
mov ecx, dword [0x4923ac]
mov dl, 1
mov eax, dword [0x408178]
call fcn.0040cbec
call fcn.004047b4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403720
mov eax, ebx
call fcn.004056d4
mov dword [ebp - 0x24], eax
mov esi, 0x463b74
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406798
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004056e4
test eax, eax
jle 0x463b08
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x463af4
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404fdc
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x463a9a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404ff4
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x463ab0
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404ff4
mov eax, dword [ebp - 0x54]
call fcn.00405230
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404fdc
mov eax, dword [ebp - 0x58]
call fcn.00405230
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x463af6
xor eax, eax
test al, al
je 0x463b01
mov ebx, 0x15
jmp 0x463b0d
mov ebx, 0x10
jmp 0x463b0d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x491818]
call fcn.00463848
mov eax, dword [ebp - 4]
call fcn.00463848
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004067b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463b6c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404d90
lea eax, [ebp - 0xc]
mov edx, dword [0x407b8c]
call fcn.004058d4
ret
Function at 0x47c8cc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47c8fa
mov eax, ebx
call fcn.0047d380
cmp dword [ebx + 0x40], 0
je 0x47c8f3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47c96b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47c95d
cmp dword [ebx + 8], 0
je 0x47c91c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47c92e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47c95d
cmp dword [ebx + 8], 0
je 0x47c90f
cmp eax, 3
je 0x47c941
dec eax
jne 0x47c90f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47c90f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47c90f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47c989
cmp dword [ebx + 0x14], 0xcc
je 0x47c989
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047c994
pop ebx
ret
Function at 0x41e8c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41e8e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e8e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e8d8
mov eax, 1
add ebx, ebx
jne 0x41e8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e8f0
jne 0x41e90c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e8f0
xor ecx, ecx
sub eax, 3
jb 0x41e920
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e992
mov ebp, eax
add ebx, ebx
jne 0x41e92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e938
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e95c
inc ecx
add ebx, ebx
jne 0x41e948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e93d
jne 0x41e959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e93d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e97c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e96d
jmp 0x41e8de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e97c
add edi, ecx
jmp 0x41e8de
pop esi
mov edi, esi
mov ecx, 0x8af
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e99a
cmp byte [edi], 0xd
jne 0x41e99a
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 0x41e99f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41ea17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e9c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ea74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e9cc
mov ecx, edi
jns 0x41e9fb
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 + 0x1ea78]
or eax, eax
je 0x41ea11
mov dword [ebx], eax
add ebx, 4
jmp 0x41e9e9
call dword [esi + 0x1ea80]
mov ebp, dword [esi + 0x1ea7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x41ea4b
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402f33
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x402f51
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x40342d
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, pe_nt_image_headers32
push esi
call fcn.0041c4d7
push esi
push eax
xor eax, eax
xor ecx, ecx
mov al, byte [esp + 0x11]
mov ch, al
mov cl, byte [esp + 0x10]
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
call fcn.0041c526
pop esi
ret

Function at 0x403802
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
test eax, eax
jne 0x40384c
call ebx
push eax
lea eax, [ebp - 0x78]
push str.OpenProcessToken_Error__d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push esi
push eax
call fcn.00423fb1
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40389d
call ebx
push eax
lea eax, [ebp - 0x78]
push str.AdjustTokenPrivileges_Error__d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push esi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4038c6
call ebx
push eax
lea eax, [ebp - 0x78]
push str.Error_ExitWindows_Error__d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push esi
push eax
call fcn.00423fb1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004084b0
mov eax, dword [0x442408]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x408414
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 [0x442404], 1
mov byte [0x442400], bl
jne 0x40846e
mov ecx, dword [0x443a30]
test ecx, ecx
je 0x40845c
mov esi, dword [0x443a2c]
sub esi, 4
cmp esi, ecx
jb 0x40845c
mov eax, dword [esi]
test eax, eax
je 0x408455
call eax
mov ecx, dword [0x443a30]
sub esi, 4
cmp esi, ecx
jae 0x408447
push 0x43c0a8
push 0x43c0a0
call fcn.004084d0
add esp, 8
push 0x43c0b4
push 0x43c0ac
call fcn.004084d0
add esp, 8
test ebx, ebx
je 0x40848d
call fcn.004084c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x442408], 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x408ff0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436bf8
push 0x40dc88
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 [0x4423d8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4423d4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4423d0], ecx
shr eax, 0x10
mov dword [0x4423cc], eax
call fcn.0040bc00
test eax, eax
jne 0x40905a
push 0x1c
call fcn.004091a0
add esp, 4
call fcn.0040b680
test eax, eax
jne 0x40906d
push 0x10
call fcn.004091a0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040cca0
call fcn.0040a300
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x443a28], eax
call fcn.0040db20
mov dword [0x44240c], eax
test eax, eax
je 0x4090a0
mov eax, dword [0x443a28]
test eax, eax
jne 0x4090aa
push 0xffffffffffffffff
call fcn.004083b0
add esp, 4
call fcn.0040d870
call fcn.0040d780
call fcn.00408380
mov esi, dword [0x443a28]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x409189
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4090f1
test al, al
je 0x4090f1
and eax, 0xff
push eax
call fcn.0040d720
add esp, 4
test eax, eax
je 0x4090cb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4090cb
cmp byte [esi], 0x22
jne 0x4090fa
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40910a
cmp al, 0x20
ja 0x40910a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4090fa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40912b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x409130
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.004083b0
jmp 0x40916e
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 0x4090fa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409189
Function at 0x40b680
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040b8a0
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x43d2f0], eax
je 0x40b6d8
push 0x74
push 1
call fcn.00409e30
mov esi, eax
add esp, 8
test esi, esi
je 0x40b6d8
mov eax, dword [0x43d2f0]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x40b6d8
push esi
call fcn.0040b6e0
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov eax, dword [0x43d2f0]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40b76e
push 0x74
push 1
call fcn.00409e30
mov esi, eax
add esp, 8
test esi, esi
je 0x40b764
mov ecx, dword [0x43d2f0]
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x40b764
push esi
call fcn.0040b6e0
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.004091a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x40db20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x442718]
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 0x40db62
call edi
mov esi, eax
test esi, esi
je 0x40db4c
mov eax, 1
jmp 0x40db5d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40dc6f
mov eax, 2
mov dword [0x442718], eax
cmp eax, 1
jne 0x40dc02
test esi, esi
jne 0x40db7b
call edi
mov esi, eax
test esi, esi
je 0x40dc6f
cmp word [esi], 0
mov eax, esi
je 0x40db95
add eax, 2
cmp word [eax], 0
jne 0x40db83
add eax, 2
cmp word [eax], 0
jne 0x40db83
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 0x40dbf4
push edi
call fcn.00407fb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dbf4
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 0x40dbe6
push ebx
call fcn.00407f40
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 0x40dc6f
test ebx, ebx
jne 0x40dc13
call ebp
mov ebx, eax
test ebx, ebx
je 0x40dc6f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40dc2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dc1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dc1b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00407fb0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40dc4d
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 0x40dda0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x43f498
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40ddc4
add eax, 8
inc ebp
cmp eax, 0x43f528
jb 0x40ddb5
cmp ecx, dword [ebp*8 + 0x43f498]
jne 0x40df6b
mov eax, dword [0x442414]
cmp eax, 1
je 0x40df2d
test eax, eax
jne 0x40ddf0
cmp dword [0x43cd84], 1
je 0x40df2d
cmp ecx, 0xfc
je 0x40df6b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40de2b
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 0x40de74
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 0x4370c8
add ebx, ecx
push ebx
call fcn.004103f0
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, 0x4370a8
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 + 0x43f49c]
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.00410800
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x443920]
test eax, eax
je 0x40df3e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40df48
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x43f49c]
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 0x40fe40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40fe6c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x443920]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40fea7
push 2
push ebp
push ecx
call fcn.0040c4d0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x410009
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40ff51
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40ff02
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40feef
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 0x40fed2
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 0x40fffa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40ff4d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40fece
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40ffe9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ffa5
cmp eax, 5
jne 0x40ff8e
call fcn.0040a570
mov dword [eax], 9
call fcn.0040a580
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040a4f0
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 0x40ffc5
cmp byte [ebp], 0x1a
jne 0x40ffc5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040a570
mov dword [eax], 0x1c
call fcn.0040a580
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40ff4d
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 0x41003a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40ff51
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40ff51