joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477450
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
call fcn.004777b0
cmp dword [edi + 0x44], 2
jne 0x47754c
mov esi, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 8]
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jge 0x47754e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
cmp ebx, 0x2733
je 0x47754c
push str.TCP__
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004156b0
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 0xf
jbe 0x4774b2
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push eax
call fcn.00416020
push 0x4a459c
push eax
call fcn.004156b0
add esp, 0x14
lea ecx, [edi + 0x18]
cmp dword [edi + 0x2c], 0xf
jbe 0x4774d6
mov ecx, dword [edi + 0x18]
push dword [edi + 0x28]
push ecx
push eax
call fcn.00416020
add esp, 0xc
mov esi, eax
push 0x49fcc0
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x4a6148
push ebx
push str._:_send_error._Error_code:
push esi
call fcn.004156b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004156b0
add esp, 8
push eax
call fcn.004156b0
add esp, 8
push eax
call fcn.004156b0
add esp, 8
cmp byte [edi + 0x30], 0
je 0x477555
mov ecx, edi
call fcn.00477330
push str._Reconnect._n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004156b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
push str._Failed._n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004156b0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x479530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c77d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
lea ecx, [esi - 0x10]
call fcn.00479ac0
cmp dword [esi + 0x90], 0xffffffff
je 0x4796f1
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x2c], 0
jle 0x4796f1
push dword [edi + 0x30]
lea eax, [esi + 0x40]
mov ecx, eax
call fcn.0046f9e0
test al, al
je 0x4796de
add esi, 0x28
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0xf
jbe 0x4795b1
mov eax, dword [esi]
mov ecx, dword [ebp - 0x30]
push esi
push edi
add ecx, 0x84
mov byte [eax], 0
call fcn.0047f2a0
mov ecx, dword [esi + 0x10]
mov eax, Ordinal_1
sub eax, ecx
cmp eax, 2
jb 0x479714
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4795e1
mov eax, dword [esi]
push 2
push 0x49db90
push ecx
push eax
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00416ac0
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
cmova edx, dword [ebp - 0x28]
mov eax, edx
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479622
sub eax, esi
lea ecx, [ebp - 0x48]
push eax
push edx
call fcn.00415bc0
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 0xf
cmova ecx, dword [ebp - 0x48]
mov eax, dword [esi + 0x94]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push dword [ebp - 0x38]
push ecx
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x479695
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47968b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47970e
push ecx
push edx
call fcn.00489a49
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x4796de
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4796d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47970e
push ecx
push edx
call fcn.00489a49
add esp, 8
mov eax, dword [ebp - 0x2c]
add edi, 0x34
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp + 0xc]
jl 0x479588
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489ca8
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00421170
int3
Function at 0x479bd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xa4]
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
cmova edx, dword [ebp + 8]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push dword [ebp + 0x18]
push edx
push dword [ecx + 0xa0]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x479c32
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x479c28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x479c28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00489a49
add esp, 8
pop ebp
ret 0x18
Function at 0x480360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49af2e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
call fcn.0041c160
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.00480f60
push edi
mov ecx, esi
call fcn.00480470
inc dword [esi + 0x30]
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
sar eax, 5
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
cmp dword [esi + 0x30], eax
jae 0x480442
mov eax, dword [0x4a6ce0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xc
movq xmm0, qword [str.expected_END]
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
push 0xc
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00480250
test al, al
je 0x480461
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489ca8
mov esp, ebp
pop ebp
ret 8
push str.unexpected_end_in_input
lea ecx, [ebp - 0x28]
call fcn.004168f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00480210
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00480210
int3
Function at 0x482840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push dword [ebp + 0xc]
mov ebx, ecx
push dword [ebp + 8]
lea esi, [ebx + 0xa8]
push esi
call sub.airspy.dll_airspy_open_sn
add esp, 0xc
test eax, eax
jne 0x482974
push eax
lea eax, [ebp - 8]
push eax
push dword [esi]
call sub.airspy.dll_airspy_get_samplerates
mov esi, dword [ebp - 8]
add esp, 0xc
test esi, esi
jne 0x482887
push str.AIRSPY:_cannot_get_allowed_sample_rates.
jmp 0x482979
mov eax, dword [ebx + 0xb4]
mov ecx, eax
mov edx, dword [ebx + 0xb0]
sub ecx, edx
push edi
lea edi, [ebx + 0xb0]
sar ecx, 2
mov dword [ebp - 0xc], eax
cmp esi, ecx
jae 0x4828ad
lea eax, [edx + esi*4]
jmp 0x4828e7
jbe 0x4828ea
mov eax, dword [edi + 8]
sub eax, edx
sar eax, 2
cmp esi, eax
jbe 0x4828cc
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.004534b0
mov esi, dword [ebp - 8]
jmp 0x4828ea
sub esi, ecx
shl esi, 2
push esi
push 0
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 8]
mov dword [edi + 4], eax
push esi
push dword [edi]
push dword [ebx + 0xa8]
call sub.airspy.dll_airspy_get_samplerates
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [ebx + 0xb4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
mov edx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
cmp eax, esi
je 0x482951
mov edi, dword [eax]
mov ecx, ebx
mov eax, dword [ebx]
mov esi, edx
call dword [eax + 0x20]
mov ecx, edi
sub ecx, eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0xc]
cmp eax, edx
cmovl edx, eax
cmp eax, esi
mov eax, dword [ebp - 0x14]
cmovge edi, dword [ebp - 0x10]
add eax, 4
mov ecx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jne 0x482917
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov eax, dword [ebp + 8]
pop edi
mov dword [ebx + 0xc0], eax
mov eax, dword [ebp + 0xc]
pop esi
mov dword [ebx + 0xc4], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.AIRSPY:_cannot_open_device.
lea ecx, [ebp - 0x24]
call fcn.00419540
push 0x4abd04
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4883f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov edx, ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov ebx, 0xffff
shr ebx, cl
mov eax, ebx
mov dword [ebp - 4], edx
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 0x10]
sar eax, 1
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x4884d4
movss xmm1, dword [0x4a5f2c]
push esi
push edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, eax
add eax, dword [edx]
add ecx, 4
mov edi, eax
mov dword [ebp + 8], ecx
add eax, dword [edx + 4]
mov ecx, dword [ebp + 0x14]
mov ebx, eax
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
add edx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
shr edx, cl
and edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor edx, 0x80008000
movsx eax, dx
shr edx, 0x10
movd xmm0, eax
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ecx*8], xmm0
movsx eax, dx
movd xmm0, eax
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ecx*8 + 4], xmm0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [eax], ecx
add ecx, esi
mov dword [eax + 4], ecx
add ecx, edi
mov dword [eax + 8], ecx
add ecx, ebx
mov dword [eax + 0xc], ecx
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x488431
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48a855
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48a894
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48a894
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48a894
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48a894
cmp dword [ecx + 0x74], 0xe
jbe 0x48a894
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
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 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
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 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
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 0x41cd8c
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 0x41e5a4
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x426a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
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 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
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 0x426a6a
ret
Function at 0x41efc8
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 dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x427473
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 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x4412a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x4412a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x44010c]
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 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
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 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42747a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4018b4
mov dword [ebp - 4], 0
jmp 0x4018cd
cmp dword [ebp - 8], 0xea
jne 0x4018c6
mov dword [ebp - 4], 0xffffffe4
jmp 0x4018cd
mov dword [ebp - 4], 0xfffffff2
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433280
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x448008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov edx, dword [0x44b9b8]
cmp edx, dword [ecx + 4]
jle 0x401a85
push 0x44b9b8
call fcn.0041978a
add esp, 4
cmp dword [0x44b9b8], 0xffffffff
jne 0x401a85
mov ecx, 0x44b9bc
call fcn.00406a40
push 0x434480
call fcn.004195d1
add esp, 4
push 0x44b9b8
call fcn.00419740
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00406a40
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov ecx, 0x44b9bc
call fcn.00402bc0
movzx eax, al
test eax, eax
jne 0x401ad9
mov ecx, 0x44b9bc
call fcn.00402bf0
push eax
call fcn.0042063b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406270
mov eax, dword [ebp - 0x18]
jmp 0x401bd2
lea ecx, [ebp - 0x24]
push ecx
call fcn.00401900
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406270
lea ecx, [ebp - 0x10]
call fcn.00402bc0
movzx ecx, al
test ecx, ecx
je 0x401b36
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406270
mov eax, dword [ebp - 0x28]
jmp 0x401bd2
push 0x43bfbc
lea ecx, [ebp - 0x10]
call fcn.00402b80
lea ecx, [ebp - 0x10]
call fcn.00402bf0
push eax
push 0x100
push 0x100
mov ecx, 0x44b9bc
call fcn.00406250
push eax
push 0
push 0x43bfcc
push 0x43bfd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, 0x44b9bc
call fcn.00405e50
mov ecx, 0x44b9bc
call fcn.00402bc0
movzx eax, al
test eax, eax
je 0x401baa
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406270
mov eax, dword [ebp - 0x2c]
jmp 0x401bd2
mov ecx, 0x44b9bc
call fcn.00402bf0
push eax
call fcn.0042063b
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406270
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x405720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405744
xor eax, eax
jmp 0x4057c4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40575b
xor eax, eax
jmp 0x4057c4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4057a7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4057a7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40577e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4057b3
xor eax, eax
jmp 0x4057c4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4057c1
xor eax, eax
jmp 0x4057c4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret