joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404db2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x404ddc
jl 0x404dd3
test edi, edi
jne 0x404ddc
xor eax, eax
xor edx, edx
jmp 0x404e91
cmp dword [ecx + 0x38], 0
je 0x404df0
push esi
push edi
push edx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x404e91
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404e30
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x404e30
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x404e87
call fcn.004056fc
mov edx, ebx
jmp 0x404e64
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x404e97
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x404e41
test edx, edx
je 0x404e87
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x404e89
Function at 0x405127
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40514d
xor eax, eax
jmp 0x40520e
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x40516f
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x40516f
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x40520e
cmp dword [esi + 0x4c], 0
je 0x40520c
call fcn.004056fc
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40519b
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40520c
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4051da
sub eax, 1
je 0x4051da
dec eax
sub eax, 1
jne 0x40520c
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x40518c
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x4051fe
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x40520c
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x40520e
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 4
Function at 0x40571f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x405777
cmp byte [esi + 0x3d], bl
je 0x405777
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4057b1
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x405788
sub eax, 1
je 0x40578b
dec eax
sub eax, 1
jne 0x4057b1
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4057a9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4057b1
cmp byte [esi + 0x3d], bl
sete al
jmp 0x405779
xor al, al
jmp 0x405779

Function at 0x407eef
Capabilities:
Delete file
Download url
Query environment variable
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push str.https:__armmf.adobe.com_manifest_arm_manifests_win_DC_acrobat_Logging_killswitch_uc.txt
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [ebp - 0x20c]
push ebx
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407fc5
push str._adnme_ks_uc.txt
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004017d1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407f8e
lea eax, [ebp - 0x20c]
push eax
call edi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
lea ecx, [ebp - 0x20c]
call fcn.004017d1
test eax, eax
je 0x407fc5
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret
Function at 0x40849b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1c], eax
call fcn.0040835d
mov ebx, 0x208
mov edi, eax
push ebx
call fcn.00409099
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], eax
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
call fcn.00409099
push 0x20a
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
mov dword [ebp - 8], 0x20a
push dword [ebp - 0x14]
push esi
call fcn.004087e2
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408565
lea eax, [ebp - 8]
xor edi, edi
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408565
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x408544
sub ecx, edx
sar ecx, 1
cmp ecx, 0x208
jae 0x408565
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00408c20
push ebx
call fcn.00408c20
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 0x14

Function at 0x40858d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push esi
call fcn.0040835d
push 0x208
mov edi, eax
call fcn.00409099
mov dword [esp], 0x208
push ebx
push eax
mov dword [ebp - 0xc], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
push esi
call fcn.004087e2
push str.https:__clients2.google.com_service_update2_crx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408640
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push str.https:__clients2.google.com_service_update2_crx
push 1
push ebx
push str.update_url
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
push esi
call fcn.00408c20
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 0x10
Function at 0x40865a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x18], eax
call fcn.0040835d
push 0x208
mov edi, eax
call fcn.00409099
mov dword [esp], 0x208
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
and dword [ebp - 8], 0
add esp, 0xc
mov dword [ebp - 0xc], 4
push ebx
push esi
call fcn.004087e2
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x20019
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4086f9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 8], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00408c20
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 0xc

Function at 0x40871d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.0040835d
mov edi, 0x208
mov ebx, eax
push edi
call fcn.00409099
push edi
push 0
push eax
mov dword [ebp - 0xc], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov eax, 0xf003f
cmp dword [ebp + 0x14], 0
mov edi, 0xf013f
cmove edi, eax
push dword [ebp - 0xc]
push esi
call fcn.004087e2
xor esi, esi
lea eax, [ebp - 8]
push esi
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [ebp - 0xc]
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4087c8
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push edi
call fcn.00408c20
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 0x10
Function at 0x40884f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.0040835d
mov ebx, 0x208
mov edi, eax
push ebx
call fcn.00409099
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebp - 0xc]
push esi
call fcn.004087e2
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4088c8
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
cmove ebx, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00408c20
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 0xc

Function at 0x4088eb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push esi
call fcn.0040835d
push 0x208
mov edi, eax
call fcn.00409099
mov dword [esp], 0x208
push ebx
push eax
mov dword [ebp - 0xc], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
push esi
call fcn.004087e2
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 0xf023f
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf023f
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40898c
push 0x1c
push str.23.008.20470.1
push 1
push ebx
push str.ProductVersion
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
push esi
call fcn.00408c20
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 0xc
Function at 0x4089a6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.0040835d
mov ebx, 0x208
mov edi, eax
push ebx
call fcn.00409099
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebp - 0xc]
push esi
call fcn.004087e2
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408a1b
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
inc ecx
test eax, eax
cmove ebx, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00408c20
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret 8

Function at 0x7ffe5435
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
cld
pushal
inc eax
popal
cld
lea esp, [esp]
clc
lea esp, [esp]
cld
pushal
inc eax
popal
stc
and bh, 0xff
cld
pushal
inc eax
popal
nop
and bh, 0xff
cld
cld
call 0x7ffe545e
pop edx
clc
xor dx, dx
add edx, 0xd5e0
lea esp, [esp]
nop
cld
xor ecx, ecx
cld
inc esi
dec esi
cld
mov cl, 0x1e
and bh, 0xff
stc
clc
xor byte [ecx + edx], 0x54
loop 0x7ffe547b
push dword fs:[0x24]
stc
cld
nop
pop dword [edx + 0xa]
mov cl, 0xff
nop
push edx
loop 0x7ffe5491
clc
cld
nop
clc
mov dword [edx + 0x11], 0xffffacbb
nop
stc
cld
mov ecx, dword [eax + 0x2c]
clc
clc
mov dword [edx + 0x1b], ecx
and bh, 0xff
cld
nop
mov dword [edx + 0x100], ecx
cld
pushal
inc eax
popal
mov dword [eax + 0x2c], esp
add eax, 0
push 0
cld
clc
push 0
clc
push 0
clc
cld
push 0
cld
push 0x30
push 0x20
cld
push 0
cld
and al, 0xff
stc
push 0
lea esp, [esp]
nop
cld
add edx, 0xffff7f37
clc
and al, 0xff
nop
push edx
pushal
inc eax
popal
cld
cld
push edx
cld
nop
cld
cld
push 0
clc
add eax, 0
cld
call dword [edx + 0x820c]
add eax, 0
stc
add esp, 0x3f8
cld
xor eax, eax
inc eax
cld
ret 0xc
Function at 0x40272c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040371c
test esi, esi
jne 0x402762
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040380c
jmp 0x402780
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x419008], 0x8088405
inc edx
mov dword [ebx + 0x419008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x419018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402edc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ebc
xor eax, eax
push ebp
push 0x402eb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ef8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ebc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x419018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x419018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403524
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a034], 0
je 0x403585
cmp word [0x41a208], 0xd7b2
jne 0x40354d
cmp dword [0x41a210], 0
jbe 0x40354d
mov eax, 0x41a204
call dword [0x41a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x419084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x419024], 0
jne 0x4035a1
push 0
push 0x41907c
push 0x419084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41a035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036a0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404416
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040387c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404400
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40441d
lea eax, [ebp - 0x10]
call fcn.0040371c
ret

Function at 0x404a18
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4190dc], 0
jne 0x404aea
mov byte [0x4190dc], 1
xor eax, eax
mov dword [0x4190d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
inc dword [ebx + 0x31c247c]
ja 0x404a60
cmp dword [esp + 0x1c], 3
jne 0x404ac0
cmp dword [esp + 0x20], 0x33
jbe 0x404ac0
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404af4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404aea
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b24
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404aea
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x404aea
cmp byte [esp + 9], 0
jne 0x404aea
jmp 0x404ad5
push 0
push 0x404b24
push 0x404b2c
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x404aea
mov eax, dword [0x4190d0]
call fcn.00403a94
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4190d4], eax
add esp, 0xac
ret

Function at 0x4055d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40569f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040371c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x405689
mov eax, ebx
mov edx, 0x73
call fcn.00403bc4
push 0
lea eax, [ebp - 8]
push eax
invalid
Function at 0x40587c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x405a0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403894
cmp eax, 2
jl 0x4059e1
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x405a24
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x150]
call fcn.00403a94
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4059b9
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040387c
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x14c], 0x10
je 0x405982
mov eax, dword [ebp - 0xc]
mov edx, 0x405a30
call fcn.004039e0
je 0x4059a4
mov eax, dword [ebp - 0xc]
mov edx, 0x405a3c
call fcn.004039e0
je 0x4059a4
lea eax, [ebp - 0x158]
mov ecx, 0x405a48
mov edx, dword [ebp - 8]
call fcn.004038e0
mov eax, dword [ebp - 0x158]
call fcn.0040587c
jmp 0x4059a4
mov eax, dword [ebp - 8]
call fcn.00403a94
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x4059a4
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x405901
push ebx
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 4]
call fcn.00403a94
mov ebx, eax
push ebx
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x4059e1
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a13
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403740
lea eax, [ebp - 0xc]
invalid