joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40146b
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
push edi
xor edi, edi
lea esi, [ecx + 4]
mov eax, edi
push 0xf0000000
neg eax
sbb eax, eax
push 0x18
and eax, 0x40efcc
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40149b
inc edi
cmp edi, 2
jl 0x401472
pop edi
pop esi
ret
push 1
pop eax
jmp 0x401498

Function at 0x401538
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408188
push 0x406ed4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
or dword [ebp - 0x28], 0xffffffff
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4015df
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x4015df
cmp edi, 0x19000
ja 0x4015df
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, esi
je 0x4015df
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4015df
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp - 0x1c]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4015df
push 1
pop esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, esi
jmp 0x401611
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401620
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x401658
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 1
push 0
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
push edi
jne 0x40165c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x40167e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], ecx
push 1
pop eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x401684
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll___p___argc]
call edi
cmp dword [eax], 1
jg 0x4016a9
mov eax, dword [ebp + 8]
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
leave
ret
mov esi, dword [sym.imp.MSVCRT.dll___p___argv]
push 0x40f2e0
call esi
mov eax, dword [eax]
push dword [eax + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40169c
push 0x40f2dc
call esi
mov eax, dword [eax]
push dword [eax + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x401710
call edi
cmp dword [eax], 3
jl 0x401742
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call esi
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4016a2
call esi
mov eax, dword [eax]
push dword [eax + 4]
call sub.MSVCRT.dll_strlen
cmp eax, 8
pop ecx
jne 0x401742
push dword [ebp + 8]
push str._08X
call esi
mov eax, dword [eax]
push dword [eax + 4]
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
test eax, eax
jne 0x4016a2
xor eax, eax
jmp 0x4016a5

Function at 0x401749
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push edi
push 0x40f2ec
push 0x69
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4017a2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4017a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4017a2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call fcn.00406d85
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4017a9
xor eax, eax
jmp 0x401837
and dword [ebp - 0x12c], 0
push ebx
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
push eax
push 0xffffffffffffffff
push esi
call fcn.00406d9c
mov ebx, dword [ebp - 0x12c]
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x40182c
lea eax, [ebp - 0x12c]
push eax
push edi
push esi
call fcn.00406d9c
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401816
lea eax, [ebp - 0x128]
push str.c.wry
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x401827
lea eax, [ebp - 0x128]
push eax
push edi
push esi
call fcn.00406e15
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x4017dc
push esi
call fcn.00406e2e
pop ecx
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40183b
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e4
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401684
test eax, eax
pop ecx
je 0x40193f
mov al, byte [0x40f664]
push esi
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x4018ba
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call esi
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.wcry_2016
push ebx
call fcn.00401749
pop ecx
pop ecx
lea ecx, [ebp - 0x5e4]
call fcn.00401000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x5e4]
call fcn.0040113a
pop edi
pop esi
test eax, eax
je 0x401934
lea eax, [ebp - 8]
lea ecx, [ebp - 0x5e4]
push eax
push str.t.wry
mov dword [ebp - 8], ebx
call fcn.004011a9
cmp eax, ebx
je 0x401934
push dword [ebp - 8]
push eax
call fcn.00401995
pop ecx
cmp eax, ebx
pop ecx
je 0x401934
push str.StartTask
push eax
call fcn.004020fc
pop ecx
cmp eax, ebx
pop ecx
je 0x401934
push dword [ebp - 4]
push ebx
call eax
lea ecx, [ebp - 0x5e4]
call fcn.0040107d
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x401c48
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x401d17
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401cb7
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x401d02
push dword [edi + 0x30]
mov eax, dword [ebp + 0x14]
add eax, dword [esi - 4]
push 4
push 0x1000
push ebx
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x401d1f
mov eax, dword [ebp + 0x14]
push ebx
add eax, dword [esi - 4]
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x401d02
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.00401c2f
pop ecx
test eax, eax
pop ecx
je 0x401d1f
push dword [edi + 0x30]
mov ebx, dword [ebp + 0x14]
mov eax, ebx
add eax, dword [esi - 4]
push 4
push 0x1000
push dword [esi]
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x401d1f
mov eax, dword [esi + 4]
push dword [esi]
add eax, dword [ebp + 8]
add ebx, dword [esi - 4]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [esi - 8], ebx
mov eax, dword [edi]
inc dword [ebp - 4]
add esi, 0x28
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x401c74
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x401d1a
Function at 0x403200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
push esi
jne 0x403229
push 0x40f354
lea ecx, [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea eax, [ebp - 0xc]
push 0x40d508
push eax
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x40324a
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x40323a
pop edi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x404c05
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x404ce6
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x40cfec]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40cfec]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40cfec]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40cfec]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40cfec]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40cfec]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40cfec]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x40cfec]
xor eax, esi
inc edx
dec edi
jne 0x404c22
pop ebx
cmp dword [ebp + 0x10], 0
je 0x404d07
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40cfec]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x404cec
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x404d0d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x40cfec]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x40cfec]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x405562
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x405596
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405591
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4055be
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4055a7
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret

Function at 0x406366
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40640e
cmp dword [esi + 4], 0xffffffff
jne 0x40640e
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call sub.MSVCRT.dll_strlen
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x4063b6
cmp al, 0x2f
je 0x4063b6
push 0x40f600
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x4063d8
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4063d8
mov eax, 0x2000000
jmp 0x406413
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405386
add esp, 0x10
test eax, eax
jne 0x4063f6
mov eax, dword [ebp - 4]
jmp 0x406413
push eax
call fcn.004057ba
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and ax, 0xfe00
add eax, 0x200
jmp 0x406413
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x406848
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
je 0x40686f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40686f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x40690a
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x406889
cmp al, 0x5c
jne 0x40688b
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x406881
cmp esi, edi
je 0x4068bf
sub esi, edi
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.00406848
add esp, 0x14
and byte [ebp - 0x104], 0
pop esi
test ebx, ebx
je 0x4068da
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40690a
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
leave
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x49bf66d2
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x14da5ae6
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4e2ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa0000]
push edi
jmp 0x4e2afa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e2b01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e2af0
mov eax, 1
add ebx, ebx
jne 0x4e2b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e2b24
jne 0x4e2b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e2b43
dec eax
add ebx, ebx
jne 0x4e2b30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e2b08
add ebx, ebx
jne 0x4e2b3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e2b95
xor ecx, ecx
sub eax, 3
jb 0x4e2b5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e2bca
sar eax, 1
mov ebp, eax
jmp 0x4e2b66
add ebx, ebx
jne 0x4e2b66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e2b34
inc ecx
add ebx, ebx
jne 0x4e2b74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e2b34
add ebx, ebx
jne 0x4e2b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e2b76
jne 0x4e2b92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e2b76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e2bb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e2ba6
jmp 0x4e2af6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e2bb4
add edi, ecx
jmp 0x4e2af6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e2bd2
cmp byte [edi], 0x11
jne 0x4e2bd2
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 0x4e2bd7
lea edi, [esi + 0xde000]
mov eax, dword [edi]
or eax, eax
je 0x4e2c4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x114bb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x114d04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e2c04
mov ecx, edi
jns 0x4e2c33
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 + 0x114d08]
or eax, eax
je 0x4e2c49
mov dword [ebx], eax
add ebx, 4
jmp 0x4e2c21
call dword [esi + 0x114d18]
mov ebp, dword [esi + 0x114d0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4e2c83
sub esp, 0xffffff80
jmp 0x416310
Function at 0x401140
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x40a040]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401223
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
lea edx, [esp + 0x2c]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x401190
sub edx, ecx
lea eax, [esp + 0x2c]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
push edx
cmova ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push eax
call fcn.00402c70
add esp, 8
test eax, eax
jne 0x4011c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
jmp 0x401225
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
je 0x40121c
nop dword [eax + eax]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011e7
sub eax, edx
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
mov edx, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00402c70
add esp, 8
test eax, eax
je 0x4011b9
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x4011e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x40125b
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401251
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401251
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004050cf
add esp, 8
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00404e1d
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 1
push str.Loader
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x401a0e
push 0
push 0x84200000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401a0e
push 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0x41
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x218]
xor bl, bl
push eax
push 1
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4019fe
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402df0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.00401640
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 0x221], al
cmp ecx, 7
jbe 0x4019f1
mov edx, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4019e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4019e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004050cf
mov al, byte [ebp - 0x221]
add esp, 8
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov al, bl
jmp 0x401a10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404e1d
mov esp, ebp
pop ebp
ret