joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003327
Capabilities:
Create process on windows
Query environment variable
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x1005020]
push ebx
mov dword [ebp + 0x7f4], eax
xor eax, eax
push esi
push edi
xor ebx, ebx
mov word [ebp + 0x1dc], bx
mov ecx, 0x103
lea edi, [ebp + 0x1de]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov edx, 0x81
mov word [ebp + 0x5ec], bx
mov ecx, edx
lea edi, [ebp + 0x5ee]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x2c], bx
mov ecx, edx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x11
xor eax, eax
cmp dword [0x100566c], 1
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
jne 0x10033e3
mov esi, 0x104
push esi
lea eax, [ebp + 0x5ec]
push eax
push 0x1001630
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x5ec]
push eax
push eax
push eax
push 0x1001578
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.01001e1f
add esp, 0x18
test eax, eax
jl 0x1003515
jmp 0x10034b0
mov esi, 0x1005048
push esi
mov edi, 0x208
push edi
lea eax, [ebp + 0x1de]
push eax
mov word [ebp + 0x1dc], 0x22
call fcn.01001a40
test eax, eax
jl 0x1003417
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1003419
xor eax, eax
mov word [ebp + eax*2 + 0x1dc], 0x22
inc eax
cmp word [0x1005250], bx
je 0x100346c
mov word [ebp + eax*2 + 0x1dc], 0x20
inc eax
mov ecx, edi
sub ecx, eax
cmp ecx, 0x7fffffff
ja 0x100346a
push 0x1005250
push ecx
lea eax, [ebp + eax*2 + 0x1dc]
push eax
call fcn.01001a40
cmp eax, ebx
jl 0x100346a
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x100346c
xor eax, eax
push esi
mov word [ebp + eax*2 + 0x1dc], bx
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [eax*2 + 0x1005046]
cmp edi, esi
pop ecx
jbe 0x10034a6
cmp word [edi], 0x5c
je 0x1003493
dec edi
dec edi
cmp edi, esi
ja 0x1003487
cmp edi, esi
jbe 0x10034a6
push esi
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov word [edi], 0x5c
call fcn.010024ba
mov esi, 0x104
call fcn.01002bac
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x820
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1003505
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x78
push dword [0x100503c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push 0x10011e4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x800]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1003515
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x7f4]
pop edi
pop esi
pop ebx
call fcn.01004128
add ebp, 0x7f8
leave
ret 4
Function at 0x1004128
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005020]
jne 0x1004131
ret
jmp 0x1004136
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1005020]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1005684]
test eax, eax
je 0x100415a
call eax
cmp dword [0x1005688], 0
je 0x10041a1
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1005688]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01004128
add ebp, 0x2a8
leave
ret
Function at 0x10041c6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001948
call fcn.010043c0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x100420e
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100420e
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1004227
cmp ecx, 0x20b
je 0x1004214
and dword [ebp - 0x1c], 0
jmp 0x100423b
cmp dword [eax + 0x84], 0xe
jbe 0x100420e
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1004235
cmp dword [eax + 0x74], 0xe
jbe 0x100420e
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x100568c], edi
mov dword [0x1005690], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005680]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100567c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005694], eax
call fcn.010044c6
cmp dword [0x1005030], 0
jne 0x100429b
push fcn.010044c6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010044b4
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005678]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1005674]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x1004300
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x10043af
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x1004341
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x100431c
cmp cx, 0x22
jne 0x1004309
cmp word [eax], 0x22
jne 0x1004327
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1004335
cmp cx, 0x20
jbe 0x1004322
test byte [ebp - 0x54], 1
je 0x100434e
movzx ecx, word [ebp - 0x50]
jmp 0x1004351
cmp word [eax], 0x20
jbe 0x1004327
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x1004341
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.01003fc9
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1004371
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x10043ad
mov eax, esi
call fcn.010043fb
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402150
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 0x402174
xor eax, eax
jmp 0x4021f4
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 0x40218b
xor eax, eax
jmp 0x4021f4
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 0x4021d7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4021d7
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 0x4021ae
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4021e3
xor eax, eax
jmp 0x4021f4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4021f1
xor eax, eax
jmp 0x4021f4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403560
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b740
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5ce000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x218], ecx
push 4
lea ecx, [ebp - 0x214]
call fcn.00401c40
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403db0
mov dword [ebp - 4], 0
push str.._StiGlobal.ini
push 0
push str.ClassicMode
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4035f5
push str.BaseClassic.exe
push 0x5af49c
lea ecx, [ebp - 0x214]
call fcn.00403930
nop
jmp 0x40360b
push str.BaseGray.exe
push str.Base.exe
lea ecx, [ebp - 0x214]
call fcn.00403930
nop
lea ecx, [ebp - 0x214]
call fcn.00402600
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005553b1
add esp, 8
push 0
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.00403680
push 1
mov ecx, dword [ebp - 0x218]
call fcn.00413b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.004029e0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054d2d4
mov esp, ebp
pop ebp
ret
Function at 0x403680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5ce000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.005553b1
add esp, 8
push 0x44
push 0
lea edx, [ebp - 0x258]
push edx
call fcn.0054f1d0
add esp, 0xc
mov dword [ebp - 0x258], 0x44
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4036e7
mov dword [ebp - 0x22c], 1
mov ecx, 7
mov word [ebp - 0x228], cx
push 0x10
push 0
lea edx, [ebp - 0x214]
push edx
call fcn.0054f1d0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x258]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054d2d4
mov esp, ebp
pop ebp
ret 8

Function at 0x40681c
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 0x406861
call fcn.0041924a
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40685e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4068a8
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 0x406884
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57b9a4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4068a5
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x57b9a4]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x412c3e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x56c4cd
call fcn.0054d64b
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x412ce6
push dword [ebp + 8]
call fcn.00412f5d
mov dword [ebp - 0x10], eax
test eax, eax
je 0x412d6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x412ccf
push ecx
call fcn.00426ea1
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412ccf
xor edi, edi
inc edi
jmp 0x412cd9
push dword [ebx]
call fcn.00426eaa
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00412b05
jmp 0x412d6a
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x57b9a4]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x412d62
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.00426ea1
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x412d5c
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412ae1
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.00412ae1
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x412d2a
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00402b40
mov eax, edi
call fcn.0054d619
ret 0x10

Function at 0x412d74
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 0x412dc7
push esi
push dword [ebp + 8]
call fcn.00412f5d
mov edi, eax
test edi, edi
je 0x412dc2
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 0x412dc2
mov eax, dword [ebp - 8]
jmp 0x412dd9
mov eax, dword [ebp + 0x10]
jmp 0x412dd9
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 0x412ddf
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c4fa
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.0054d7d0
mov eax, dword [0x5ce000]
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 edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x412f10
push ebx
push edx
call fcn.00412f5d
mov ebx, eax
test ebx, ebx
jne 0x412e47
push esi
jmp 0x412f38
lea ecx, [ebp - 0x2014]
call fcn.00402000
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x412ecf
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00402dc0
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.00413099
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x412efd
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00404bd8
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402b40
jmp 0x412f3f
push esi
mov ecx, edi
call fcn.00403db0
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x412ef6
test esi, esi
jne 0x412f19
mov esi, 0x57bdf8
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00403db0
mov eax, edi
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.0054d2d4
leave
ret 0x10
Function at 0x41312e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x41317b
push esi
push dword [ebp + 8]
call fcn.00412f5d
mov edi, eax
test edi, edi
je 0x413203
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x413203
mov eax, dword [ebp + 0x14]
push 2
pop ecx
lea eax, [eax*2 + 1]
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.00426ea1
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x4131d5
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x4131ae
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57b9a4]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.00426eaa
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x413536
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x41357e
call fcn.0041924a
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41357e
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41358b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x4135c7
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x4135aa
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x4135b3
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x4135c5
test di, di
jne 0x4135c5
test dx, dx
je 0x4135c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4135cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x4135f7
cmp dword [esi + 0x80], 0
jne 0x4135f7
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.0041924a
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413627
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413627
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00413893
jmp 0x413629
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x413630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0041924a
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413670
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413670
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00413678
jmp 0x413672
xor eax, eax
pop edi
pop esi
pop ebp
ret 8