joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e774
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e8e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040abf0
cmp si, word [0x56ca18]
jb 0x40e811
cmp si, word [0x56cc18]
ja 0x40e811
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jl 0x40e811
mov ebx, edi
add ebx, dword [ebp - 8]
sar ebx, 1
jns 0x40e7dc
adc ebx, 0
cmp si, word [ebx*8 + 0x56ca18]
jae 0x40e7eb
mov edi, ebx
dec edi
jmp 0x40e80c
cmp si, word [ebx*8 + 0x56ca18]
jbe 0x40e7fb
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e80c
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x56ca1c]
call fcn.0040e694
jmp 0x40e811
cmp edi, dword [ebp - 8]
jge 0x40e7d0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e8c0
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e8c0
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b744
push dword [ebp - 0x160]
push 0x40e8fc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b744
push dword [ebp - 0x164]
push 0x40e90c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b744
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8e7
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ac50
pop eax
jmp eax
Function at 0x40ea94
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 0x40eb9a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x573c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x573c30]
jne 0x40eae0
mov eax, esi
mov edx, 0x573c32
mov ecx, 0x55
call fcn.0040b744
push 0x573c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40eb82
push 0x573c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040abf0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40eb4f
cmp byte [0x573c14], 0
je 0x40eb14
mov edx, esi
mov eax, ebx
call fcn.0040e978
jmp 0x40eb4f
mov edx, esi
mov eax, ebx
call fcn.0040e774
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40eb4f
cmp dword [esi], 0
je 0x40eb38
mov eax, esi
mov edx, 0x40ebb4
call fcn.0040b8a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e774
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b8a0
push 0x573c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x573c30], bx
mov eax, dword [esi]
call fcn.0040b6a8
mov ecx, eax
mov eax, 0x573c32
mov edx, 0xaa
call fcn.0040e5f4
push 0x573c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eba1
lea eax, [ebp - 4]
call fcn.0040abf0
pop eax
jmp eax
Function at 0x40eddc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ace4
xor eax, eax
push ebp
push 0x40f004
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ee22
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ee3c
mov eax, dword [ebp - 4]
call fcn.0040b6a8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e5f4
cmp word [ebp - 0x21e], 0
je 0x40efe7
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f014
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ef0b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f014
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ef0b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f050
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ef0b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f050
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ef0b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f084
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ef0b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f0b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40efe7
xor eax, eax
push ebp
push 0x40efe0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040ebdc
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ef6e
mov eax, dword [ebp - 0x14]
call fcn.00406ec4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b708
jmp 0x40efb9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f0f8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40efb9
mov eax, dword [ebp - 0x14]
call fcn.00406ec4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f0f8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40efe7
cmp dword [ebp - 0xc], 0
je 0x40efd4
mov eax, dword [ebp - 0xc]
call fcn.00406ee0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f00b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ac50
pop eax
jmp eax
Function at 0x40f314
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.0040ace4
xor eax, eax
push ebp
push 0x40f3d6
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.0040b744
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b8f8
mov eax, dword [ebx]
call fcn.0040f1c0
test al, al
jne 0x40f3b1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b744
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b8f8
mov eax, dword [ebx]
call fcn.0040f1c0
test al, al
jne 0x40f3b1
mov eax, ebx
call fcn.0040abf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3dd
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ac50
lea eax, [ebp - 4]
call fcn.0040abf0
pop eax
jmp eax

Function at 0x410f98
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 0x422220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422279
test eax, edx
je 0x42227c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422237
movzx eax, word [eax]
sub eax, ecx
jmp 0x42225e
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x42225f
add ecx, 4
js 0x42224f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42225c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42225e
xor eax, eax
ret
test eax, eax
je 0x422288
test edx, edx
jne 0x422228
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040b6a8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42355e
test ah, 4
je 0x423557
test bl, bl
jne 0x42351c
mov al, 1
jmp 0x423585
test al, 0x10
je 0x423524
xor eax, eax
jmp 0x423585
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423548
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x423585
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423585
test al, 0x10
sete al
jmp 0x423585
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42357f
cmp ebx, 3
je 0x42357f
cmp ebx, 0x7b
je 0x42357f
mov eax, esi
call fcn.004234b4
test al, al
jne 0x423583
xor eax, eax
jmp 0x423585
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040b6a8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42362a
test esi, 0x400
jne 0x4235c1
test esi, 0x10
setne bl
jmp 0x42362a
cmp byte [esp], 0
je 0x4235f5
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42362a
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42362a
test esi, 0x10
je 0x423601
mov bl, 1
jmp 0x42362a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423628
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42362a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4286e4
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 0x42871d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ad88
jmp 0x428726
mov eax, ebx
mov edx, esi
call fcn.0040afe0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x428730
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x428754
movzx eax, word [esp]
jmp 0x428756
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42a44c
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 0x42a573
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a254
mov esi, eax
mov eax, dword [0x5700ac]
cmp byte [eax], 0
je 0x42a519
mov eax, dword [0x56feb0]
call fcn.00408098
call fcn.0040703c
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 [0x42a41c]
call fcn.0040dbc8
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 0x42a58c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42a555
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x56fe64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x57463c]
call fcn.0040e298
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 0x42a57a
lea eax, [ebp - 4]
mov edx, dword [0x42a41c]
call fcn.0040dcec
pop eax
jmp eax
Function at 0x42bb18
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42bb5b
mov eax, dword [ebp - 0x10c]
mov dword [0x5748f4], eax
mov eax, 0x5748f8
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b744
mov eax, 0x5748fc
call fcn.0040abf0
xor eax, eax
mov dword [0x574900], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x5747b8], 0xa
jl 0x42bcb1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42bcbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42bcb1
xor eax, eax
push ebp
push 0x42bcaa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42bd18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42bc0a
cmp dword [ebp - 8], 2
jle 0x42bc0a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42bbdd
adc edx, 0
mov eax, 0x5748fc
call fcn.0040b81c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5748fc]
call fcn.0040b6a8
push eax
push 0
push 0
push 0x42bd18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42bc64
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42bd38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42bc64
cmp dword [ebp - 8], 2
jle 0x42bc64
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42bc39
adc edx, 0
mov eax, 0x5748fc
call fcn.0040b81c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5748fc]
call fcn.0040b6a8
push eax
push 0
push 0
push 0x42bd38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x574900
push 0
push 0
push 0x42bd4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42bc91
xor eax, eax
mov dword [0x574900], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bcb1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x56e720], 1
mov esp, ebp
pop ebp
ret
Function at 0x42cde4
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.0040b0d8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410f78
mov edi, eax
cmp edi, 0x104
jbe 0x42cd8f
mov eax, edi
add eax, eax
call fcn.00406ec4
mov esi, eax
jmp 0x42cd91
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410f78
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42cdca
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 0x42cdb4
mov eax, esp
cmp esi, eax
je 0x42cdd7
mov eax, esi
call fcn.00406ee0
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 0x42ce10
cmp bl, 0
je 0x42ce0c
cmp bl, 0x41
jl 0x42ce07
cmp bl, 0x5a
jg 0x42ce07
or bl, 0x20
xor al, bl
inc esi
jmp 0x42cdeb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42cd50

Function at 0x42d734
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.0040b744
add esp, 0x800
pop ebx
ret
Function at 0x42fee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42fefe
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42ff16
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42ff11
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42ff1b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42ff89
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42ffd2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ff47
inc dword [ebp - 0xc]
jmp 0x42ff5f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42ff5f
cmp dword [ebp - 0xc], 0
jle 0x42ff5f
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42ff81
xor eax, eax
jmp 0x42ff7d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ff7c
mov eax, esi
jmp 0x42ffd5
inc eax
cmp eax, ecx
jle 0x42ff69
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ff33
jmp 0x42ffd2
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42ffd2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ffaa
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42ffcc
xor eax, eax
jmp 0x42ffc8
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ffc7
mov eax, esi
jmp 0x42ffd5
inc eax
cmp eax, ecx
jle 0x42ffb4
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ff92
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4303ad
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4303bb
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x4304dd
test ebx, ebx
jl 0x4304dd
test esi, esi
jle 0x4304dd
mov eax, dword [ebp - 8]
call fcn.0040b6a8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b6a8
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x43047a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x4304dd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x43045f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x43042e
inc dword [ebp - 0x14]
jmp 0x43043e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x43043e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x430449
or eax, 0xffffffff
jmp 0x43045f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x43045c
inc eax
jmp 0x43045f
or eax, 0xffffffff
test eax, eax
jl 0x430467
cmp esi, eax
jg 0x43041c
cmp esi, eax
jg 0x430472
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4304e0
inc edx
dec dword [ebp - 0x1c]
jne 0x430418
jmp 0x4304dd
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x4304dd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4304c4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4304a3
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4304ae
or eax, 0xffffffff
jmp 0x4304c4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4304c1
inc eax
jmp 0x4304c4
or eax, 0xffffffff
test eax, eax
jl 0x4304cc
cmp esi, eax
jg 0x43048c
cmp esi, eax
jg 0x4304d7
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4304e0
inc edx
dec dword [ebp - 0x1c]
jne 0x430488
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x440fa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x440fa8
mov eax, edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x443c43
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x443c33
mov eax, ecx
pop ebx
ret
Function at 0x458de0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x458df4
add esp, 0xfffffff0
call fcn.004093cc
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x452d64]
call fcn.00477150
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x457db0]
call fcn.00479f04
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x457db0]
call fcn.00479f04
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x458e49
call fcn.00409424
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c19a0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4c19e3
cmp byte [ebx + 0x11], 0
jne 0x4c19e3
cmp byte [ebx + 0x24], 0
jne 0x4c19e3
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c19fa
mov ecx, dword [0x570058]
mov dl, 1
mov eax, dword [0x4914fc]
call fcn.0042a6d8
call fcn.0040a29c
pop ebx
ret
mov ecx, dword [0x570058]
mov dl, 1
mov eax, dword [0x4914fc]
call fcn.0042a6d8
call fcn.0040a29c
pop ebx
ret

Function at 0x4c2368
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c23b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c184c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c23cf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c23d8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c184c
dec esi
jne 0x4c23fa
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret