joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499ea5
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 0x499fbd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x499fbd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ccf74
mov esi, eax
test esi, esi
je 0x499fbd
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 0x499fbd
mov ecx, esi
call fcn.00499e30
cmp edi, eax
jge 0x499fbd
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 0x499f43
mov dword [esp + 0x34], 1
jmp 0x499f9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x499fbd
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.004993e0
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 0x4a5570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x64f33c]
xor edx, edx
cmp eax, edx
jne 0x4a5596
xor eax, eax
mov byte [eax + 0x64f23c], al
inc eax
cmp eax, 0x100
jl 0x4a557e
mov dword [0x64f33c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x64f23c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a5627
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 0x4a55fa
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 0x4a55c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a5630
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 0x4a5683
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 0x4a566a
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 0x4ac000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4da69e
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.004ac920
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x60da2c
call fcn.004cb28a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ac093
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cb28a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ac08c
push 0
mov ecx, eax
call fcn.004a31a0
mov dword [esi + 0xc], eax
jmp 0x4ac095
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ac095
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 0x4cd917
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cd94f
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.004cb9a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cb97c
jmp 0x4cd95b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cf009
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 0x4cf04b
call fcn.004d4ac6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cf04b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cf042
xor eax, eax
jmp 0x4cf053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cf059
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d4ff6
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 0x4d5024
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d5042
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4f5c
jmp 0x4d5042
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d5042
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4f5c
test edi, edi
mov eax, edi
jne 0x4d502c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401460
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x404058], 1
mov dword [0x40405c], 1
mov dword [0x404060], 1
mov dword [0x40406c], 1
mov dword [ebp - 8], 0x400000
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4014ac
xor eax, eax
jmp 0x401560
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x4014ca
xor eax, eax
jmp 0x401560
mov edx, dword [ebp - 0xc]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10b
je 0x4014f0
cmp dword [ebp - 0x10], 0x20b
je 0x401524
jmp 0x40155e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0xe
ja 0x4014fd
xor eax, eax
jmp 0x401560
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x60], 0
je 0x401518
mov dword [ebp - 0x14], 1
jmp 0x40151f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x401560
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0xe
ja 0x401537
xor eax, eax
jmp 0x401560
mov edx, 8
imul eax, edx, 0xe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x70], 0
je 0x401552
mov dword [ebp - 0x1c], 1
jmp 0x401559
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x401560
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4019e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
jmp 0x401a20
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x401a4f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x401a4d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x401a4d
mov eax, dword [ebp - 4]
jmp 0x401a51
jmp 0x401a0e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401a60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x401a80
xor eax, eax
jmp 0x401abb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x401a9b
xor eax, eax
jmp 0x401abb
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x401ab6
xor eax, eax
jmp 0x401abb
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401f00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x404088], 0
jne 0x401f13
jmp 0x401f6c
push 0x404070
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x40408c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f62
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.kernel32.dll_TlsGetValue
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x401f57
cmp dword [ebp - 8], 0
je 0x401f57
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
jmp 0x401f25
push 0x404070
call sub.kernel32.dll_LeaveCriticalSection
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x403203
pop dword [ebp - 0x2c]
mov eax, 0x4a84b62e
add eax, 0xb5bb7bd5
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x96945b25
sub dword [ebp - 0x3c], 0x484215da
mov dword [ebp - 0x38], 0x9a3cdd0b
sub dword [ebp - 0x38], 0x680990c6
mov dword [ebp - 0x34], 0xb813afc8
sub dword [ebp - 0x34], 0x6bc76b9a
mov dword [ebp - 0x30], 0xb1fe5824
sub dword [ebp - 0x30], 0xb1fe5824
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x147f50a
sub eax, 0x107747e
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xc937d456
sub dword [ebp - 0x3c], 0x54c56b00
mov dword [ebp - 0x38], 0xf9a8728f
add dword [ebp - 0x38], 0x47c3eee6
mov dword [ebp - 0x34], 0x6925e2b4
add dword [ebp - 0x34], 0xfa4989b8
mov dword [ebp - 0x30], 0x6eb8c201
add dword [ebp - 0x30], 0x91473dff
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a699
push 0
call eax
mov ecx, 0x5746
mov edi, eax
mov esi, 0x97b27182
add esi, 0x688e9e7e
add esi, dword [ebp - 0x2c]
mov ebx, 0x939431ad
xor dword [ebp - 0xc], eax
mov edx, dword [esi]
mov dword [ebp - 0x14], 0x66c21d59
add edx, ebx
sub dword [ebp - 4], 0xb9a57cbc
mov dword [edi], edx
mov dword [ebp - 0x1c], 0x7f26e497
add edi, 0x20ab9c03
sub edi, 0x20ab9bff
add esi, 4
loop 0x403314
add eax, 0x6a477ff3
add eax, 0x95b9cff8
mov ebx, eax
add eax, 0x4d398a95
sub eax, 0x4d398a90
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1013c94
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101647c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1013d7c
push ebx
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll__mbsrchr]
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
je 0x1013ce8
cmp byte [eax + 1], bl
jne 0x1013ce8
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.01013a71
test eax, eax
jne 0x1013d07
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01013b49
cmp dword [ebp + 0xc], 0x104
jb 0x1013d28
push edi
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1013d78
xor eax, eax
jmp 0x1013d7b
lea eax, [ebp - 0x41c]
push eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1013d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1013d24
lea eax, [ebp - 0x41c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1013d53
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, dword [ebp + 0xc]
ja 0x1013d24
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0xd6e6c6e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3c3b5e35
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40f500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.00403ff0
call fcn.0040d830
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f8a0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f644
push 0xf0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040f8a0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x1c], 0
je 0x40f584
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
xor eax, eax
jne 0x40f56f
xor ecx, ecx
jne 0x40f56f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f62b
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40f620
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040f650
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040f8c0
add esp, 4
movzx edx, al
test edx, edx
jne 0x40f605
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x40f61e
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40f629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x40f634
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f644
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00404230
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.0040b8d0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410670
lea ecx, [ebp - 0x438]
call fcn.0040b8d0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040fee0
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4103fe
call fcn.004031d0
mov dword [ebp - 0x444], eax
jmp 0x410553
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x41042f
call fcn.004031d0
mov dword [ebp - 0x444], eax
jmp 0x410553
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x41045f
call fcn.004031d0
mov dword [ebp - 0x444], eax
jmp 0x410553
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x4104af
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00413070
lea ecx, [ebp - 0x2c]
call fcn.00404850
mov eax, dword [ebp - 0x44c]
jmp 0x410588
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00413010
lea ecx, [ebp - 0x438]
call fcn.0040bf00
test eax, eax
jne 0x4104dc
mov dword [ebp - 0x444], 0x8007000e
jmp 0x410553
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040bf00
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00404230
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x41051e
call fcn.004031d0
mov dword [ebp - 0x444], eax
jmp 0x410553
lea ecx, [ebp - 0x438]
call fcn.0040bf00
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040bf00
push eax
lea ecx, [ebp - 0x18]
call fcn.004106a0
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x410563
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00413070
lea ecx, [ebp - 0x2c]
call fcn.00404850
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00425ae5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411ec0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00411c90
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00411e60
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x411f2b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00411cc0
mov eax, dword [ebp - 0x224]
jmp 0x411fbc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x411f91
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00411ec0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x411f88
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00411cc0
mov eax, dword [ebp - 0x228]
jmp 0x411fbc
mov dword [ebp - 4], 0x100
jmp 0x411f32
lea ecx, [ebp - 0x14]
call fcn.00411da0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00411d40
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00411cc0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00425ae5
mov esp, ebp
pop ebp
ret 4