joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41de8d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41df2a
push ebx
push esi
call fcn.0041de56
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041cc1e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ded7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41df29
push edi
push eax
call fcn.00417843
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41def7
call fcn.00416dff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41df28
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cc1e
add esp, 0x20
test eax, eax
jne 0x41df16
push edi
call fcn.00416dff
jmp 0x41df1e
push ebx
call fcn.00416dff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x424950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42497d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42497d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
inc dword [ebx - 0x515efb01]
ret 0xd804
push ebp
mov ebp, esp
inc esi
in al, dx
adc byte [edx], al
add byte [eax], al
std
mov ebx, dword [ebp + 8]
pop ds
push edi
xchg edx, eax
inc ebx
add al, 0x83
leave
mov dh, 0xf
loopne 0x40682a
add dword [eax], eax
jb 0x4068b6
dec ebx
adc byte [ebp + 0x2c510fc9], al
add dword [eax], eax
add byte [esi + 0x4e8bd275], al
adc al, 0x8d
push esi
sub byte [ecx + 0x52], dl
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
pmuludq mm6, qword [edi]
add dword [eax + eax - 0x75], edx
xor eax, sym.imp.WSOCK32.dll_WSAGetLastError
call esi
test eax, eax
je 0x40694f
call esi
add eax, 0xafc13
lodsb al, byte [esi]
mov bl, 0x23
pop ebx
add byte [edi], cl
test dword [ecx + 1], edx
add byte [eax], al
mov edi, dword [ebx + 0x25]
mov esi, dword [ebx + 0x24]
mov eax, edi
or eax, esi
and eax, 0xb85ea8bf
mov ah, 0x23
or ecx, dword [esi + 0x5de58b5b]
pop ebx
mov esp, ebp
pop ebp
ret 8
or eax, 0x855a0050
sar bh, 0x5e
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x1c]
lea eax, [ebp + 8]
push edx
push eax
mov byte [edi], 0x10
add byte [ecx + 0x68], dh
invalid
Function at 0x4010d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x21c]
mov ecx, 0x87
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
lea eax, [ebp - 0x208]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp esi, esp
call fcn.00419960
call fcn.00401000
test eax, eax
je 0x401162
lea ecx, [ebp - 0x208]
add ecx, 0xfffffffe
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov ax, word [edx + 2]
mov word [ebp - 0x212], ax
add dword [ebp - 0x210], 2
cmp word [ebp - 0x212], 0
jne 0x40112a
mov edi, dword [ebp - 0x210]
mov ecx, 7
mov esi, str.x64_setup.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x4011a7
lea ecx, [ebp - 0x208]
add ecx, 0xfffffffe
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov ax, word [edx + 2]
mov word [ebp - 0x21a], ax
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21a], 0
jne 0x401171
mov edi, dword [ebp - 0x218]
mov ecx, 7
mov esi, str.x86_setup.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, esp
push 5
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp esi, esp
call fcn.00419960
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4011fc]
call fcn.00419900
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401220
add esp, 0x21c
cmp ebp, esp
call fcn.00419960
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4045d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004041f1
push eax
push esi
push dword [ebp + 8]
call fcn.004041a6
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004041f1
push eax
push esi
push dword [ebp + 8]
call fcn.004041a6
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004041e1
xor eax, 0x88bcd98d
popfd
jl 0x404666
invalid
invalid
Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x40b1d2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
add edx, ecx
pop ebx
pop ebx
pop ebx
pop ecx
pop eax
pop edi
pop esi
jmp edx
mov ecx, dword [ebx + 0x28]
cmp ecx, 1
je 0x40b1c1
mov ecx, ebx
sub ecx, dword [ebx + 4]
xor cx, cx
mov dword [ebx + 0x24], ecx
add ecx, dword [ebx + 8]
mov esi, ecx
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov eax, dword [ebx + 0x10]
xor dword [esi + edx], eax
add edx, 1
add edx, 2
sub edx, 1
sub edx, 1
add edx, 3
push edx
push ecx
pop ecx
pop edx
cmp edx, ecx
jl 0x40b1f5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebx + 0x24]
add ecx, dword [ebx + 0x1c]
mov esi, ecx
mov ecx, dword [ebx + 0x20]
xor edx, edx
mov eax, dword [ebx + 0x10]
xor dword [esi + edx], eax
add edx, 1
add edx, 2
sub edx, 1
sub edx, 1
add edx, 3
push edx
push ecx
pop ecx
pop edx
cmp edx, ecx
jl 0x40b285
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebx + 0x28], 1
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
add edx, ecx
pop ebx
pop ebx
pop ebx
pop ecx
pop eax
pop edi
pop esi
mov dword [esp + 0x34], edx
jmp edx
Function at 0x100032d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fb0f
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10034014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], 0
call fcn.10009bf0
mov ecx, esi
mov dword [ebp - 4], 1
call dword [sym.imp.FileInfoProvider.dll_public:_void___thiscall_CrlPlatform::CrlStringT_wchar_t_::constructor_void_]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], 1
push eax
push 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], 0
call dword [sym.imp.FileInfoProvider.dll_public:_wchar_t_const____thiscall_CrlPlatform::CrlStringT_wchar_t_::operator_wchar_t_const__void_const]
push eax
push 3
push 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryKeyW]
test eax, eax
js 0x10003420
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0x20019
push 0
push str.DefaultIcon
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10003414
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000f540
add esp, 0xc
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003408
cmp dword [ebp - 0x224], 1
jne 0x10003408
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call dword [sym.imp.FileInfoProvider.dll_public:_class_CrlPlatform::CrlStringT_wchar_t_____thiscall_CrlPlatform::CrlStringT_wchar_t_::operator_wchar_t_const__]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x228]
call dword [sym.imp.FileInfoProvider.dll_public:_void___thiscall_CrlPlatform::CrlStringT_wchar_t_::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d4e8
mov esp, ebp
pop ebp
ret
Function at 0x401cb0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push eax
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 8

Function at 0x402f40
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
push ebx
xor eax, eax
xor ebx, ebx
push esi
jmp loc.0040a9c0

Function at 0x404786
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405e58
push 0x40490c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40770c], 0xffffffff
or dword [0x407710], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x407700]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4076fc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407708], eax
call fcn.0040490b
cmp dword [0x4075c0], ebx
jne 0x404809
push 0x404908
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004048f6
push 0x407024
push 0x407020
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4076f8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push dword [0x4076f4]
push eax
lea esi, [ebp - 0x70]
push esi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40701c
push section..data
call sub.MSVCRT.dll__initterm
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
sub esp, 0xffffffdc
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40489c
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x404870
cmp al, 0x22
jne 0x404862
cmp byte [esi], 0x22
jne 0x404879
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x404883
cmp al, 0x20
jbe 0x404875
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4048a7
movzx eax, word [ebp - 0x2c]
jmp 0x4048aa
cmp byte [esi], 0x20
jbe 0x404879
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40489c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4a89f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a89f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4a9d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x4c773c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x4c773c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x4c6538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10aec000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x10aec00a
jmp 0x10aee00f
jmp fcn.10875058
Function at 0x4097ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4097f5
mov eax, dword [esp + 0x30]
mov dword [0x43f97c], eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.0040d060
push dword [0x43f97c]
push dword [0x43f97c]
push dword [0x43f97c]
push dword [0x43f97c]
push dword [esp + 0x10]
call fcn.0040d320
mov edx, dword [0x43d79c]
add dword [esp], edx
call fcn.0040d3b0
lea eax, [esp + 4]
push eax
call fcn.0041cfd0
lea edx, [esp + 4]
push edx
push 0x43d498
push 8
push 8
push 4
call fcn.0041ccd1
mov dword [esp + 0xc], 1
mov edx, str.application_octet_stream
lea ecx, [esp + 0x10]
call fcn.0040d068
push dword [0x43f97c]
mov edx, 0x43c122
call fcn.0041d050
mov edx, dword [esp + 4]
call fcn.0041d050
lea eax, [esp + 4]
push eax
call fcn.0041cfd0
mov dword [esp + 0x14], 0
push dword [0x43f97c]
push dword [0x43f97c]
push 0xff
call fcn.0040dc10
lea eax, [esp + 0x1c]
push eax
call fcn.0041cfd0
mov dword [esp + 0x1c], 0xff
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push 0x80000000
call sub.ADVAPI32.DLL_RegOpenKeyExA
and eax, eax
je 0x409913
mov edx, dword [esp + 0x10]
push dword [0x43f97c]
call fcn.0041d050
lea eax, [esp + 0x1c]
push eax
call fcn.0041cfd0
jmp 0x409982
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0
push str.Content_Type
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegQueryValueExA
and eax, eax
je 0x409954
mov edx, dword [esp + 0x10]
push dword [0x43f97c]
call fcn.0041d050
lea eax, [esp + 0x1c]
push eax
call fcn.0041cfd0
jmp 0x409979
push dword [0x43f97c]
push dword [0x43f97c]
mov ebx, dword [esp + 0x24]
dec ebx
push ebx
push dword [esp + 0x24]
call fcn.0040d340
lea eax, [esp + 0x1c]
push eax
call fcn.0041cfd0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0x18]
push dword [0x43f97c]
call fcn.0041d050
lea eax, [esp + 0x24]
push eax
call fcn.0041cfd0
mov edx, dword [esp + 0x20]
push dword [0x43f97c]
call fcn.0041d050
pop eax
add eax, dword [0x43d79c]
jmp 0x4099c1
push dword [esp + 0x10]
call fcn.0041d140
push dword [esp + 0x18]
call fcn.0041d140
push dword [esp + 0x20]
call fcn.0041d140
push dword [esp]
call fcn.0041d140
push eax
push dword [esp + 8]
call fcn.0041cdf9
pop eax
add esp, 0x24
pop ebx
ret 4
Function at 0x409e76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
mov dword [0x43f97c], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.0040d060
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.0040d060
mov dword [esp + 8], 0
push dword [0x43f97c]
push dword [0x43f97c]
push 0xff
call fcn.0040dc10
lea eax, [esp + 0x10]
push eax
call fcn.0041cfd0
mov dword [esp + 0x10], 0xff
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyExA
and eax, eax
je 0x409f00
mov edx, 0x43c01e
lea ecx, [esp + 0xc]
call fcn.0040d068
jmp 0x409f63
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.DLL_RegQueryValueExA
and eax, eax
je 0x409f35
mov edx, 0x43c01e
lea ecx, [esp + 0xc]
call fcn.0040d068
jmp 0x409f5a
push dword [0x43f97c]
push dword [0x43f97c]
mov ebx, dword [esp + 0x18]
dec ebx
push ebx
push dword [esp + 0x18]
call fcn.0040d340
lea eax, [esp + 0x10]
push eax
call fcn.0041cfd0
push dword [esp + 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0xc]
push dword [0x43f97c]
call fcn.0041d050
pop eax
add eax, dword [0x43d79c]
jmp 0x409f89
push dword [esp + 0xc]
call fcn.0041d140
push dword [esp]
call fcn.0041d140
push dword [esp + 4]
call fcn.0041d140
add esp, 0x14
pop ebx
ret 0xc