joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d14f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d10d0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.004d1140
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004d1420
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d10f0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x4d1508
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d10d0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.004d1140
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004d1420
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d10f0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4d3ea0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4d3eab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4d3fae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x218a88c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x218a88c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x218a88c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x218a88c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x218a88c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x218a88c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x218a88c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x218a88c]
xor eax, edx
inc ecx
dec edi
jne 0x4d3ec6
pop edi
test esi, esi
je 0x4d3fd0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x218a88c]
xor eax, edx
inc ecx
dec esi
jne 0x4d3fb2
pop esi
pop ebx
not eax
ret

Function at 0x4d4790
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4d47d1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4d47c6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4d47e4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4e0000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x220aa9c]
xor edx, edx
cmp eax, edx
jne 0x4e0026
xor eax, eax
mov byte [eax + 0x220a99c], al
inc eax
cmp eax, 0x100
jl 0x4e000e
mov dword [0x220aa9c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x220a99c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e00b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e008a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e0058
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e00c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e0113
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e00fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e6ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5191be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e73e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x218c614
call fcn.005072e9
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e6b53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005072e9
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e6b4c
push 0
mov ecx, eax
call fcn.004ddc30
mov dword [esi + 0xc], eax
jmp 0x4e6b55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e6b55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4f7d3d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f7d5d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004f6bda
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f7d80
test byte [esp + 8], 2
je 0x4f7d80
call fcn.004f6c4d
mov dword [eax], 0xd
call fcn.004f6c56
mov dword [eax], 5
jmp 0x4f7d59
xor eax, eax
ret

Function at 0x509988
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5099c0
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.00507a03
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005079db
jmp 0x5099cc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50b184
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 0x50b1c6
call fcn.005113bd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x50b1c6
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x50b1bd
xor eax, eax
jmp 0x50b1ce
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050b1d4
pop edi
pop esi
pop ebx
ret 4

Function at 0x5118ed
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 0x51191b
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x511939
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00511853
jmp 0x511939
mov eax, dword [esi + 0x14]
test eax, eax
je 0x511939
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00511853
test edi, edi
mov eax, edi
jne 0x511923
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x58286c74
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x388c5acd
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402b88
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403028
xor eax, eax
push ebp
push 0x403021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403064
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ae8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f044], 0
je 0x403b49
cmp word [0x40f218], 0xd7b2
jne 0x403b11
cmp dword [0x40f220], 0
jbe 0x403b11
mov eax, 0x40f214
call dword [0x40f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e064
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403b70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e028], 0
jne 0x403b65
push 0
push 0x40e05c
push 0x40e064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404ab6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403ec0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404aa0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404abd
lea eax, [ebp - 0x10]
call fcn.00403c6c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404048
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4060d5
test al, 0x10
jne 0x4060d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406e4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406e85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d5c
jmp 0x406e8e
mov eax, ebx
mov edx, esi
call fcn.00403cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406e98
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406eb9
mov al, byte [esp]
jmp 0x406ebb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4080ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x408150
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405ef8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408157
lea eax, [ebp - 0xc]
call fcn.00403c6c
ret

Function at 0x40b284
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00406338
add esp, 0x104
pop ebx
ret
Function at 0x40b5a8
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x40f85c]
mov ecx, 0x40
call fcn.004029c8
mov dword [0x40f7a8], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x40f7a8
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40b5d6
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x40f7a8]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0040b488
mov esi, eax
mov dword [ebx*4 + 0x40f7a8], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0040b488
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x40b646
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x40b5f6
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b6d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x40f854]
sub dword [ebx + 8], eax
mov eax, dword [0x40f850]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0040b488
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0040b488
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40f7ac]
mov edx, edi
call fcn.0040b490
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40f7a8]
mov edx, ebp
call fcn.0040b490
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x40b6ea
mov eax, dword [0x40f7ac]
sub dword [ebx + 0xc], eax
mov eax, dword [0x40f7a8]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
mov ecx, 0x75736d1e
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
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
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
mov ecx, 0x71754a8
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401480
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401492
mov eax, dword [0x4bf08b]
shl eax, 2
mov dword [0x4bf08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004af738
pop edx
call fcn.004af69c
call fcn.004af778
push 0
call fcn.004b0c28
pop ecx
push 0x4bf034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4bf093], eax
push 0
jmp fcn.004b7280

Function at 0x409310
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
call fcn.00409364
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x409332
lea eax, [ebp - 1]
xor edx, edx
call fcn.00409398
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x409348
lea eax, [ebp - 1]
mov dl, 2
call fcn.00409398
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x40935e
lea eax, [ebp - 1]
mov dl, 1
call fcn.00409398
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x409928
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4cadb8]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_IsIconic
test eax, eax
jne 0x409984
mov ecx, dword [0x4cadb8]
mov eax, dword [ecx]
call fcn.0047fad8
push 0
mov edx, dword [0x4cadb8]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
cmp word [eax + 0x24a], 0
je 0x409984
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
call dword [ebx + 0x248]
pop ebx
pop ecx
pop ebp
ret

Function at 0x409988
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4cadb8]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_IsIconic
test eax, eax
je 0x4099f3
mov ecx, dword [0x4cadb8]
mov eax, dword [ecx]
call fcn.0047fb88
push 9
mov edx, dword [0x4cadb8]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [0x4cadb8]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_SetForegroundWindow
mov ecx, dword [ebp - 4]
cmp word [ecx + 0x252], 0
je 0x4099f3
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
call dword [ebx + 0x250]
pop ebx
pop ecx
pop ebp
ret
Function at 0x40a47c
Capabilities:
Create http request
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov byte [ebp - 8], dl
test dl, dl
jle 0x40a48e
call fcn.004bbb98
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4c2af8
call fcn.004aff88
mov word [ebp - 0x18], 8
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00433410
add dword [ebp - 0xc], 4
push 0
push 0
push 0
push 0
push str.InternetExplorer
call sub.WININET.DLL_InternetOpenA
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x30], 0
je 0x40a52c
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
push 4
push dword [ebp - 4]
push sym.Project1.exe__TcmDownloader_DownloadThreadEntry_qqspv
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x1c
mov dl, 4
call fcn.00408e64
test al, al
jne 0x40a53c
mov dword [ebp - 0x38], sym.Project1.exe__TcmDownloader_DoMessage_qqrr17Messages_TMessage
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.00434550
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
jmp 0x40a53c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 4]
mov byte [edx + 0x40], 0
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x19000
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x40a575
call fcn.004bbba5
mov esp, ebp
pop ebp
ret

Function at 0x40a598
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
call fcn.004bbbad
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4c2b1c
call fcn.004aff88
mov dword [ebp - 0xc], 4
cmp byte [ebp - 0x29], 0
jl 0x40a612
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0
je 0x40a5da
mov ecx, dword [ebp - 4]
push dword [ecx + 0x30]
call sub.WININET.DLL_InternetCloseHandle
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x40a5f0
push 0
mov edx, dword [ebp - 4]
push dword [edx + 0x38]
call sub.KERNEL32.DLL_TerminateThread
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
je 0x40a604
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.004bb2b4
sub dword [ebp - 0xc], 4
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0043345c
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
cmp byte [ebp - 0x29], 0
jle 0x40a62a
mov eax, dword [ebp - 4]
call fcn.004bbba0
mov esp, ebp
pop ebp
ret