joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100656ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1006574a
push ebx
push esi
call fcn.10065676
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005f5ce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100656f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10065749
push edi
push eax
call fcn.1005d560
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10065717
call fcn.1005d526
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10065748
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005f5ce
add esp, 0x20
test eax, eax
jne 0x10065736
push edi
call fcn.1005d526
jmp 0x1006573e
push ebx
call fcn.1005d526
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1006574d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1006575e
pop esi
ret
push ebx
push edi
push esi
call fcn.10065676
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005d560
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10065786
push ebx
push esi
push edi
call fcn.10044b30
add esp, 0xc
push 0
call fcn.1005d526
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10065ee0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100659fb

Function at 0x10068165
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005afff
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100681d4
cmp esi, dword [ebp - 4]
je 0x100681cf
cmp dword [ebp + 0xc], 0
je 0x100681cf
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100681ac
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10067cb7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100681d6
xor eax, eax
inc eax
jmp 0x100681d6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006823b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100e1c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1005afff
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1005afff
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100682b2
cmp word [ecx], dx
je 0x100682b2
mov eax, dword [0x100969e4]
push edi
dec eax
push eax
push 0x100968d0
call fcn.100681da
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10068325
cmp word [eax], dx
je 0x10068325
mov eax, dword [edi]
test eax, eax
je 0x100682d6
cmp word [eax], dx
je 0x100682d6
lea eax, [ebp - 0x10]
push eax
call fcn.10067bbd
jmp 0x100682df
lea eax, [ebp - 0x10]
push eax
call fcn.10067c58
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006834f
mov eax, dword [0x100968cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100965c0
call fcn.100681da
add esp, 0xc
test al, al
je 0x1006834f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1006831a
cmp word [eax], di
je 0x1006831a
lea eax, [ebp - 0x10]
push eax
call fcn.10067bbd
pop ecx
jmp 0x10068351
lea eax, [ebp - 0x10]
push eax
call fcn.10067c58
jmp 0x10068317
mov eax, dword [edi]
test eax, eax
je 0x1006833c
cmp word [eax], dx
je 0x1006833c
lea eax, [ebp - 0x10]
push eax
call fcn.10067b72
pop ecx
jmp 0x1006834f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1006841a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006805f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1006841a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1006841a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1006841a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100683a7
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005e509
test ebx, ebx
je 0x10068415
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005e509
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006841a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006841a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006ed89
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006841c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10042ec0
leave
ret
Function at 0x1006eea8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006ee21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006f017
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006f017
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006efcc
jg 0x1006ef04
test eax, eax
je 0x1006efc2
push 1
push 0x1000
call fcn.1005ddd9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006ef27
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006efb9
push 0x8000
push ebx
call fcn.1004c5ec
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006ef50
jg 0x1006ef4b
cmp ecx, 0x1000
jb 0x1006ef50
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100618c9
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006ef95
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006ef4b
jl 0x1006ef7c
test ecx, ecx
jne 0x1006ef3d
push dword [ebp - 0xc]
push ebx
call fcn.1004c5ec
push esi
call fcn.1005d526
add esp, 0xc
xor ebx, ebx
jmp 0x1006f025
cmp byte [edi + 0x24], 0
je 0x1006efac
cmp dword [edi + 0x20], 5
jne 0x1006efac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006efb7
mov ebx, dword [edi + 0x18]
jmp 0x1006efb9
xor ebx, ebx
push esi
call fcn.1005d526
pop ecx
jmp 0x1006f025
test ecx, ecx
jg 0x1006ef8e
jl 0x1006efcc
test eax, eax
jae 0x1006ef8e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005ac37
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006efec
cmp byte [edi + 0x1c], 0
je 0x1006ef8e
jmp 0x1006f01d
push ebx
call fcn.100538b6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006ef8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006f025
cmp byte [edi + 0x1c], 0
je 0x1006f022
mov ebx, dword [edi + 0x18]
jmp 0x1006f025
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1005ac37
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006fb10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006fb3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006fb3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433003
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x501711
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x504b40], eax
xor eax, eax
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x4c], 0x30
call fcn.00501709
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x50134a
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Jungo
mov dword [ebp - 0x20], eax
call fcn.00501706
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x5017f5
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.180000
push str.Jungo
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x504b38], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x504b38]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x5017f5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x5017da
mov esp, ebp
pop ebp
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414dd9
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], esi
mov ecx, edi
mov ecx, edi
sub ecx, 0x33c7dec4
add edx, 4
sub eax, edi
cmp edx, ebx
jne fcn.00414dd9
ret
Function at 0x404d87
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x41f110
call fcn.00407dd0
push 1
call fcn.00407c3c
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x404c32
xor ebx, ebx
jmp 0x404c65
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x404c2e
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x404c2e
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x404c65
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0040743a
test eax, eax
jne 0x404c79
push 0x1c
call fcn.00404d60
pop ecx
call fcn.004073a7
test eax, eax
jne 0x404c8a
push 0x10
call fcn.00404d60
pop ecx
call fcn.00407d25
and dword [ebp - 4], 0
call fcn.0040744f
test eax, eax
jns 0x404ca4
push 0x1b
call fcn.00404d60
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x4246a0], eax
call fcn.00407d65
mov dword [0x4222c4], eax
call fcn.00407703
test eax, eax
jns 0x404cca
push 8
call fcn.0040508d
pop ecx
call fcn.00407940
test eax, eax
jns 0x404cdb
push 9
call fcn.0040508d
pop ecx
push 1
call fcn.004050c7
pop ecx
test eax, eax
je 0x404cee
push eax
call fcn.0040508d
pop ecx
mov eax, dword [0x4222dc]
mov dword [0x4222f4], eax
push eax
push dword [0x4222d4]
push dword [0x4222cc]
call main
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x404d1c
push esi
call fcn.00405330
call fcn.004050b8
jmp 0x404d51
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00407e15
ret
call fcn.00595000
jmp 0x404c0c
Function at 0x4033f9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [0x408090]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x472e20], eax
jle 0x403557
push dword [0x4331ec]
call fcn.004033e2
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [0x408160]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x40346e
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.004033b0
test eax, eax
je 0x403569
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x472ddc], ebx
je 0x4034c5
cmp dword [0x472ea0], ebx
jne 0x4034c5
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.0040330e
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.004073a4
test eax, eax
jl 0x40356e
mov esi, dword [0x427178]
sub esi, ebp
je 0x403523
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [0x408154]
test eax, eax
je 0x403573
cmp esi, dword [esp + 0x10]
jne 0x403573
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x403494
jmp 0x40352f
cmp dword [0x427174], ebx
jne 0x40356e
cmp edi, ebx
je 0x40356e
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403458
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [0x408160]
push 1
call fcn.0040330e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403561
push 0xfffffffffffffffd
pop eax
jmp 0x403561
push 0xfffffffffffffffe
jmp 0x403570
Function at 0x403577
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4035a3
mov ecx, dword [0x472e18]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [0x408160]
push 4
pop esi
push esi
call fcn.004033f9
cmp eax, edi
jl 0x40369c
push ebx
mov ebx, dword [0x408158]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x403698
cmp dword [ebp - 4], esi
jne 0x403698
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033f9
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40369b
cmp dword [ebp + 0x10], edi
jne 0x403667
cmp dword [ebp + 8], edi
jle 0x403693
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403617
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x403698
cmp edi, dword [ebp - 4]
jne 0x403698
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [0x408154]
test eax, eax
je 0x403663
cmp dword [ebp + 0x14], edi
jne 0x403663
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x40360a
jmp 0x403693
push 0xfffffffffffffffe
jmp 0x40369a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403672
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x403698
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40369b
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x406245
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40626e
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406262
push eax
call dword [0x4080bc]
or dword [0x40b058], 0xffffffff
jmp 0x406319
cmp dword [0x461530], ebx
je 0x406319
cmp word [0x46a560], bx
push esi
push edi
mov edi, dword [0x408154]
je 0x4062e5
cmp dword [0x40b058], 0xffffffff
jne 0x4062ee
mov esi, 0x46a560
push esi
call dword [0x40807c]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb1
cmp eax, 0xffffffff
mov dword [0x40b058], eax
je 0x406317
cmp dword [ebp + 8], 0xffffffff
jne 0x4062da
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [0x408160]
cmp dword [0x40b058], 0xffffffff
je 0x406317
push 0x4096a8
mov esi, 0x461540
push esi
call dword [0x4080e8]
push esi
call dword [0x4080c0]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4