joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409444
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409548
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x422c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x422c24]
jne 0x409490
mov eax, esi
mov edx, 0x422c26
mov ecx, 0x55
call fcn.004079fc
push 0x422c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409532
push 0x422c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004072a8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094ff
cmp byte [0x422c08], 0
je 0x4094c4
mov edx, esi
mov eax, ebx
call fcn.00409328
jmp 0x4094ff
mov edx, esi
mov eax, ebx
call fcn.0040912c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094ff
cmp dword [esi], 0
je 0x4094e8
mov eax, esi
mov edx, 0x409560
call fcn.00407ad4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040912c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407ad4
push 0x422c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x422c24], bx
mov eax, dword [esi]
call fcn.00407968
mov ecx, eax
mov eax, 0x422c26
mov edx, 0xaa
call fcn.00408fac
push 0x422c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40954f
lea eax, [ebp - 4]
call fcn.004072a8
ret
Function at 0x409778
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040738c
xor eax, eax
push ebp
push 0x40999d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4097b8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4097d2
mov eax, dword [ebp - 4]
call fcn.00407968
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408fac
cmp word [ebp - 0x21a], 0
je 0x409987
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409987
xor eax, eax
push ebp
push 0x409980
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409588
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409910
mov eax, dword [ebp - 0x10]
call fcn.004044fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004079c0
jmp 0x40995b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40995b
mov eax, dword [ebp - 0x10]
call fcn.004044fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004079c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409987
cmp dword [ebp - 8], 0
je 0x409976
mov eax, dword [ebp - 8]
call fcn.00404518
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099a4
lea eax, [ebp - 4]
call fcn.004072a8
ret
Function at 0x409c8c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040738c
xor eax, eax
push ebp
push 0x409d4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004079fc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407b2c
mov eax, dword [ebx]
call fcn.00409b54
test al, al
jne 0x409d29
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004079fc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407b2c
mov eax, dword [ebx]
call fcn.00409b54
test al, al
jne 0x409d29
mov eax, ebx
call fcn.004072a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d53
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407308
lea eax, [ebp - 4]
call fcn.004072a8
ret

Function at 0x40b7bc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x414584
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4145dd
test eax, edx
je 0x4145e0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41459b
movzx eax, word [eax]
sub eax, ecx
jmp 0x4145c2
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4145c3
add ecx, 4
js 0x4145b3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4145c0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4145c2
xor eax, eax
ret
test eax, eax
je 0x4145ec
test edx, edx
jne 0x41458c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x416868
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4168a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407400
jmp 0x4168aa
mov eax, ebx
mov edx, esi
call fcn.0040757c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4168b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4168d6
movzx eax, word [esp]
jmp 0x4168d8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417bd4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417cf9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004179dc
mov esi, eax
mov eax, dword [0x41f694]
cmp byte [eax], 0
je 0x417ca1
mov eax, dword [0x41f5ac]
call fcn.00404bd4
call fcn.00404650
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417ba4]
call fcn.00408a64
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417d14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x417cdd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41f584]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42362c]
call fcn.00408c50
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417d00
lea eax, [ebp - 4]
mov edx, dword [0x417ba4]
call fcn.00408b88
ret
Function at 0x418d8c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418e8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004075c4
lea eax, [ebp - 4]
call fcn.00407730
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407968
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x418e76
mov eax, ebx
call fcn.004044fc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x418e6f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407968
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x418e59
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418ea0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x418e59
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418e76
mov eax, dword [ebp - 0x10]
call fcn.00404518
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418e93
lea eax, [ebp - 4]
call fcn.004072a8
ret

Function at 0x41992c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407678
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b79c
mov edi, eax
cmp edi, 0x104
jbe 0x4198d7
mov eax, edi
add eax, eax
call fcn.004044fc
mov esi, eax
jmp 0x4198d9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b79c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x419912
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4198fc
mov eax, esp
cmp esi, eax
je 0x41991f
mov eax, esi
call fcn.00404518
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419958
cmp bl, 0
je 0x419954
cmp bl, 0x41
jl 0x41994f
cmp bl, 0x5a
jg 0x41994f
or bl, 0x20
xor al, bl
inc esi
jmp 0x419933
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x419898

Function at 0x419b7c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004079fc
add esp, 0x800
pop ebx
ret
Function at 0x41a838
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a931
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x41a948
call fcn.004075c4
push 0x41a974
push dword [ebp - 4]
push 0x41a9dc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00407bb4
lea eax, [ebp - 0x14]
call fcn.004072a8
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404c44
mov dword [ebp - 0x50], 0x3c
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0x40
mov eax, dword [ebp - 0xc]
call fcn.00407968
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
call fcn.00407968
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
call fcn.00407968
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x41a8fd
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetExitCodeProcess
push 0x32
call sub.kernel32.dll_Sleep
cmp dword [ebp - 8], 0x103
je 0x41a8de
jmp 0x41a916
mov eax, dword [0x41f5ac]
mov edx, 0x41a9ec
call fcn.00405198
call fcn.00405298
call fcn.00404650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a938
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407308
ret

Function at 0x41d53c
Capabilities:
Run powershell expression

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x41f694]
mov byte [eax], 1
mov eax, 0x41aa3c
call fcn.0040bf84
xor eax, eax
push ebp
push 0x41d614
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41d5a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41d630
call fcn.0041a838
mov eax, dword [0x41f5ac]
mov edx, 0x41d6fc
call fcn.00405198
call fcn.00405298
call fcn.00404650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d5fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d61b
lea eax, [ebp - 0x14]
call fcn.004072a8
ret
Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x4010a8
sub edx, edi
push ebx
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
push esi
lea ebx, [ebx]
mov ecx, dword [eax + 0x104]
inc ecx
and ecx, 0x800000ff
jns 0x401037
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [eax + 0x104], ecx
movzx esi, byte [ecx + eax]
add esi, dword [eax + 0x108]
and esi, 0x800000ff
jns 0x401057
dec esi
or esi, 0xffffff00
inc esi
mov dword [eax + 0x108], esi
mov dl, byte [ecx + eax]
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov byte [esi + eax], dl
mov ecx, dword [eax + 0x108]
movzx edx, byte [ecx + eax]
mov ecx, dword [eax + 0x104]
movzx ecx, byte [ecx + eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40108f
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + edi]
inc edi
dec dword [ebp + 8]
mov byte [edi - 1], dl
jne 0x401020
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4010d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
mov dword [ecx + 0x100], eax
mov dword [ecx + 0x104], edi
mov dword [ecx + 0x108], edi
xor eax, eax
mov edi, edi
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x4010f0
mov eax, 1
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 8], edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov edi, edi
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
mov byte [ebp - 1], dl
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [edx + ebx]
movzx edx, byte [ebp - 1]
add edi, eax
add edi, edx
and edi, 0x800000ff
jns 0x40114c
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + ecx]
movzx edx, byte [ebp - 1]
mov byte [esi], al
mov byte [edi + ecx], dl
movzx eax, byte [esi + 1]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi]
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [edx + ebx]
movzx edx, byte [ebp - 1]
add edi, eax
add edi, edx
and edi, 0x800000ff
jns 0x401189
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + ecx]
movzx edx, byte [ebp - 1]
mov byte [esi + 1], al
mov byte [edi + ecx], dl
movzx eax, byte [esi + 2]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi]
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [edx + ebx]
movzx edx, byte [ebp - 1]
add edi, eax
add edi, edx
and edi, 0x800000ff
jns 0x4011c7
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + ecx]
movzx edx, byte [ebp - 1]
mov byte [esi + 2], al
mov byte [edi + ecx], dl
movzx eax, byte [esi + 3]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi]
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [edx + ebx]
movzx edx, byte [ebp - 1]
add edi, eax
add edi, edx
and edi, 0x800000ff
jns 0x401205
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + ecx]
movzx edx, byte [ebp - 1]
mov byte [esi + 3], al
mov eax, dword [ebp - 8]
add eax, 4
add esi, 4
mov byte [edi + ecx], dl
mov dword [ebp - 8], eax
cmp eax, 0x100
jl 0x401120
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp eax, ecx
je 0x401b06
mov edx, 0x320033
movzx esi, word [eax + 0x14]
mov edi, dword [eax + 0x18]
cmp dword [edi + esi - 0xc], edx
je 0x401b0e
mov eax, dword [eax]
cmp eax, ecx
jne 0x401af3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
sub esp, 8
cmp dword [eax + edx + 0x7c], 0
jne 0x401b36
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + edx + 0x78]
test ecx, ecx
je 0x401b30
mov eax, dword [ecx + edx + 0x24]
push ebx
mov ebx, dword [ecx + edx + 0x18]
push esi
mov esi, dword [ecx + edx + 0x1c]
add esi, edx
push edi
mov edi, dword [ecx + edx + 0x20]
mov dword [ebp - 8], esi
xor esi, esi
add edi, edx
add eax, edx
mov dword [ebp - 4], esi
dec ebx
mov ecx, dword [edi + esi*4]
add ecx, edx
cmp byte [ecx], 0x47
jne 0x401bb8
cmp byte [ecx + 1], 0x65
jne 0x401bb8
cmp byte [ecx + 2], 0x74
jne 0x401bb8
cmp byte [ecx + 3], 0x50
jne 0x401bb8
cmp byte [ecx + 4], 0x72
jne 0x401bb8
cmp byte [ecx + 5], 0x6f
jne 0x401bb8
cmp byte [ecx + 6], 0x63
jne 0x401bb8
cmp byte [ecx + 7], 0x41
jne 0x401bb8
cmp byte [ecx + 8], 0x64
jne 0x401bb8
cmp byte [ecx + 9], 0x64
jne 0x401bb8
cmp byte [ecx + 0xa], 0x72
jne 0x401bb8
cmp byte [ecx + 0xb], 0x65
jne 0x401bb8
cmp byte [ecx + 0xc], 0x73
jne 0x401bb8
cmp byte [ecx + 0xd], 0x73
je 0x401bc7
inc esi
cmp esi, ebx
jbe 0x401b60
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax + esi*2]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
pop edi
pop esi
add eax, edx
pop ebx
mov esp, ebp
pop ebp
ret