joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429dab
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00419990
mov dword [ebp - 0x14], eax
cmp dword [0x4401b8], edi
jne 0x429e9c
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x429e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x429f7c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x429f7c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429f7c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4401b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4401bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4401c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4401c8], eax
test eax, eax
je 0x429e99
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4401c4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x429ec1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x429eb4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x429ed6
push 4
pop eax
jmp 0x429f7e
cmp dword [ebp - 0x14], edi
je 0x429ed6
push dword [0x4401b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x429ebb
mov eax, dword [0x4401c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x429f34
cmp dword [0x4401c8], esi
je 0x429f34
push eax
call ebx
push dword [0x4401c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x429f34
test eax, eax
je 0x429f34
call ecx
test eax, eax
je 0x429f29
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x429f29
test byte [ebp - 8], 1
jne 0x429f34
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x429f64
mov eax, dword [0x4401bc]
cmp eax, esi
je 0x429f61
push eax
call ebx
test eax, eax
je 0x429f61
call eax
mov edi, eax
test edi, edi
je 0x429f61
mov eax, dword [0x4401c0]
cmp eax, esi
je 0x429f61
push eax
call ebx
test eax, eax
je 0x429f61
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4401b8]
call ebx
test eax, eax
je 0x429f7c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x429f7e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412d25
leave
ret
Function at 0x4041e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4cc914]
mov ecx, dword [0x4c0e8c]
shr eax, 3
sub esp, 0x808
test eax, eax
je 0x404278
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4cc914], 0x5d
jne 0x40425f
push 0
push 0
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0x403ad0
call ebx
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
call esi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403d40
add dword [esp + 0x10], 8
dec dword [esp + 0x14]
jne 0x404220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x404b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41fa7b
push eax
mov dword fs:[0], esp
sub esp, 0x654
cmp dword [0x4cc914], 0xc
push ebx
push ebp
push esi
push edi
jne 0x404bdd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
push esi
mov dword [esp + 0x670], esi
call fcn.0040565b
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00405041
lea ecx, [esp + 0x34]
call fcn.00405119
push esi
push esi
call fcn.004054a6
add esp, 8
mov dword [esp + 0x66c], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x404bdd
mov eax, dword [esp + 0x18]
push eax
call fcn.00405468
add esp, 4
mov ecx, dword [0x43c7e4]
push 0x4c4370
mov dword [0x4cc914], ecx
mov dword [0x4c4370], 0x73006d
mov dword [0x4c4374], 0x6d0069
mov dword [0x4c4378], 0x330067
mov dword [0x4c437c], 0x2e0032
mov dword [0x4c4380], 0x6c0064
mov dword [0x4c4384], 0x6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_ImpersonateAnonymousToken]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
mov dword [esp + 0x14], 0x4141eae
cmp dword [0x4cc914], 0x15
jne 0x404c83
push 0
push 0
push 0
push 0
call esi
lea edx, [esp + 0x260]
push edx
push 0
push 0x403b08
call edi
push 0
call ebp
lea eax, [esp + 0x40]
push eax
push 0
push 0
call ebx
dec dword [esp + 0x14]
jne 0x404c50
call fcn.00404280
mov ecx, dword [esp + 0x664]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40962c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c5e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407e61
and dword [ebp - 0x14], 0
cmp dword [0x43d404], 0
mov dword [ebp - 0x18], eax
jne 0x4096df
push 0x4026b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409787
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4026a8
push ebx
call edi
test eax, eax
je 0x409787
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402698
push ebx
mov dword [0x43d404], eax
call edi
push eax
call esi
push 0x402684
push ebx
mov dword [0x43d408], eax
call edi
push eax
call esi
push 0x402668
push ebx
mov dword [0x43d40c], eax
call edi
push eax
call esi
mov dword [0x43d414], eax
test eax, eax
je 0x4096df
push 0x402650
push ebx
call edi
push eax
call esi
mov dword [0x43d410], eax
mov eax, dword [0x43d410]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409738
cmp dword [0x43d414], ecx
je 0x409738
push eax
call esi
push dword [0x43d414]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409738
test ebx, ebx
je 0x409738
call edi
test eax, eax
je 0x40972f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40972f
test byte [ebp - 8], 1
jne 0x409738
or dword [ebp + 0x10], 0x200000
jmp 0x40976b
mov eax, dword [0x43d408]
cmp eax, dword [ebp - 0x18]
je 0x40976b
push eax
call esi
test eax, eax
je 0x40976b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40976b
mov eax, dword [0x43d40c]
cmp eax, dword [ebp - 0x18]
je 0x40976b
push eax
call esi
test eax, eax
je 0x40976b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43d404]
call esi
test eax, eax
je 0x409787
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409789
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409997
leave
ret

Function at 0x409997
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c5e8]
jne 0x4099a1
repz ret
jmp fcn.0040c413
Function at 0x406778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40679c
xor eax, eax
test eax, eax
je 0x4067ae
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4067ae
xor ecx, ecx
jmp 0x4067b1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40689d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ee4], 0
push esi
jne 0x4068d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ae
mov dword [ecx*4 + 0x422ee0], eax
inc ecx
cmp ecx, 0x100
jl 0x4068a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406905
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ee0]
xor eax, esi
inc ecx
dec edx
jne 0x4068e7
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x507f623b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..tls
nop
mov ebx, 0x42cd70
mov ecx, 0x7eb02c38
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x50250c27
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6feb6a0b
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
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
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x13179db
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0xd2342f
mov eax, dword [edx + ecx + 0x20]
clc
cmc
test ch, bh
add eax, ecx
cmc
cmp edx, 0x61fc3693
xor ebx, ebx
dec edi
jmp 0xfab508
cmp word [ecx], ax
je 0x1315929
xor eax, eax
pop esi
jmp 0x13604aa
mov edi, dword [edx + ecx + 0x18]
cmp ebx, edi
test edi, edi
jmp 0xd216e5
je 0xd4588e
mov esi, dword [ebp + 0xc]
test esp, ecx
test esi, esi
jmp 0xf312e2
je 0xd4588e
mov eax, 0x5a4d
jmp 0xd45885
ja 0xda6b1c
mov eax, esi
test bx, si
clc
sub eax, dword [edx + ecx + 0x10]
jmp 0xf4086c
mov dword [ebp - 8], 0xffffffff
cmp esi, 0xffff
jmp 0xf4b6b5
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0xd4588e
mov edx, dword [eax + ecx + 0x78]
cmp dx, 0x7dc4
test edi, esp
mov dword [ebp - 4], edx
test edx, edx
je 0xd4588e
mov eax, dword [eax + ecx + 0x7c]
push ebx
push edi
mov dword [ebp - 0x10], eax
test esp, 0x53d0468e
jmp 0x10ff648
push ebp
mov ebp, esp
shl ch, cl
test ebx, edi
clc
mov ecx, dword [ebp + 8]
cmp bp, di
test cl, dh
test al, 0xfb
sub esp, 0x114
cmp ecx, 0x27ce6bd2
test ax, 0x5314
cmp ecx, esi
push esi
cmp edx, ecx
test ecx, ecx
jmp 0xf282e9
mov esp, ebp
movsx ebp, sp
pop ebp
jmp 0xd11231
Function at 0x4e3205
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4e3205
lcall 0x5de5, 0x8b10c483
jmp loc.0160d1cc

Function at 0x416f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f38
mov eax, 1
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f50
jne 0x416f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f50
xor ecx, ecx
sub eax, 3
jb 0x416f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416ff2
mov ebp, eax
add ebx, ebx
jne 0x416f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416fbc
inc ecx
add ebx, ebx
jne 0x416fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f9d
jne 0x416fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416fcd
jmp 0x416f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fdc
add edi, ecx
jmp 0x416f3e
pop esi
mov edi, esi
mov ecx, 0x712
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416ffa
cmp byte [edi], 0xa
jne 0x416ffa
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 eax, ebx
loop 0x416fff
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41706e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41702c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417068
mov dword [ebx], eax
add ebx, 4
jmp 0x417049
call dword [esi + 0x17080]
popal
jmp 0x407cd2

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40805a]
shl eax, 2
mov dword [0x40805e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40963c
mov ecx, 0x409a80
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40806e], edx
mov eax, dword [edx - 8]
mov dword [0x408066], eax
mov eax, dword [edx - 4]
mov dword [0x40806a], eax
sub edx, 4
mov dword [0x4097f0], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.00403762
pop ecx
push 0x40802c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x408062], eax
push 0
jmp fcn.00406f38
Function at 0x40597c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40599b
mov eax, dword [0x408cac]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4059a8
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4059d5
je 0x4059e7
sub ecx, 0x100
je 0x4059f5
sub ecx, 0x100
je 0x4059fc
sub ecx, 0x100
je 0x4059ee
jmp 0x405a03
sub ecx, 0x600
je 0x4059fc
sub ecx, 0x100
je 0x4059e7
jmp 0x405a03
mov edi, 1
jmp 0x405a08
mov edi, 2
jmp 0x405a08
mov edi, 4
jmp 0x405a08
mov edi, 5
jmp 0x405a08
mov edi, 3
test byte [ebp + 0xd], 1
je 0x405a2f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40921c]
test al, 0x80
je 0x405a28
mov ebx, 0x80
jmp 0x405a41
mov ebx, 1
jmp 0x405a41
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x405a41
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x405a53
je 0x405a5c
dec eax
je 0x405a65
jmp 0x405a6e
mov dword [ebp - 4], 0x80000000
jmp 0x405a7d
mov dword [ebp - 4], 0x40000000
jmp 0x405a7d
mov dword [ebp - 4], 0xc0000000
jmp 0x405a7d
push 1
call fcn.00405730
pop ecx
mov ebx, eax
jmp 0x405b69
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x405a99
sub eax, 0x10
je 0x405aa0
sub eax, 0x10
je 0x405aa9
sub eax, 0x10
je 0x405ab2
jmp 0x405ab2
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x405ab9
mov dword [ebp - 8], 1
jmp 0x405ab9
mov dword [ebp - 8], 2
jmp 0x405ab9
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x405b22
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x405b17
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x405b17
add ebx, 0xffffffb2
push ebx
call fcn.00405730
pop ecx
mov ebx, eax
jmp 0x405b69
mov edi, esi
push edi
call fcn.004058ec
pop ecx
test eax, eax
je 0x405b36
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x405b42
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0040548c
add esp, 8
mov ebx, eax
inc eax
jne 0x405b69
push 4
call fcn.00405730
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4066ec
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x406908
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x409518], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4069c0
cmp byte [0x408059], 0
je 0x40697a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00401704
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406963
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00401704
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406963
lea ebx, [ebp - 0x54]
jmp 0x406964
inc ebx
call fcn.004068c0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4069e1
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40951c
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004016a4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40951f
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4069e1
cmp dword [0x409518], 0xffffffff
je 0x4069e1
mov eax, dword [0x409518]
test eax, eax
je 0x4069e1
cmp byte [eax], 0
je 0x4069e1
push esi
push eax
call fcn.00406a70
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret