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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40838f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040669c
cmp si, word [0x43c7c4]
jb 0x4082c2
cmp si, word [0x43c9c4]
ja 0x4082c2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4082c2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43c7c4]
jae 0x40829c
mov edi, ebx
dec edi
jmp 0x4082bd
cmp si, word [ebx*8 + 0x43c7c4]
jbe 0x4082ac
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4082bd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43c7c8]
call fcn.00408138
jmp 0x4082c2
cmp edi, dword [ebp - 0xc]
jae 0x408286
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408371
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408371
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406884
push dword [ebp - 0x164]
push 0x4083ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406884
push dword [ebp - 0x168]
push 0x4083bc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406884
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408396
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406694
ret
Function at 0x4083c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4085a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x440b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x440b6c]
cmp ax, word [ebp - 2]
jne 0x408418
mov eax, dword [ebp - 6]
mov edx, 0x440b70
mov ecx, 0x55
call fcn.00406884
push 0x440b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408590
push 0x440b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0040669c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408558
cmp byte [0x440b50], 0
je 0x40850e
call dword [0x440b48]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x440b4c]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408507
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x440b44]
test al, al
je 0x4084e0
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404180
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x440b44]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4084d5
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4084d1
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4084be
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408558
movzx eax, word [ebp - 0x16]
push eax
call dword [0x440b4c]
cmp dword [ebp - 0x10], 0
je 0x408506
mov eax, dword [ebp - 0x10]
call fcn.0040419c
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408228
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408558
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x40853d
mov eax, dword [ebp - 6]
mov edx, 0x4085c0
call fcn.00406a8c
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408228
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406a8c
mov eax, dword [ebp - 6]
push 0x440b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x440b6c], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406728
push eax
push 0x440b70
call sub.kernel32.dll_lstrcpynW
push 0x440b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4085ad
lea eax, [ebp - 0x1c]
call fcn.0040668c
ret
Function at 0x4087e4
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.00406684
xor eax, eax
push ebp
push 0x4089c9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408824
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40883e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406728
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4089b3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4088cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4088cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4088cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4089b3
xor eax, eax
push ebp
push 0x4089ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004085e8
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 0x40893c
mov eax, dword [ebp - 0x10]
call fcn.00404180
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.00406848
jmp 0x408987
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408a80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408987
mov eax, dword [ebp - 0x10]
call fcn.00404180
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408a80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089b3
cmp dword [ebp - 8], 0
je 0x4089a2
mov eax, dword [ebp - 8]
call fcn.0040419c
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 0x4089d0
lea eax, [ebp - 4]
call fcn.0040668c
ret
Function at 0x408c94
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406684
mov eax, dword [ebp - 0x21c]
call fcn.00406684
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408e33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040669c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406728
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408d34
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408d46
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408d31
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408dff
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x408d6f
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004087e4
cmp dword [ebp - 0x220], 0
je 0x408da7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408b88
pop ecx
mov ebx, eax
jmp 0x408dff
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004083c0
mov eax, dword [ebp - 0x224]
call fcn.00408b88
pop ecx
mov ebx, eax
test bl, bl
jne 0x408df2
cmp byte [0x440b50], 0
jne 0x408df2
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004083c0
mov eax, dword [ebp - 0x228]
call fcn.00408b88
pop ecx
mov ebx, eax
test bl, bl
jne 0x408dff
push ebp
call fcn.00408c38
pop ecx
mov ebx, eax
test bl, bl
je 0x408e15
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e3a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406694
ret

Function at 0x40a688
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x440c48
push 0xa
push 0x40a71c
mov eax, dword [0x440c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a6ac
call fcn.00414db4
push ebx
mov eax, dword [0x440c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a6c3
call fcn.00414db4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a6d5
call fcn.00414db4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x440c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x440c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x440c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x440c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x440c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x440c60], edx
pop esi
pop ebx
ret
Function at 0x40ddf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40de99
test eax, edx
je 0x40de9c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40de19
push edx
mov edx, eax
mov eax, esp
call fcn.004068a0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40de2f
push eax
lea eax, [esp + 8]
call fcn.004068a0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40de3e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40de65
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 0x40de7f
add ecx, 4
js 0x40de56
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40de7c
push eax
mov eax, ecx
mov edx, 2
call fcn.00405eec
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40de63
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40de65
xor eax, eax
ret
test eax, eax
je 0x40deac
test edx, edx
jne 0x40de00
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406728
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40efda
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40effb
cmp ebx, 3
je 0x40effb
cmp ebx, 0x7b
je 0x40effb
mov eax, esi
call fcn.0040ef7c
test al, al
jne 0x40efff
xor eax, eax
jmp 0x40f001
mov al, 1
pop esi
pop ebx
ret

Function at 0x412368
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_1
test eax, eax
jle 0x4123a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004067d8
jmp 0x4123aa
mov eax, ebx
mov edx, esi
call fcn.0040669c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4123b4
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_1
test eax, eax
jle 0x4123d6
movzx eax, word [esp]
jmp 0x4123d8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x412b68
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 0x412c8d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412978
mov esi, eax
mov eax, dword [0x43d170]
cmp byte [eax], 0
je 0x412c35
mov eax, dword [0x43d030]
call fcn.0040460c
call fcn.004042c8
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x412b40]
call fcn.00407c80
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x412ca8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412c71
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43d000]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x440c38]
call fcn.00407d44
push eax
call sub.user32.dll_LoadStringW_1
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 0x412c94
lea eax, [ebp - 4]
mov edx, dword [0x412b40]
call fcn.00407c8c
ret

Function at 0x414be3
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.004061fc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x414c06
mov eax, edi
add eax, eax
call fcn.00404180
mov esi, eax
jmp 0x414c08
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x414c41
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 0x414c2b
mov eax, esp
cmp esi, eax
je 0x414c4e
mov eax, esi
call fcn.0040419c
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 0x414c88
cmp bl, 0
je 0x414c84
cmp bl, 0x41
jl 0x414c7f
cmp bl, 0x5a
jg 0x414c7f
or bl, 0x20
xor al, bl
inc esi
jmp 0x414c63
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x414bc8
Function at 0x415418
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.0040669c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00406728
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x41545f
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004067d8
jmp 0x415478
mov edx, ebx
dec edx
mov eax, esi
call fcn.004069f4
push ebx
mov eax, dword [esi]
call fcn.00406728
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x436ae0
Capabilities:
Parse pe header

Disassembly:
jmp 0x436f26
push ebp
dec bp
mov ebp, esp
cmp cl, 0xff
cmp di, ax
lea esp, [esp - 0x148]
cmp ecx, ebp
push ebx
rcl bx, 0xd8
inc bx
cmp edi, ebp
push esi
sbb esi, edi
ror bx, cl
not si
push edi
and esi, 0x26ee200e
adc esi, 0x3a347f36
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
rol cl, 4
test ebp, edi
sub eax, eax
test cx, si
sbb ch, 3
neg ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
shr ecx, cl
inc ch
sub edx, edx
sbb ecx, ebp
xadd ch, ch
mov dword [eax], edx
xor eax, eax
bts cx, cx
setl ch
mov dword [ebp - 0xc], eax
rcr eax, cl
xor edx, edx
not ch
mov ecx, 0x72543427
push ebp
cmovne ecx, ebp
setne al
push 0x446078
movsx eax, si
jmp loc.00447971

Function at 0x437090
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffbe4
xor eax, eax
mov dword [esp], eax
push 0x104
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x24]
push eax
push 0x4370e4
call sub.kernel32.dll_GetVolumeInformationW
cmp dword [esp], 0
jne 0x4370d8
mov dword [esp], 0x423a35c7
mov eax, dword [esp]
add esp, 0x41c
ret

Function at 0x4371c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, edx
test ebx, ebx
js 0x4371e2
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4371db
mov eax, esp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x437276
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
inc ebx
mov edx, ebx
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.004062b4
mov edi, ebx
dec edi
test edi, edi
jl 0x437255
inc edi
xor esi, esi
mov ebx, dword [ebp - 8]
lea eax, [esi + 1]
push eax
mov eax, 0xff
pop edx
mov ecx, edx
cdq
idiv ecx
movzx edx, byte [ebx]
xor al, dl
mov edx, esi
inc edx
lea edx, [edx + edx*2]
movzx ecx, byte [ebp - 0xc]
inc ecx
lea ecx, [ecx + ecx*4]
add dl, cl
xor al, dl
mov byte [ebp - 0x11], al
lea eax, [ebp - 4]
call fcn.004062ac
movzx edx, byte [ebp - 0x11]
mov byte [eax + esi], dl
inc esi
inc ebx
dec edi
jne 0x437218
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004068a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43727d
lea eax, [ebp - 4]
call fcn.00405ec8
ret
Function at 0x43728c
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff8
mov edx, 0x20
call fcn.0040ee38
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
pop ecx
pop edx
pop ebx
ret
Function at 0x4379a4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00406728
push eax
push 0x800
lea eax, [ebp - 0x1000]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00406728
push eax
mov eax, edi
call fcn.00406728
push eax
mov eax, esi
call fcn.00406728
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp + 8]
call fcn.004067d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x437b08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov byte [ebp - 9], 0
xor edx, edx
push ebp
push 0x437baf
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [eax], 0xe9
jne 0x437b3b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x437bc4
mov ebx, eax
mov eax, dword [ebp - 4]
mov edi, ebx
sub eax, edi
sub eax, 5
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push 0x40
push 0x3000
push 0x255
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov dword [esi], edi
mov edx, esi
add edx, 5
mov cl, 5
mov eax, ebx
call fcn.00437adc
mov edx, esi
add edx, 4
mov byte [edx], al
mov byte [ebx], 0xe9
inc edi
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
add esi, 5
mov eax, dword [ebp - 8]
mov dword [eax], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x437bc0
mov byte [ebp - 9], 1
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x437c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x437c9f
xor edx, edx
push ebp
push 0x437c93
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
mov edx, eax
sub edx, 5
mov esi, dword [edx]
dec eax
movzx ebx, byte [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00404318
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 5
push esi
call sub.kernel32.dll_VirtualProtect
push 0x8000
push 0
sub edi, 5
push edi
call sub.kernel32.dll_VirtualFree_1
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x437c9f
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x446495
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
sbb al, cl
mov ebp, esp
xor dl, 0x6e
adc ax, si
add esp, 0xffffffe8
jmp 0x446b4d
jbe 0x447828
mov eax, dword [ebx]
xor edx, edx
jmp 0x446f2c
call fcn.00436248
mov ebx, eax
cmp dword [ebx + 4], 0
jmp 0x4468b9
push ebx
lahf
not eax
cbw
push esi
bswap eax
push edi
mov dx, sp
mov edx, 5
lahf
bswap eax
mov eax, dword [ebp + 8]
jmp 0x4469bc
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
jmp 0x4477a2
push edx
jmp 0x446bcf
call fcn.00436120
mov dword [ebp - 8], eax
jmp loc.004365b9
pop edi
not esi
movsx bx, dh
bswap si
pop esi
pop ebx
mov esp, ebp
jmp loc.0043677b

Function at 0x446cb8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esi
btc bp, 0x6d
mov ebp, esp
not ax
movsx eax, bp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
jmp loc.004367ad

Function at 0x446cfb
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
xor ebp, 0x3ae0585e
xor al, dh
bts edx, ebx
mov ebp, esp
add dl, 0xc4
add esp, 0xfffffee8
push ebx
mov eax, 0xbd87699
rdtsc
push esi
cdq
not ah
push edi
mov byte [ebp - 1], 1
cwd
movsx eax, dx
setno al
mov edx, 1
lahf
xchg al, ah
mov eax, dword [ebp + 8]
jmp loc.00436cef