joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090f0
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 0x409257
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407154
cmp si, word [0x4947e0]
jb 0x40918a
cmp si, word [0x4949e0]
ja 0x40918a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40918a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4947e0]
jae 0x409164
mov edi, ebx
dec edi
jmp 0x409185
cmp si, word [ebx*8 + 0x4947e0]
jbe 0x409174
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409185
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4947e4]
call fcn.00409000
jmp 0x40918a
cmp edi, dword [ebp - 0xc]
jae 0x40914e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409239
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409239
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.0040733c
push dword [ebp - 0x164]
push 0x409274
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040733c
push dword [ebp - 0x168]
push 0x409284
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040733c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004076f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40925e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040714c
ret
Function at 0x409410
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 0x409515
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49db54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x49db6c]
jne 0x40945c
mov eax, esi
mov edx, 0x49db70
mov ecx, 0x55
call fcn.0040733c
push 0x49db54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4094ff
push 0x49db54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407154
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094cd
cmp byte [0x49db50], 0
je 0x409492
mov edx, esi
mov eax, ebx
call fcn.004092f0
jmp 0x4094cd
mov edx, esi
mov eax, ebx
call fcn.004090f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094cd
cmp dword [esi], 0
je 0x4094b6
mov eax, esi
mov edx, 0x409530
call fcn.00407550
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407550
push 0x49db54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x49db6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071e0
push eax
push 0x49db70
call sub.kernel32.dll_lstrcpynW
push 0x49db54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40951c
lea eax, [ebp - 4]
call fcn.00407144
ret
Function at 0x409754
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.0040713c
xor eax, eax
push ebp
push 0x409939
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409794
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4097ae
push 0x105
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409923
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409948
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40983d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409948
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40983d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40997c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40983d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409923
xor eax, eax
push ebp
push 0x40991c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409558
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 0x4098ac
mov eax, dword [ebp - 0x10]
call fcn.004041b8
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.00407300
jmp 0x4098f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4099f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098f7
mov eax, dword [ebp - 0x10]
call fcn.004041b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4099f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409923
cmp dword [ebp - 8], 0
je 0x409912
mov eax, dword [ebp - 8]
call fcn.004041d4
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 0x409940
lea eax, [ebp - 4]
call fcn.00407144
ret
Function at 0x409c04
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.0040713c
mov eax, dword [ebp - 0x21c]
call fcn.0040713c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409da3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407154
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004071e0
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 0x409ca4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409cb6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409ca1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409d6f
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 0x409cdf
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.00409754
cmp dword [ebp - 0x220], 0
je 0x409d17
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409af8
pop ecx
mov ebx, eax
jmp 0x409d6f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409410
mov eax, dword [ebp - 0x224]
call fcn.00409af8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d62
cmp byte [0x49db50], 0
jne 0x409d62
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409410
mov eax, dword [ebp - 0x228]
call fcn.00409af8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d6f
push ebp
call fcn.00409ba8
pop ecx
mov ebx, eax
test bl, bl
je 0x409d85
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040733c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409daa
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040714c
ret

Function at 0x40bd2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x49dc48
push 0xa
push 0x40bdc0
mov eax, dword [0x49dc38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40bd50
call fcn.00417494
push ebx
mov eax, dword [0x49dc38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40bd67
call fcn.00417494
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40bd79
call fcn.00417494
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x49dc4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x49dc50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x49dc54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x49dc58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x49dc5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x49dc60], edx
pop esi
pop ebx
ret
Function at 0x40f8f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40f99d
test eax, edx
je 0x40f9a0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40f91d
push edx
mov edx, eax
mov eax, esp
call fcn.00407358
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40f933
push eax
lea eax, [esp + 8]
call fcn.00407358
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40f942
movzx eax, word [eax]
sub eax, ecx
jmp 0x40f969
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 0x40f983
add ecx, 4
js 0x40f95a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40f980
push eax
mov eax, ecx
mov edx, 2
call fcn.004062dc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40f967
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40f969
xor eax, eax
ret
test eax, eax
je 0x40f9b0
test edx, edx
jne 0x40f904
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004071e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410a06
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x410a27
cmp ebx, 3
je 0x410a27
cmp ebx, 0x7b
je 0x410a27
mov eax, esi
call fcn.004109a8
test al, al
jne 0x410a2b
xor eax, eax
jmp 0x410a2d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004071e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410a49
test al, 0x10
jne 0x410a4d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x414430
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 0x414469
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407290
jmp 0x414472
mov eax, ebx
mov edx, esi
call fcn.00407154
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41447c
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 0x41449e
movzx eax, word [esp]
jmp 0x4144a0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414d80
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 0x414ea5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414b90
mov esi, eax
mov eax, dword [0x49a730]
cmp byte [eax], 0
je 0x414e4d
mov eax, dword [0x49a500]
call fcn.00404708
call fcn.00404300
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 [0x414d58]
call fcn.00408b1c
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 0x414ec0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x414e89
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x49a4b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49dc38]
call fcn.00408be0
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 0x414eac
lea eax, [ebp - 4]
mov edx, dword [0x414d58]
call fcn.00408b28
ret

Function at 0x4172c3
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.00406668
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 0x4172e6
mov eax, edi
add eax, eax
call fcn.004041b8
mov esi, eax
jmp 0x4172e8
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 0x417321
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 0x41730b
mov eax, esp
cmp esi, eax
je 0x41732e
mov eax, esi
call fcn.004041d4
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 0x417368
cmp bl, 0
je 0x417364
cmp bl, 0x41
jl 0x41735f
cmp bl, 0x5a
jg 0x41735f
or bl, 0x20
xor al, bl
inc esi
jmp 0x417343
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4172a8
Function at 0x435838
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4358d6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43589a
cmp byte [ebx + 0x10], 0
jne 0x43589a
cmp byte [ebx + 0x3c], 0
jne 0x43589a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4358bb
lea edx, [ebp - 4]
mov eax, dword [0x49a6e8]
call fcn.0040a518
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4295a4]
call fcn.00414eec
call fcn.00405af0
jmp 0x4358bb
lea edx, [ebp - 8]
mov eax, dword [0x49a6e8]
call fcn.0040a518
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4295a4]
call fcn.00414eec
call fcn.00405af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4358dd
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret

Function at 0x435bcc
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 + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x435c1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004357bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x435c33
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x435c3c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004357bc
dec esi
jne 0x435c5e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x438340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x438392
test eax, edx
je 0x438395
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x438355
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 0x43837b
add ecx, 4
js 0x43836b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x438378
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 0x4383a1
test edx, edx
jne 0x438348
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x43a820
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x43a8d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0043a7b4
test al, al
je 0x43a8ba
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407290
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x43a8ba
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.004071e0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407300
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x43a873
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a8df
lea eax, [ebp - 0x2c]
call fcn.00407144
lea eax, [ebp - 4]
call fcn.00407144
ret

Function at 0x43ab90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004071e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0043a52c
test al, al
jne 0x43abf1
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49a8b4]
mov dl, 1
mov eax, dword [0x439208]
call fcn.00414fe4
call fcn.00405af0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043a458
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x445df4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x445e26
inc ecx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, 0xff
mov esi, dword [0x49a608]
mov ebx, dword [esi + ebx*4]
shr eax, 8
and eax, 0xffffff
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x445e02
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebx
movzx edx, dl
mov ecx, dword [eax + 4]
xor edx, ecx
and edx, 0xff
mov ebx, dword [0x49a608]
mov ebx, dword [ebx + edx*4]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [eax + 4], ebx
and ebx, 0xff
add dword [eax + 8], ebx
imul edx, dword [eax + 8], 0x8088405
inc edx
mov dword [eax + 8], edx
shr edx, 0x18
mov ecx, dword [eax + 0xc]
xor edx, ecx
and edx, 0xff
mov ebx, dword [0x49a608]
mov edx, dword [ebx + edx*4]
shr ecx, 8
and ecx, 0xffffff
xor edx, ecx
mov dword [eax + 0xc], edx
pop ebx
ret

Function at 0x446218
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11]
mov ecx, 0xc
xchg edx, eax
call fcn.0042f590
mov edi, 0xc
lea esi, [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.00446110
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0044612c
mov byte [esi], bl
inc esi
dec edi
jne 0x44623d
cmp byte [ebp - 5], 0
je 0x44626e
movzx eax, word [ebp + 8]
shr eax, 8
cmp al, byte [ebp - 6]
sete al
jmp 0x446280
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, ax
shr eax, 8
cmp al, byte [ebp - 6]
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x453b3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 8], edx
mov dword [esp], eax
mov eax, dword [esp + 8]
xor edx, edx
call fcn.00407154
mov esi, dword [esp]
shr esi, 4
inc esi
call fcn.00436eb4
and ax, 0x3ff
or ax, 0x400
movzx eax, ax
push eax
mov edi, esi
push edi
push 6
mov eax, dword [0x49dc38]
push eax
call sub.kernel32.dll_FindResourceExW
mov ebx, eax
test ebx, ebx
jne 0x453b99
mov eax, 0x409
push eax
push edi
push 6
mov eax, dword [0x49dc38]
push eax
call sub.kernel32.dll_FindResourceExW
mov ebx, eax
test ebx, ebx
je 0x453c1c
push ebx
mov eax, dword [0x49dc38]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
mov eax, dword [0x49dc38]
push eax
call sub.kernel32.dll_LoadResource
mov ebp, eax
test esi, esi
je 0x453c16
test ebp, ebp
je 0x453c16
push ebp
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, ebx
cdq
push edx
push eax
mov eax, esi
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [esp + 0xc], eax
xor edi, edi
cmp ebx, dword [esp + 0xc]
jae 0x453c16
movzx esi, word [ebx]
add ebx, 2
mov eax, dword [esp]
and eax, 0xf
cmp edi, eax
jne 0x453c08
movzx ecx, si
mov eax, dword [esp + 8]
mov edx, ebx
call fcn.00407290
jmp 0x453c16
inc edi
movzx eax, si
add eax, eax
add ebx, eax
cmp ebx, dword [esp + 0xc]
jb 0x453be8
push ebp
call sub.kernel32.dll_FreeResource
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret