joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402594
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40a004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40a008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40a00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40a008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40a004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x4037a4
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402614
cmp eax, edx
je 0x403814
cmp word [eax], 8
jb 0x4037c9
push eax
push edx
cmp word [eax], 0x100
je 0x4037bf
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4037c7
add eax, 8
call fcn.00403198
pop edx
pop eax
cmp word [edx], 8
jae 0x4037e0
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x403800
mov edx, dword [edx + 8]
or edx, edx
je 0x4037f7
mov ecx, dword [edx - 8]
inc ecx
jle 0x4037f7
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x403768
ret

Function at 0x4051d4
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
test eax, eax
jle 0x40520d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x405216
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405220
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
test eax, eax
jle 0x405241
mov al, byte [esp]
jmp 0x405243
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4066dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406761
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x406744
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00406690
mov eax, dword [ebp - 0xc]
call fcn.00403438
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40674b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4067e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
xor eax, eax
mov dl, byte [ebx]
sub dl, 1
jb 0x406814
sub dl, 0x1f
je 0x40680c
sub dl, 2
je 0x406808
jmp 0x406810
xor al, 1
jmp 0x406810
test al, al
je 0x406814
inc ebx
jmp 0x4067f5
inc ebx
cmp byte [ebx], 0x20
je 0x406813
mov eax, esi
mov edx, ebx
call fcn.004032b8
pop esi
pop ebx
ret

Function at 0x406a00
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.00404da8
add esp, 0x104
pop ebx
ret

Function at 0x406b48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406bf1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406bdb
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406b94
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406bdb
cmp dword [ebp - 0xc], 2
jge 0x406ba6
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406bdb
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 0x10]
call fcn.00403514
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403444
push eax
push 0
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406bdb
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bf8
lea eax, [ebp - 0x10]
call fcn.00403198
ret

Function at 0x407314
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407330
shr eax, 1
xor eax, 0xedb88320
jmp 0x407332
shr eax, 1
dec edx
jne 0x407323
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40731c
pop esi
ret
Function at 0x40735f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x40736b
call fcn.00407314
push 1
push 0x40b558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407396
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407371
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4087e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jle 0x408805
mov eax, esi
mov edx, 0x40a1c8
mov ecx, 0x40
call fcn.0040270c
je 0x40880a
call fcn.0040877c
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x408829
cmp edi, eax
jne 0x408829
cmp dword [ebx], 0xcc
je 0x40882e
call fcn.0040877c
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.0040739c
cmp eax, dword [ebx + 0xc]
jne 0x408855
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x40885a
call fcn.0040877c
mov bl, 0xcc
mov esi, 0x40b95c
cmp ebp, dword [esp]
jb 0x40886b
call fcn.0040877c
mov eax, ebp
call fcn.00404cdc
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.00403278
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x408861
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408ef4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x408fe4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x408ffc
push esi
push 0x409008
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403334
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403438
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x408f78
mov al, 0x62
call fcn.00408b4c
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x408f8f
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x408f83
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x408f8f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408feb
lea eax, [ebp - 8]
call fcn.00403198
ret
Function at 0x405ef7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1274], 0
push esi
jne 0x405f2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f08
mov dword [ecx*4 + 0x7a1270], eax
inc ecx
cmp ecx, 0x100
jl 0x405f03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1270]
xor eax, esi
inc ecx
dec edx
jne 0x405f41
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4011a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x44
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
xor eax, eax
jmp 0x4011cb
xor edx, edx
test eax, eax
je 0x401217
add esi, 2
mov ebx, edx
movzx ecx, word [esi]
cmp ecx, 9
je 0x4011c0
test ecx, ecx
je 0x401217
cmp cx, 0x20
jne 0x4011e1
test eax, eax
je 0x401217
xor edx, edx
cmp ecx, 0x22
je 0x4011f2
cmp ecx, 0x5c
jne 0x4011c6
inc ebx
mov edx, ebx
jmp 0x4011c6
xor ecx, ecx
test eax, eax
sete cl
test bl, 1
cmove eax, ecx
jmp 0x4011c6
movzx ecx, word [esi + 2]
add esi, 2
cmp cx, 0x20
je 0x401210
movzx eax, cx
cmp eax, 9
je 0x401210
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [ebp - 0x20], 1
jne 0x40123b
mov word [ebp - 0x1c], 1
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
movzx ecx, word [ebp - 0x1c]
push ecx
push esi
push 0
push eax
call dbg._wWinMain@16
add esp, 0x44
pop esi
pop ebx
pop ebp
ret
Function at 0x613700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0061378f
jae 0x61370e
xor ecx, ecx
call fcn.0061378f
jae 0x61373d
xor eax, eax
call fcn.0061378f
jae 0x61374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0061378f
adc al, al
jae 0x61372f
jne 0x613779
stosb byte es:[edi], al
jmp 0x613711
call fcn.0061379b
sub ecx, ebx
jne 0x613756
call fcn.00613799
jmp 0x613775
lodsb al, byte [esi]
shr eax, 1
je 0x613783
adc ecx, ecx
jmp 0x613772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00613799
cmp eax, 0x7d00
jae 0x613772
cmp ah, 5
jae 0x613773
cmp eax, 0x7f
ja 0x613774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x613711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x405001
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x405015
cmp dl, 0xcc
jne 0x40505f
inc eax
cmp eax, 0xffffffff
jle 0x405008
mov al, byte [ecx]
cmp al, 0x8b
je 0x405025
cmp al, 0x89
jne 0x40505f
cmp byte [ecx + 1], 0xff
jne 0x40505f
mov eax, 0x4053b7
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x4418b0], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x424118]
push eax
call dword [0x42410c]
mov al, 1
ret 0xc
xor al, al
jmp 0x40505c

Function at 0x4083e2
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4083f2
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4083ef
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x4083ef
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x406701
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460104], 0
jne 0x40673f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406715
mov dword [ecx*4 + 0x460100], eax
inc ecx
cmp ecx, 0x100
jl 0x406710
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40676c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460100]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40674d
not eax
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40d328
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x4120c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor edi, edi
cmp ebx, edi
jle 0x401e5a
lea ecx, [esp + 0x20]
call fcn.00401c90
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], edi
call fcn.00401af0
cmp ebx, edi
mov eax, dword [esp + 0x30]
jle 0x401e0c
mov ecx, dword [esp + 0x4c]
mov cl, byte [edi + ecx]
mov edx, dword [esp + 0x2c]
not cl
mov byte [esp + 0x13], cl
test edx, edx
jne 0x401dc8
xor esi, esi
jmp 0x401dce
mov esi, dword [esp + 0x34]
sub esi, edx
mov ebp, eax
sub ebp, edx
cmp ebp, esi
jae 0x401ddf
mov byte [eax], cl
inc eax
mov dword [esp + 0x30], eax
jmp 0x401e07
mov esi, eax
cmp edx, eax
jbe 0x401dea
call fcn.0040317b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x13]
push edx
push esi
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.00401b80
mov eax, dword [esp + 0x30]
inc edi
cmp edi, ebx
jl 0x401daf
sub eax, dword [esp + 0x2c]
jne 0x401e17
call fcn.0040317b
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
xor esi, esi
push esi
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x401e41
push eax
call fcn.00403004
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00403004
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
Function at 0x402bc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
xor ecx, ecx
test edx, edx
jle 0x402be9
push esi
mov esi, dword [esp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
imul edi, edi, 0x1000193
inc ecx
cmp ecx, edx
mov eax, edi
jl 0x402bd4
pop edi
pop esi
ret

Function at 0x402bf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c00
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [esp + 0xc]
add edx, edx
xor ecx, ecx
test edx, edx
jle 0x402c34
push edi
mov edi, edi
movzx edi, byte [ecx + esi]
xor edi, eax
imul edi, edi, 0x1000193
inc ecx
cmp ecx, edx
mov eax, edi
jl 0x402c20
pop edi
pop esi
ret

Function at 0x40300f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4120c0]
jne 0x403019
repz ret
jmp fcn.00404928

Function at 0x40aadc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404aa8
and dword [ebp - 4], 0
cmp dword [0x413ad4], 0
mov ebx, eax
jne 0x40ab8d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ac3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ac3e
push eax
call fcn.00404a36
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413ad4], eax
call esi
push eax
call fcn.00404a36
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413ad8], eax
call esi
push eax
call fcn.00404a36
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x413adc], eax
call esi
push eax
call fcn.00404a36
pop ecx
mov dword [0x413ae4], eax
test eax, eax
je 0x40ab8d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404a36
pop ecx
mov dword [0x413ae0], eax
mov eax, dword [0x413ae0]
cmp eax, ebx
je 0x40abe5
cmp dword [0x413ae4], ebx
je 0x40abe5
push eax
call fcn.00404ab1
push dword [0x413ae4]
mov esi, eax
call fcn.00404ab1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40abe5
test edi, edi
je 0x40abe5
call esi
test eax, eax
je 0x40abdc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40abdc
test byte [ebp - 0xc], 1
jne 0x40abe5
or dword [ebp + 0x10], 0x200000
jmp 0x40ac1e
mov eax, dword [0x413ad8]
cmp eax, ebx
je 0x40ac1e
push eax
call fcn.00404ab1
pop ecx
test eax, eax
je 0x40ac1e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ac1e
mov eax, dword [0x413adc]
cmp eax, ebx
je 0x40ac1e
push eax
call fcn.00404ab1
pop ecx
test eax, eax
je 0x40ac1e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413ad4]
call fcn.00404ab1
pop ecx
test eax, eax
je 0x40ac3e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ac40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403838
Capabilities:
Query or enumerate registry value

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

Function at 0x4046ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47b048], 0
je 0x40474d
cmp word [0x47b21c], 0xd7b2
jne 0x404715
cmp dword [0x47b224], 0
jbe 0x404715
mov eax, 0x47b218
call dword [0x47b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404774
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47802c], 0
jne 0x404769
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408498
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4084ea
test eax, edx
je 0x4084ed
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4084ad
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4084d3
add ecx, 4
js 0x4084c3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4084d0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4084f9
test edx, edx
jne 0x4084a0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40c060
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 0x40c099
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040495c
jmp 0x40c0a2
mov eax, ebx
mov edx, esi
call fcn.004048c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0ac
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 0x40c0ce
movzx eax, byte [esp]
jmp 0x40c0d0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c760
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c5d8
mov eax, dword [0x47a94c]
cmp byte [eax], 0
je 0x40c7dc
mov eax, dword [0x47a6c4]
call fcn.004031ec
call fcn.00402fac
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.00409070
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 0x40c824
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c812
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47a658]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47d7f4]
call fcn.00405a1c
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