joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x5d239c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x5098df
call fcn.0054d8dc
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x5098c4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x5d239c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x5098df
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x5098f5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x509909
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x509922
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.0050a040
add esp, 0xc
test al, al
jne 0x5099c1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x5099c9
mov esi, dword [0x56a9e4]
jae 0x509951
call fcn.0053e4ef
mov ecx, edi
call fcn.00509bd0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x509965
mov esi, ecx
test esi, esi
jbe 0x5099a3
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.0052dec0
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.00509ab0
test al, al
je 0x50999f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x5099af
mov edi, 0x56a9e0
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.005099e0
jmp 0x5099a3

Function at 0x510430
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x5104d3
test eax, eax
jbe 0x5104d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x5104d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x51047e
xor esi, esi
jmp 0x510484
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x5104af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00513d30
add esi, eax
push esi
mov ebx, esi
call fcn.00513d30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x510490
pop ebp
test edi, edi
pop edi
jne 0x5104d3
test ebx, ebx
je 0x5104d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0052e4d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x510635
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x51074d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51074d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00545d91
mov esi, eax
test esi, esi
je 0x51074d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x51074d
mov ecx, esi
call fcn.005105c0
cmp edi, eax
jge 0x51074d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5106d3
mov dword [esp + 0x34], 1
jmp 0x51072e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x51074d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0050fb00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x518a80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x601974]
xor edx, edx
cmp eax, edx
jne 0x518aa6
xor eax, eax
mov byte [eax + 0x601874], al
inc eax
cmp eax, 0x100
jl 0x518a8e
mov dword [0x601974], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x601874
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x518b37
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x518b0a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x518ad8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x518bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x518c03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x518bea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51f5b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x552c2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0051fed0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x56e7cc
call fcn.005440a5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x51f643
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005440a5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x51f63c
push 0
mov ecx, eax
call fcn.005166b0
mov dword [esi + 0xc], eax
jmp 0x51f645
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x51f645
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x530e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052f0ea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x530e70
test byte [esp + 8], 2
je 0x530e70
call fcn.0052f15d
mov dword [eax], 0xd
call fcn.0052f166
mov dword [eax], 5
jmp 0x530e49
xor eax, eax
ret

Function at 0x546735
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54676d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005447bf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00544797
jmp 0x546779
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x547e23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x547e65
call fcn.0054d8dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x547e65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x547e5c
xor eax, eax
jmp 0x547e6d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00547e73
pop edi
pop esi
pop ebx
ret 4

Function at 0x54de0c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x54de3a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54de58
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054dd72
jmp 0x54de58
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54de58
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054dd72
test edi, edi
mov eax, edi
jne 0x54de42
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x412290
pop dword [ebp - 0xc]
mov eax, 0xfbb8f59e
sub eax, 0xfb77d30e
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3ab66
push 0
mov eax, 0xfa03007a
sub eax, 0xf9c0704e
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4eaa
xor edi, edi
add edi, eax
mov ebx, 0x436e00
add ebx, dword [ebp - 0xc]
mov edx, 0xffec7093
add edx, 0xda5e0eda
xor dword [ebp - 4], 0x1850756
mov esi, dword [ebx]
sub dword [ebp - 4], esi
xor esi, edx
add dword [ebp - 4], ebx
mov dword [edi], esi
mov dword [ebp - 4], 0x4b7cd4a1
add edi, 0x9a1b799f
sub edi, 0x9a1b799b
add ebx, 0x53c37371
add ebx, 0xac3c8c93
loop 0x4122e5
add eax, 0xcf2a21db
add eax, 0x30d70ba0
xor ebx, ebx
add ebx, eax
add eax, 0x3466863f
sub eax, 0x3466863a
mov ecx, 0x7e3c3d0d
add ecx, 0x8203c2f3
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40c739
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40c748
pop dword [ebp - 0x44]
mov eax, 0x4086a941
add eax, 0xbfba1e07
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x374ee
push 0
mov eax, 0x712b963a
add eax, 0x8f155a56
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x91d91826
add ecx, 0x6e272b1d
mov edi, eax
mov edx, 0x8ae532e9
add edx, 0x755c7717
add edx, dword [ebp - 0x44]
mov esi, 0x9bcc83fb
sub dword [ebp - 0x2c], 0x65d4a9a7
mov ebx, dword [edx]
sub dword [ebp - 0x24], edi
sub ebx, esi
sub dword [ebp - 0x14], ecx
mov dword [edi], ebx
xor dword [ebp - 0x1c], 0xec9b26cb
add edi, 0x486be6a9
add edi, 0xb794195b
add edx, 0xa0cc0fec
add edx, 0x5f33f018
loop 0x40c7a1
add eax, 0x8cc98a7b
add eax, 0x73377564
xor ebx, ebx
add ebx, eax
add eax, 0x49d40d3e
add eax, 0xb62bf2c7
mov ecx, 0x39d79b66
add ecx, 0xc668649a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1044e20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28000]
push edi
jmp 0x1044e3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1044e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1044e30
mov eax, 1
add ebx, ebx
jne 0x1044e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1044e48
jne 0x1044e64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1044e48
xor ecx, ecx
sub eax, 3
jb 0x1044e78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1044eea
mov ebp, eax
add ebx, ebx
jne 0x1044e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1044e90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1044eb4
inc ecx
add ebx, ebx
jne 0x1044ea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1044e95
jne 0x1044eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1044e95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1044ed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1044ec5
jmp 0x1044e36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1044ed4
add edi, ecx
jmp 0x1044e36
pop esi
mov edi, esi
mov ecx, 0x232
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1044ef2
cmp byte [edi], 1
jne 0x1044ef2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x1044ef7
lea edi, [esi + 0x40000]
mov eax, dword [edi]
or eax, eax
je 0x1044f6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5ea7c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5ebc8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1044f24
mov ecx, edi
jns 0x1044f53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5ebd0]
or eax, eax
je 0x1044f69
mov dword [ebx], eax
add ebx, 4
jmp 0x1044f41
call dword [esi + 0x5ebcc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1044fa0
cmp al, 0xef
ja 0x1044f93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1044f75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1044f82
mov ebp, dword [esi + 0x5ebd4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x1044fd4
sub esp, 0xffffff80
jmp 0x1003689
Function at 0x401920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401935
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401976
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401972
nop word [eax + eax]
cmp esi, edx
jae 0x401976
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401960
cmp esi, edx
jb 0x40197b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4021f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f480
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x496534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
je 0x40233e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40233e
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
lea eax, [edi + 4]
push ecx
push str.ConnectionGUID
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00402690
test eax, eax
je 0x40226b
mov eax, dword [eax + 4]
mov dword [ebx], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push str.ConnectionGUID
push dword [edi]
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402328
push dword [ebp + 0xc]
call fcn.00433269
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.ConnectionGUID
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4022f5
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push str.ConnectionGUID
mov dword [ebx], edi
call fcn.00402620
mov dword [eax], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 0x80010080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x80010001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4047bc
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0044e876
add esp, 8
push 0x4855f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4857e0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.DebugSettings.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x486438
push dword [ebp - 0x418]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.00401ff0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f866
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x254], eax
xor eax, eax
push eax
push 0x486438
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004037c0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
jne 0x4053ff
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40539b
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0044e876
add esp, 8
push 0x4855f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push 0x4857e0
push eax
call esi
push str.DebugSettings.ini
lea eax, [ebp - 0x218]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xfffe
push 8
push eax
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24c], esi
test esi, esi
je 0x40539b
lea eax, [ebp - 0x218]
push eax
push 0x7fff
push esi
push str.Non_Display_Message
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov eax, esi
movzx eax, word [eax]
test ax, ax
je 0x405387
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405346
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004037c0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0x14]
call fcn.004054a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x405341
push dword [ebp - 0x24c]
push 0
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 7
xor eax, eax
mov dword [ebp - 0x234], 7
push str.MSG_END
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.004037c0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x14]
call fcn.00402e80
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4053ff
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004038d0
mov esi, dword [ebx + 0x14]
cmp esi, dword [ebx + 0x18]
je 0x40544f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [eax]
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x405426
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00403440
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x254]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x405492
add esi, 0x18
cmp esi, dword [ebx + 0x18]
jne 0x405410
mov ebx, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x405472
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004038d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
jmp 0x405454
Function at 0x406460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0043b64b