joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409674
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.0040704c
xor eax, eax
push ebp
push 0x409859
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4096b4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4096ce
push 0x105
mov eax, dword [ebp - 4]
call fcn.004070f0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409843
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409868
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40975d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409868
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40975d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40989c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40975d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409843
xor eax, eax
push ebp
push 0x40983c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409478
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 0x4097cc
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.00407220
jmp 0x409817
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409910
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409817
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 0x409910
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409843
cmp dword [ebp - 8], 0
je 0x409832
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 0x409860
lea eax, [ebp - 4]
call fcn.00407054
ret
Function at 0x409b24
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.0040704c
mov eax, dword [ebp - 0x21c]
call fcn.0040704c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409cc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407064
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004070f0
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 0x409bc4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409bd6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409bc1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409c8f
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 0x409bff
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.00409674
cmp dword [ebp - 0x220], 0
je 0x409c37
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409a18
pop ecx
mov ebx, eax
jmp 0x409c8f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409330
mov eax, dword [ebp - 0x224]
call fcn.00409a18
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c82
cmp byte [0x499b50], 0
jne 0x409c82
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409330
mov eax, dword [ebp - 0x228]
call fcn.00409a18
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c8f
push ebp
call fcn.00409ac8
pop ecx
mov ebx, eax
test bl, bl
je 0x409ca5
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040725c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cca
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040705c
ret

Function at 0x40bb14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x499c48
push 0xa
push 0x40bba8
mov eax, dword [0x499c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40bb38
call fcn.00416f18
push ebx
mov eax, dword [0x499c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40bb4f
call fcn.00416f18
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40bb61
call fcn.00416f18
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x499c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x499c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x499c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x499c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x499c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x499c60], edx
pop esi
pop ebx
ret
Function at 0x40f620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40f6c9
test eax, edx
je 0x40f6cc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40f649
push edx
mov edx, eax
mov eax, esp
call fcn.00407278
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40f65f
push eax
lea eax, [esp + 8]
call fcn.00407278
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40f66e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40f695
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 0x40f6af
add ecx, 4
js 0x40f686
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40f6ac
push eax
mov eax, ecx
mov edx, 2
call fcn.00406288
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40f693
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40f695
xor eax, eax
ret
test eax, eax
je 0x40f6dc
test edx, edx
jne 0x40f630
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004070f0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410726
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x410747
cmp ebx, 3
je 0x410747
cmp ebx, 0x7b
je 0x410747
mov eax, esi
call fcn.004106c8
test al, al
jne 0x41074b
xor eax, eax
jmp 0x41074d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004070f0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410769
test al, 0x10
jne 0x41076d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x413eb4
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 0x413eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071a0
jmp 0x413ef6
mov eax, ebx
mov edx, esi
call fcn.00407064
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413f00
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 0x413f22
movzx eax, word [esp]
jmp 0x413f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414804
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 0x414929
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414614
mov esi, eax
mov eax, dword [0x4966d8]
cmp byte [eax], 0
je 0x4148d1
mov eax, dword [0x4964a8]
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 [0x4147dc]
call fcn.00408a3c
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 0x414944
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41490d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x496460]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x499c38]
call fcn.00408b00
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 0x414930
lea eax, [ebp - 4]
mov edx, dword [0x4147dc]
call fcn.00408a48
ret

Function at 0x416d47
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.00406614
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 0x416d6a
mov eax, edi
add eax, eax
call fcn.004041b8
mov esi, eax
jmp 0x416d6c
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 0x416da5
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 0x416d8f
mov eax, esp
cmp esi, eax
je 0x416db2
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 0x416dec
cmp bl, 0
je 0x416de8
cmp bl, 0x41
jl 0x416de3
cmp bl, 0x5a
jg 0x416de3
or bl, 0x20
xor al, bl
inc esi
jmp 0x416dc7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416d2c
Function at 0x4352bc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43535a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43531e
cmp byte [ebx + 0x10], 0
jne 0x43531e
cmp byte [ebx + 0x3c], 0
jne 0x43531e
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 0x43533f
lea edx, [ebp - 4]
mov eax, dword [0x496690]
call fcn.0040a438
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x429028]
call fcn.00414970
call fcn.00405a9c
jmp 0x43533f
lea edx, [ebp - 8]
mov eax, dword [0x496690]
call fcn.0040a438
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x429028]
call fcn.00414970
call fcn.00405a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435361
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040705c
ret

Function at 0x435650
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 0x43569e
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.00435240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4356b7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x436f7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x436fce
test eax, edx
je 0x436fd1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x436f91
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 0x436fb7
add ecx, 4
js 0x436fa7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x436fb4
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 0x436fdd
test edx, edx
jne 0x436f84
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x43945c
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 0x439514
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.004393f0
test al, al
je 0x4394f6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004071a0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4394f6
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.004070f0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.004070f0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407220
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4394af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43951b
lea eax, [ebp - 0x2c]
call fcn.00407054
lea eax, [ebp - 4]
call fcn.00407054
ret

Function at 0x4397cc
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.004070f0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00439168
test al, al
jne 0x43982d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x496858]
mov dl, 1
mov eax, dword [0x437e44]
call fcn.00414a68
call fcn.00405a9c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00439094
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 0x443594
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4436e9
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4436b2
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404818
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 1
mov eax, esi
call fcn.004070f0
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlW
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffd
sub eax, 2
jb 0x443637
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0x11
lea eax, [ebp - 0x44]
push eax
push 0
push 0
mov ecx, 0x443704
mov dl, 1
mov eax, dword [0x43a5ac]
call fcn.0043e7a0
call fcn.00405a9c
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x5c], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x58], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
mov edx, esi
mov ecx, 0
call fcn.004072a0
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x2c]
sub edx, edi
sar edx, 1
jns 0x443666
adc edx, 0
inc edx
mov ecx, dword [ebp - 0x28]
call fcn.00440bd4
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x50]
call fcn.004062b8
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov edx, esi
mov ecx, 0
call fcn.004072a0
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x10]
sub edx, edi
sar edx, 1
jns 0x44369c
adc edx, 0
inc edx
mov ecx, dword [ebp - 0xc]
call fcn.00440bd4
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x54]
call fcn.004062b8
jmp 0x4436ce
mov dword [ebx + 0x58], 0x50
lea eax, [ebx + 0x50]
call fcn.00406264
lea eax, [ebx + 0x54]
call fcn.00406264
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4436f0
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00406288
ret
Function at 0x443884
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d], 0
jne 0x4439ce
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x4438ab
call fcn.00414968
push ebp
call fcn.00443858
pop ecx
push eax
push ebp
call fcn.0044382c
pop ecx
push eax
push ebp
call fcn.00443790
pop ecx
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x48]
mov eax, dword [eax*4 + 0x491144]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x90]
call fcn.004069b4
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x60], ebx
test ebx, ebx
setne dl
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004433ac
xor edx, edx
push ebp
push 0x4439ab
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x6a], 0
jne 0x443923
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x443942
push 0x4431f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
push eax
call sub.wininet.dll_InternetSetStatusCallback
cmp eax, 0xffffffff
sete dl
mov eax, dword [ebp - 4]
call fcn.004433ac
mov eax, dword [ebp - 4]
push eax
push 0
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004069b4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004069b4
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
call fcn.004069b4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
push eax
call sub.wininet.dll_InternetConnectA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x64], ebx
test ebx, ebx
setne dl
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004433ac
mov eax, dword [ebp - 4]
mov byte [eax + 0x4d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4439ce
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x444b00
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 0x444b32
inc ecx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, 0xff
mov esi, dword [0x4965b4]
mov ebx, dword [esi + ebx*4]
shr eax, 8
and eax, 0xffffff
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x444b0e
pop esi
pop ebx
pop ebp
ret 8

Function at 0x444e38
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 [0x4965b4]
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 [0x4965b4]
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 0x444f24
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.0042f014
mov edi, 0xc
lea esi, [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.00444e1c
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00444e38
mov byte [esi], bl
inc esi
dec edi
jne 0x444f49
cmp byte [ebp - 5], 0
je 0x444f7a
movzx eax, word [ebp + 8]
shr eax, 8
cmp al, byte [ebp - 6]
sete al
jmp 0x444f8c
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 0x452808
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.00407064
mov esi, dword [esp]
shr esi, 4
inc esi
call sub.kernel32.dll_GetThreadLocale
and ax, 0x3ff
or ax, 0x400
movzx eax, ax
push eax
mov edi, esi
push edi
push 6
mov eax, dword [0x499c38]
push eax
call sub.kernel32.dll_FindResourceExW
mov ebx, eax
test ebx, ebx
jne 0x452865
mov eax, 0x409
push eax
push edi
push 6
mov eax, dword [0x499c38]
push eax
call sub.kernel32.dll_FindResourceExW
mov ebx, eax
test ebx, ebx
je 0x4528e8
push ebx
mov eax, dword [0x499c38]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
mov eax, dword [0x499c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebp, eax
test esi, esi
je 0x4528e2
test ebp, ebp
je 0x4528e2
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 0x4528e2
movzx esi, word [ebx]
add ebx, 2
mov eax, dword [esp]
and eax, 0xf
cmp edi, eax
jne 0x4528d4
movzx ecx, si
mov eax, dword [esp + 8]
mov edx, ebx
call fcn.004071a0
jmp 0x4528e2
inc edi
movzx eax, si
add eax, eax
add ebx, eax
cmp ebx, dword [esp + 0xc]
jb 0x4528b4
push ebp
call sub.kernel32.dll_FreeResource
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4529f8
Capabilities:
Get process image filename

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov edi, eax
mov eax, ebx
mov edx, 0x104
call fcn.004073d8
mov eax, dword [ebx]
mov dword [esp], eax
mov esi, dword [esp]
test esi, esi
je 0x452a1d
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebx]
call fcn.004070f0
push eax
push edi
call sub.psapi.dll_GetProcessImageFileNameW
mov edx, ebx
xchg edx, eax
call fcn.004073d8
mov edx, dword [ebx]
mov ax, 0x5c
call fcn.00451e98
mov edx, ebx
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.0040790c
pop edx
pop edi
pop esi
pop ebx
ret