joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x810]
sub esp, 0x82c
mov dword [ebp - 0x80c], 0x800
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20019
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x401118
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x80c]
lea esi, [ebp - 0x808]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.LastKey
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4011b0
mov eax, dword [section..bss]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x4011b0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d680
test eax, eax
je 0x4011b0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110b
mov dword [esp], ebx
call dword [0x41770c]
sub esp, 0x10
jmp 0x4011fa
mov eax, dword [section..bss]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [0x41770c]
mov dword [esp + 4], 0x110a
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], ebx
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x810]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401420
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x228
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x401540
lea eax, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0040c820
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x220]
test esi, esi
jne 0x4014e8
test eax, eax
je 0x4014dc
cmp eax, 0x80000000
je 0x401570
cmp eax, 0x80000001
je 0x401520
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x4014c7
cmp eax, 0x80000003
je 0x401580
cmp eax, 0x80000005
je 0x401590
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x401530
mov dword [ebp - 0x214], edx
test esi, esi
jne 0x4014ec
lea eax, [ebp - 0x218]
call fcn.004012f0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x401482
lea eax, [ebp - 0x21c]
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [ebp - 0x218], ebx
sub esp, 8
jmp 0x4014d1
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x4014c7
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x4014c7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x41770c]
sub esp, 0x10
mov edx, eax
jmp 0x401455
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x4014c7
mov edx, dword [str.HKEY_USERS]
jmp 0x4014c7
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x4014c7
Function at 0x403920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x270
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x258], 0
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x264], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403b48
mov dword [esp], 0
lea esi, [ebp - 0x210]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805d
mov dword [esp], eax
call dword [0x4176d0]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x403b01
mov edi, 1
jmp 0x4039ec
add edi, 1
cmp edi, 0x64
je 0x403b28
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x417758]
mov eax, dword [ebp - 0x25c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
jne 0x4039e0
mov eax, dword [ebp - 0x260]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x403a52
mov edi, dword [eax*4 + 0x411240]
mov eax, dword [ebp - 0x260]
lea esi, [ebp - 0x258]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x403b28
mov eax, dword [ebp - 0x260]
mov dword [esp + 0x10], edi
mov edi, 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.00407f00
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x240], 3
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov dword [ebp - 0x23c], 3
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x102b
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x41770c]
sub esp, 0x10
mov eax, dword [ebp - 0x25c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call fcn.004026a0
jmp 0x403b01
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call fcn.004026a0
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x4097b0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
lea esi, [esi]

Function at 0x4097d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00409300
call fcn.004097b0
lea esi, [esi]
nop
Function at 0x40a6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x10
mov dword [esp + 4], 0x411be8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40a7b0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.ucrtbase.dll__fileno]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__setmode]
mov dword [esp + 0xc], ebx
test edi, edi
je 0x40a788
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], 0x411cee
call esi
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
nop
add eax, 2
cmp word [eax], 0
jne 0x40a750
sub eax, str.Windows_Registry_Editor_Version_5.00_r_n
mov dword [esp + 0xc], ebx
sar eax, 1
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], str.Windows_Registry_Editor_Version_5.00_r_n
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.REGEDIT4_r_n
call sub.ucrtbase.dll_fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x411bec
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x40a722
mov dword [esp], 0x411bf2
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call fcn.00409790
call fcn.004097b0
jmp 0x40a722

Function at 0x40ad50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
test ecx, ecx
je 0x40ada0
cmp word [edx], 0
je 0x40add0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40ad70
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
test edx, edx
je 0x40adad
mov eax, edx
call fcn.0040aca0
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fputs]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40ad7d
Function at 0x40bce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40bd15
lea eax, [ebp - 0x42]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
je 0x40bd28
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ebp - 0x41]
movzx eax, byte [ebp - 0x42]
xor esi, esi
mov byte [ebp - 0x45], cl
mov ecx, 0x40aac0
cmp al, 0xff
jne 0x40bd51
xor edx, edx
mov edi, 0x40a500
cmp byte [ebp - 0x45], 0xfe
sete dl
cmove ecx, edi
mov esi, edx
movzx edx, byte [ebp - 0x45]
mov dword [ebp - 0x40], ebx
lea ebx, [ebp - 0x40]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov word [ebp - 0x3a], dx
mov edx, 0xffffffff
mov word [ebp - 0x34], dx
mov edx, 0x40a3f0
mov dword [ebp - 0x38], esi
mov dword [0x416de0], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x40bdca
mov edx, dword [ebp - 0x10]
mov edx, dword [edx*4 + 0x411da0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40bdc0
movzx eax, word [ebp - 0x34]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40be30
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40bd17
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp ax, 3
sete bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e080
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov edx, dword [0x416df0]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x40e0b8
mov edx, 1
test byte [eax + 0x40], 0x40
je 0x40e0a8
mov eax, edx
pop ebp
ret
mov edx, dword [eax + 0x3c]
pop ebp
mov eax, ecx
jmp fcn.0040c8e0
xor edx, edx
pop ebp
mov eax, edx
ret

Function at 0x40f030
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40f0a0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f12b
cmp ax, 9
je 0x40f118
cmp ax, 0x20
je 0x40f118
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40f180
cmp ax, 0x22
je 0x40f190
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40f12b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f0d0
test edi, 1
jne 0x40f0d0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40f118
cmp ax, 0x20
je 0x40f118
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40f1a8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408c50
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40f0eb
and dword [ebp - 0x54], 1
jne 0x40f0e4
xor edi, 1
jmp 0x40f0eb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40f144
Function at 0x40f0a0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40f0a0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f12b
cmp ax, 9
je 0x40f118
cmp ax, 0x20
je 0x40f118
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40f180
cmp ax, 0x22
je 0x40f190
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40f12b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f0d0
test edi, 1
jne 0x40f0d0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40f118
cmp ax, 0x20
je 0x40f118
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40f1a8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408c50
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40f0eb
and dword [ebp - 0x54], 1
jne 0x40f0e4
xor edi, 1
jmp 0x40f0eb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40f144
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401443
pop dword [ebp - 0x14]
mov eax, 0x782d8744
add eax, 0x88128cff
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x92363960
add dword [ebp - 0x24], 0xbc1c0beb
mov dword [ebp - 0x20], 0x3ae57f29
add dword [ebp - 0x20], 0xf74dcd1c
mov dword [ebp - 0x1c], 0x936bf802
sub dword [ebp - 0x1c], 0x471fb3d4
mov dword [ebp - 0x18], 0xa11972b7
sub dword [ebp - 0x18], 0xa11972b7
lea eax, [ebp - 0x24]
push eax
mov eax, 0x488e1ece
add eax, 0xb7b261aa
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x9571257d
add dword [ebp - 0x24], 0xdf0143d9
mov dword [ebp - 0x20], 0x3e149a1
add dword [ebp - 0x20], 0x3d8b17d4
mov dword [ebp - 0x1c], 0x16131c1d
sub dword [ebp - 0x1c], 0xb2a3afb1
mov dword [ebp - 0x18], 0x6d7bd969
sub dword [ebp - 0x18], 0x6d7bd969
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x3bd2d8da
add eax, 0xc46da7a2
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3b101
push 0
call eax
mov ecx, 0x271e553a
sub ecx, 0x271e027b
mov esi, eax
mov edx, 0x451400
add edx, dword [ebp - 0x14]
mov ebx, 0x95326cd0
add dword [ebp - 0x10], 0x4d6db48e
mov edi, dword [edx]
add dword [ebp - 4], 0x2278fba6
xor edi, ebx
xor dword [ebp - 4], 0x9e26d8da
mov dword [esi], edi
xor dword [ebp - 0xc], edi
add esi, 0x3d2a1408
add esi, 0xc2d5ebfc
add edx, 4
loop 0x401559
add eax, 0x1014afae
sub eax, 0x101371df
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc

Function at 0x10011023
Capabilities:
Terminate process

Disassembly:
jmp 0x1001cb00
jmp fcn.1001cb30
cmp ecx, dword [0x10021054]
jne 0x1001cb0a
repz ret
jmp 0x100110b9
Function at 0x38aa490
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2869000]
push edi
or ebp, 0xffffffff
jmp 0x38aa4b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x38aa4b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x38aa4a8
mov eax, 1
add ebx, ebx
jne 0x38aa4cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x38aa4dc
jne 0x38aa4fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x38aa4fb
dec eax
add ebx, ebx
jne 0x38aa4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x38aa4c0
add ebx, ebx
jne 0x38aa4f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x38aa54d
xor ecx, ecx
sub eax, 3
jb 0x38aa513
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x38aa582
sar eax, 1
mov ebp, eax
jmp 0x38aa51e
add ebx, ebx
jne 0x38aa51e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x38aa4ec
inc ecx
add ebx, ebx
jne 0x38aa52c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x38aa4ec
add ebx, ebx
jne 0x38aa539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x38aa52e
jne 0x38aa54a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x38aa52e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x38aa56c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x38aa55e
jmp 0x38aa4ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x38aa56c
add edi, ecx
jmp 0x38aa4ae
pop esi
mov edi, esi
mov ecx, 0xb0d47
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x38aa58a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x38aa58f
lea edi, [esi + 0x34a5000]
mov eax, dword [edi]
or eax, eax
je 0x38aa5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34d8394]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34d85e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x38aa5b5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x34d85f0]
or eax, eax
je 0x38aa5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x38aa5d2
call dword [esi + 0x34d85ec]
mov ebp, dword [esi + 0x34d85f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x38aa62b
sub esp, 0xffffff80
jmp 0x23b043c
Function at 0x401040
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.00413f46
add esp, 0x10
ret 0xc

Function at 0x401860
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x20
mov eax, dword [0x47deb4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0x10
jb 0x40187c
mov eax, dword [esi + 0x14]
jmp 0x40187f
lea eax, [esi + 0x14]
push eax
mov eax, dword [esi + 4]
push 0x2712
push eax
call fcn.0042a4c0
add esp, 0xc
push 0x129
push str.Mozilla_5.0__Linux__Android_11__21091116C_Build_RP1A.200720.011__wv__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_86.0.4240.99_XWEB_4313_MMWEBSDK_20220805_Mobile_Safari_537.36_MMWEBID_287_MicroMessenger_8.0.27.2220_0x28001B3F__WeChat_arm64_Weixin_NetType_WIFI_Language_zh_CN_ABI_arm64
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.004015b0
cmp dword [esp + 0x1c], 0x10
mov eax, dword [esp + 8]
jae 0x4018c8
lea eax, [esp + 8]
mov ecx, dword [esi + 4]
push eax
push 0x2722
push ecx
call fcn.0042a4c0
mov edx, dword [esi + 4]
push 5
push 0x44
push edx
call fcn.0042a4c0
mov eax, dword [esi + 4]
push 1
push 0x34
push eax
call fcn.0042a4c0
mov ecx, dword [esi + 4]
push 1
push 0x63
push ecx
call fcn.0042a4c0
mov edx, dword [esi + 4]
push 0
push 0x2f
push edx
call fcn.0042a4c0
mov eax, dword [esi + 4]
push 0x401140
push 0x4e2b
push eax
call fcn.0042a4c0
mov ecx, dword [esi + 4]
add esp, 0x48
push esi
push 0x2711
push ecx
call fcn.0042a4c0
mov edx, dword [esi + 4]
push 0
push 0x40
push edx
call fcn.0042a4c0
mov eax, dword [esi + 4]
push 0
push 0x51
push eax
call fcn.0042a4c0
add esp, 0x24
cmp dword [esp + 0x1c], 0x10
pop esi
jb 0x401962
mov ecx, dword [esp + 4]
push ecx
call fcn.0040776a
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041465a
add esp, 0x20
ret

Function at 0x402120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402174
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402170
lea ebx, [ebx]
cmp esi, eax
jae 0x402174
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402160
cmp esi, eax
jb 0x40217a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret