joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407324
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x407374
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40735a
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407374
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0xc], 0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x4071ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
pop ecx
ret

Function at 0x407377
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4073ac
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.00410330
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push 1
pop eax
pop esi
leave
ret

Function at 0x40744d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42e904
call fcn.004101c8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x407543
push edi
xor edi, edi
cmp dword [ebx + 0xc], esi
mov dword [ebp - 0x14], esi
jle 0x4074b1
push edi
lea ecx, [ebx + 4]
call fcn.004070ff
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
inc edi
mov eax, dword [eax - 8]
cmp edi, dword [ebx + 0xc]
lea eax, [ecx + eax + 2]
mov dword [ebp - 0x14], eax
jl 0x407493
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0041f203
cmp dword [ebx + 0xc], esi
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
jle 0x407515
push dword [ebp - 0x10]
lea ecx, [ebx + 4]
call fcn.004070ff
mov edi, eax
mov eax, dword [edi]
push dword [eax - 8]
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
call fcn.00410330
mov eax, dword [edi]
push 2
push 0x43d1d4
mov eax, dword [eax - 8]
add eax, esi
add eax, dword [ebp - 0x18]
push eax
call fcn.00410330
mov eax, dword [edi]
add esp, 0x18
inc dword [ebp - 0x10]
mov eax, dword [eax - 8]
lea esi, [esi + eax + 2]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0xc]
jl 0x4074c7
xor esi, esi
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
je 0x407531
push 1
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.0041f22c
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041f4c2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4076bd
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x42e940
call fcn.004101c8
sub esp, 0x14
push ebx
push esi
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004078f3
push ebx
push 0x80
push 3
push ebx
push 1
pop esi
push esi
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x407757
push ebx
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x40774b
lea eax, [esi + 1]
push edi
push eax
mov dword [ebp - 0x18], eax
call fcn.0041f203
pop ecx
mov edi, eax
lea eax, [ebp - 0x20]
push ebx
push eax
push esi
push edi
mov byte [edi + esi], bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407743
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00407561
mov dword [ebp - 0x14], eax
push edi
call fcn.0041f22c
pop ecx
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041f4c2
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4174fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43ed30
cmp edx, dword [eax]
je 0x41751f
add eax, 8
inc ecx
cmp eax, 0x43edc0
jl 0x417510
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43ed30]
jne 0x41764d
mov eax, dword [0x441918]
cmp eax, 1
je 0x417627
test eax, eax
jne 0x417550
cmp dword [0x43e518], 1
je 0x417627
cmp edx, 0xfc
je 0x41764d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417587
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fd00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4175ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4348a8
push edi
call fcn.004195b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fd00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fd10
lea eax, [ebp - 0xa0]
push 0x434888
push eax
call fcn.0040fd10
push dword [esi + 0x43ed34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fd10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004196f0
add esp, 0x2c
pop edi
jmp 0x41764d
lea eax, [ebp + 8]
lea esi, [esi + 0x43ed34]
push 0
push eax
push dword [esi]
call fcn.00410800
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 0x41dca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00410930
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41dd6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41dd6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41dd1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41dd29
or bh, 8
and edi, 0x8000000
je 0x41dd44
mov eax, dword [0x4430bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41dd6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41e16b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41e18f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41e1aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41fb23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0042b0fd
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41fb54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041fb67
pop edi
pop esi
pop ebx
ret 8
Function at 0x421120
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x421158
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041f903
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041f8db
jmp 0x421164
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x422964
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4229a6
call fcn.0042b0fd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4229a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42299d
xor eax, eax
jmp 0x4229ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004229b4
pop edi
pop esi
pop ebx
ret 4

Function at 0x429314
Capabilities:
Create http request

Disassembly:
mov eax, 0x42efcc
call fcn.004101c8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42934c
call fcn.0042b0fd
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x429371
push eax
push dword [esi + 4]
call fcn.00429f70
jmp 0x42937d
push esi
push eax
mov ecx, 0x441430
call fcn.0042938e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42963f
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42f02b
call fcn.004101c8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00425668
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x43d6e4]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041f64b
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041f64b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42b7d1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42b7ff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b81d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b737
jmp 0x42b81d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b81d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042b737
test edi, edi
mov eax, edi
jne 0x42b807
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x49ecf1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49ed3c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049f1b3
test al, al
jne 0x49ed36
sub edx, 2
cmp edx, edi
jne 0x49ed1c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ed5e
lea eax, [edi + 2]
cmp edx, eax
je 0x49ed5e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049e8ea
add esp, 0x10
jmp 0x49ee58
push esi
lea ecx, [ebp - 0x255]
call fcn.0049f1b3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49eda1
push dword [ebp - 0x25c]
jmp 0x49ed4e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49edde
cmp word [ebp - 0x226], 0
je 0x49edff
cmp word [ebp - 0x226], ax
jne 0x49edde
cmp word [ebp - 0x224], 0
je 0x49edff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049e8ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ee4b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49edb8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ee33
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ee58
push 0x49e2d2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056cd
add esp, 0x10
jmp 0x49ee28
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403111
leave
ret

Function at 0x40ed45
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x40eae0
and ebx, ebx
mov ebx, 0xbb129f86
call fcn.0040ed70
xor dword [esi], edi
add esi, 1
cmp esi, ecx
jne fcn.0040ed45
mov eax, 0x61a929cc
ret
Function at 0x40600a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x7a125c], esi
push edi
jne 0x406044
mov ecx, 0x7a1258
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406020
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7a1658
jl 0x40601b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406079
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1258]
xor eax, esi
inc ecx
dec edx
jne 0x40605c
pop edi
pop esi
not eax
ret 0xc

Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x424311
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x4243e4
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dword [0x897174], 0x319
jne 0x4243cc
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0042393a
add ebx, 8
dec dword [ebp - 0xc]
jne 0x42432f
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4243f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
push 0x40144c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40145c
push eax
mov dword [0x82f4d4], eax
call esi
push 0x401468
push dword [0x82f4d4]
mov dword [0x82f4cc], eax
call esi
push dword [0x897174]
xor esi, esi
push esi
mov dword [0x82c2ac], eax
call dword [0x82f4cc]
lea ecx, [ebp - 4]
push ecx
push reloc.mscms.dll_DisassociateColorProfileFromDeviceW
push dword [0x897174]
mov dword [0x82c2c4], eax
push eax
call dword [0x82c2ac]
xor edi, edi
cmp edi, 0x85b4
jge 0x424468
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
cmp edi, 0x11c825e
jg 0x42448d
inc edi
mov eax, edi
cdq
cmp edx, 0x6d
jl 0x42445a
jg 0x42448d
cmp eax, 0xd69e5f85
jb 0x42445a
mov eax, dword [0x42e724]
mov dword [0x897178], eax
xor eax, eax
cmp dword [0x897174], esi
jbe 0x4244c0
mov ecx, dword [0x897178]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x82c2c4]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x897174]
jb 0x4244a1
xor edi, edi
mov eax, dword [0x897174]
add eax, edi
cmp eax, 0x5e
jne 0x4244fd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push esi
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
inc edi
cmp edi, 0xa69b
jl 0x4244c2
mov edx, dword [0x897174]
mov ecx, dword [0x82c2c4]
push 0x42e008
call fcn.00424311
xor eax, eax
cmp eax, 0x59d8
jne 0x42452f
mov ecx, 0x82c2c4
call fcn.004243e9
inc eax
cmp eax, 0x356d83
jl 0x42451e
push 0x7b
pop ebx
cmp dword [0x897174], 0x54d
jne 0x424577
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x401478
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec ebx
jne 0x42453a
mov eax, dword [0x82c2c4]
mov dword [0x82f4dc], eax
call eax
pop edi
pop esi
pop ebx
leave
ret