joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c0a0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call 0x100b8dde
test eax, eax
js 0x1000c196
cmp word [ebp - 0x34], 6
je 0x1000c196
lea eax, [ebp - 4]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000c14d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100040ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c144
cmp dword [ebp - 0xc], eax
je 0x1000c144
push 0x100040c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1000c144
push 0x100040cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000c144
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a8504]
call esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
cmp esi, 0x78
je 0x1000c165
cmp esi, 0xdc
jb 0x1000c196
cmp esi, 0x140
jae 0x1000c196
push 0x3594
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x1000c196
mov ecx, eax
mov edx, 0x20
and ecx, 0x1f
sub edx, ecx
push esi
mov dword [eax + edx - 4], edx
lea ecx, [eax + edx]
call fcn.1000ca80
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100484c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x260]
mov eax, dword [eax + 0x14]
cmp eax, 4
jl 0x100484e8
cmp eax, 6
jge 0x100484f2
test dword [edi + 0x7c], 0xc00
jne 0x100484f2
or dword [edi + 0x250], 0x2000
test dword [edi + 0x7c], 0x400
jne 0x10048505
or dword [edi + 0x250], 0x4000
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x7f4]
test eax, eax
je 0x100485a6
movzx eax, ax
mov dword [ecx + 0x13814], eax
test dword [edi + 0xcc], 0x80000
je 0x1004853b
mov eax, dword [edi + 0x7f4]
or dword [eax + 0x12fbc], 0x40
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0x10004090
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100485b0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1000aaa0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100485b0
cmp dword [ebp - 0xc], 4
jne 0x100485b0
cmp dword [ebp - 0x10], esi
je 0x100485b0
mov eax, dword [edi + 0x7f4]
or dword [eax + 0x12fbc], 0x40
jmp 0x100485b0
mov dword [ecx + 0x13814], 1
mov eax, dword [edi + 0x7f4]
or dword [edi + 0x7f8], 0x800
mov dword [edi + 0x2d8], 0x11
mov dword [edi + 0x2dc], 6
mov dword [eax + 0x1328c], 0xffffffff
fld dword [edi + 0xb4]
fldz
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x10048624
fld dword [edi + 0xbc]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x10048624
fld dword [edi + 0xb8]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x10048624
fld dword [edi + 0xc0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x100486bc
jmp 0x10048626
fstp st(0)
mov eax, dword [edi + 0x7f4]
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], 0
or dword [eax + 0x12fbc], 2
mov eax, dword [edi + 0x7f4]
mov dword [eax + 0x1328c], 0xfffffff0
lea eax, [ebp - 4]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100486bc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1000aab0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100486bc
cmp dword [ebp - 0xc], 4
jne 0x100486bc
cmp dword [ebp - 8], esi
je 0x100486bc
mov eax, dword [edi + 0x7f4]
and dword [eax + 0x12fbc], 0xfffffffd
mov eax, dword [edi + 0x7f4]
mov dword [eax + 0x1328c], 0xffffffff
mov eax, dword [edi + 0x7f4]
mov dword [edi + 0x800], 0
mov dword [edi + 0x804], 0
mov dword [edi + 0x808], 0x100a2000
mov dword [eax + 0x11b58], 0
mov ecx, dword [edi + 0x7f4]
mov eax, dword [edi + 0x260]
mov dword [edi + 0x7ec], 0
mov dword [edi + 0x7f0], 0xffffffff
pop edi
mov dword [ecx + 0x1381c], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1009bae0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1009bb1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1009bb16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1009bb20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1009bb06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1009bbf0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1009bc21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1009bc21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1009bc21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4111e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5896ab
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x5f3004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x5fcad0], 0x5cfbb0
mov dword [0x5fcad8], 0x5cfdb4
push 0
mov dword [ebp - 0x14], 0x5fcad0
mov dword [0x5fcaec], 1
mov dword [0x5fcae8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x41148e
lea eax, [ecx + 0x400000]
mov dword [0x5fcae4], ecx
mov dword [0x5fcae0], eax
mov edx, 0x1555
mov eax, dword [0x5fcae8]
mov dword [0x5fcadc], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5fcae8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5fcae8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5fcae8]
add ecx, eax
sub edx, 1
jne 0x411274
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x5fcaf0
mov dword [ebp - 0x18], 0x5fcaf0
mov dword [ebp - 0x1c], 0x5fcaf0
mov dword [0x5fcaf0], 0x5ceba4
mov dword [0x5fcaf4], edx
mov dword [0x5fcaf8], edx
mov byte [ebp - 4], 1
mov dword [0x5fcaf0], 0x5ceb40
mov dword [0x5fcafc], edx
mov dword [0x5fcb04], edx
mov dword [0x5fcb00], edx
mov dword [0x5fcb08], 0x40
mov byte [ebp - 4], 2
mov dword [0x5fcb08], 0x80
mov byte [ebp - 4], 5
mov dword [0x5fcb0c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5fcb20
mov dword [ebp - 0x20], 0x5fcb20
call esi
mov byte [ebp - 4], 7
mov dword [0x5fcb38], 0
mov byte [ebp - 4], 8
push 0x5fcb44
mov dword [ebp - 0x24], 0x5fcb44
call esi
mov byte [ebp - 4], 9
mov dword [0x5fcb5c], 0x3e8
mov dword [ebp - 0x28], 0x5fcb70
mov dword [ebp - 0x2c], 0x5fcb70
mov dword [0x5fcb70], 0x5ceba4
mov dword [0x5fcb74], 0
mov dword [0x5fcb78], 0
mov byte [ebp - 4], 0xa
mov dword [0x5fcb70], 0x5ceb40
mov dword [0x5fcb7c], 0
mov dword [0x5fcb84], 0
mov dword [0x5fcb80], 0
mov dword [0x5fcb88], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x5fcb88], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x5fcb64], 0x3e80
mov dword [0x5fcb68], 1
mov dword [0x5fcb6c], 0
lea eax, [eax*2 + 2]
mov dword [0x5fcb60], eax
mov byte [ebp - 4], 0xe
push 0x5fcb8c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x5fcba4
call fcn.00410240
mov byte [ebp - 4], 0x10
mov dword [0x5fcb10], 0
mov dword [0x5fcbcc], 0
movsd xmm0, qword [0x5d04e0]
movsd qword [0x5fcb18], xmm0
xorps xmm0, xmm0
mov dword [0x5fcbd0], 0
mov dword [0x5fcbd4], 0
mov dword [0x5fcbd8], 0
mov dword [0x5fcb14], 0
movq qword [0x5fcb3c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x5fcad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0056cc39
int3
Function at 0x411f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x411f4f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x412025
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x412025
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41201c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x412000
cmp edi, 1
jne 0x411fc5
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x412017
cmp edi, 2
jne 0x411fd8
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x412017
cmp edi, 4
jne 0x411fe9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x412017
cmp edi, 8
jne 0x412000
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x412017
test edi, edi
jle 0x412017
push edi
mov ecx, esi
call fcn.00413e80
push edi
push ebx
push eax
call fcn.00569cc0
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x412fb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589985
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x5f3004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41317a
cmp word [esi], 0
je 0x41317a
lea ecx, [ebp - 0x38]
call fcn.00405090
mov dword [ebp - 4], 0
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x413153
cmp word [esi + 2], 0
je 0x413062
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413014
sub ecx, edi
mov eax, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x413062
cmp word [esi + ecx*2 - 4], 0x3a
je 0x413062
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00415a20
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x41305f
cmp dword [ebp - 0x14], esi
jne 0x41305c
movzx eax, word [0x5cca7c]
mov esi, 0x5cca7c
jmp 0x413062
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi]
movzx eax, ax
test ax, ax
je 0x413153
cmp eax, 0x5c
jne 0x41307e
cmp word [esi + 2], 0
je 0x413153
cmp word [esi + 2], 0x3a
jne 0x4130a2
movzx eax, word [esi + 4]
test ax, ax
je 0x413153
cmp eax, 0x5c
jne 0x4130a2
cmp word [esi + 6], 0
je 0x413153
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x413153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413153
cmp eax, 3
jne 0x41314f
push 0x5c
push esi
call fcn.0056954b
mov edx, eax
add esp, 8
test edx, edx
je 0x41314f
cmp word [edx + 2], 0
jne 0x413101
sub edx, 2
cmp edx, esi
jb 0x41314f
nop
cmp word [edx], 0x5c
je 0x413101
sub edx, 2
cmp edx, esi
jae 0x4130f0
xor esi, esi
jmp 0x413158
lea ecx, [ebp - 0x64]
call fcn.00405090
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.00415a20
lea ecx, [ebp - 0x64]
call fcn.00403b60
mov ecx, eax
call fcn.00412fb0
test eax, eax
je 0x413143
push 0
push esi
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00404500
jmp 0x413158
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00404500
xor esi, esi
jmp 0x413158
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00404500
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5899cd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x5f3004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x413322
cmp word [ecx], 0
je 0x413322
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x7c], 0x44
test eax, eax
js 0x413209
or dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x38]
call fcn.00413f70
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41328f
xor esi, esi
jmp 0x4132b2
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4132ed
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWConstString.virtual_12
jne 0x4132e8
mov ecx, 0x5fcad8
call fcn.00414a10
jmp 0x4132ed
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413340
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589a00
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5f3004]
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
test esi, esi
je 0x4134af
cmp word [esi], 0
je 0x4134af
lea ecx, [ebp - 0x244]
call fcn.00405090
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x4133b7
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x4133f0
test ax, ax
je 0x413422
cmp word [esi + 2], 0x3a
jne 0x413422
cmp word [esi + 4], 0x5c
jne 0x413422
push 0x5c
push esi
call fcn.0056954b
add esp, 8
test eax, eax
je 0x413422
cmp eax, esi
jbe 0x41340e
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.00415a20
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x413445
cmp dword [ebp - 0x220], edi
jne 0x41343b
mov edi, 0x5cca7c
jmp 0x413445
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x413490
cmp word [edi], 0
je 0x413490
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x413490
cmp word [edi], 0
je 0x41346e
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x413499
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x413499
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00404500
mov eax, esi
jmp 0x4134b1
xor eax, eax
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.00567dde
mov esp, ebp
pop ebp
ret

Function at 0x41f606
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x41f64b
call fcn.004283a6
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f648
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f692
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x41f66e
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x59a9ec]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x41f68f
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x59a9ec]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4232e2
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x423335
push esi
push dword [ebp + 8]
call fcn.004234cb
mov edi, eax
test edi, edi
je 0x423330
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x423330
mov eax, dword [ebp - 8]
jmp 0x423347
mov eax, dword [ebp + 0x10]
jmp 0x423347
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x42a594
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x42a5d3
call fcn.004283a6
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a5d3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a5db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0048410a
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42afd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42b062
cmp dword [esi + 0x20], 0
je 0x42b062
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42b062
cmp dword [ebp + 8], 0
je 0x42b062
xor edi, edi
mov ebx, edi
call fcn.004283a6
push 0x59cec8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x42b046
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42b062
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00484c04
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42b05e
mov ecx, esi
call fcn.0042ad74
mov eax, edi
jmp 0x42b064
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43a6d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x43a6ec
call fcn.004283a6
mov esi, dword [eax + 0xc]
push 0x59db5c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x43a72e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43a72e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43a72e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0043a737
jmp 0x43a730
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x45f7b3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x58a708
call fcn.005684a6
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x45f7d9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45f833
lea ecx, [ebp - 0x10]
call fcn.0041d0e8
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x59a9ec]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00575243
push eax
call fcn.0041d491
add esp, 0x14
test esi, esi
je 0x45f826
push esi
call fcn.005749c6
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00416cf0
mov eax, ebx
call fcn.00568474
ret 8

Function at 0x48523c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x485267
cmp dword [edi + 0x80], 0
jne 0x485267
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.004283a6
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004854da
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x485294
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.004283a6
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4852c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004852da
pop edi
pop esi
pop ebx
pop ebp
ret 8