joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429890
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0x18]
lea esi, [edi + 0x18]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0
test al, al
jne 0x4298d6
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [esi], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.004043d0
test eax, eax
je 0x429a48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push dword [edi + 0x24]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.00408700
mov esi, dword [ebp - 0x14]
add esp, 0x10
call fcn.004043d0
test eax, eax
je 0x429a48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push esi
call fcn.00403470
test al, al
jne 0x429979
test esi, esi
jne 0x429953
xor ecx, ecx
jmp 0x42996f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429960
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004035e0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4299a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x34], 0
je 0x4299ef
mov eax, dword [edi + 0x24]
test eax, eax
je 0x429a48
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4299e6
test dx, dx
je 0x4299e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4299e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4299c0
xor eax, eax
jmp 0x4299eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4299fa
push dword [ebp + 8]
lea ecx, [edi + 0x24]
call fcn.00409440
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x429a16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x18]
test al, al
jne 0x429a34
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x18]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402570
int3
Function at 0x42ab80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c402b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x507074]
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, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x42ad35
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x42abf8
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x42abf0
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42ac04
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ac4a
xor al, al
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.004965ce
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x42acce
lea ecx, [ebp - 0x21c]
call fcn.0042ad40
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x42ac89
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x42ac80
movzx eax, word [ecx]
test ax, ax
je 0x42aca2
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42ac93
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42ad04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42ad04
cmp word [esi], 0
je 0x42acdd
add esi, 2
cmp word [esi], 0
jne 0x42acd4
movzx eax, word [ecx]
test ax, ax
je 0x42acff
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42acf0
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42ad10
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004035e0
mov al, 1
jmp 0x42ac2c
call fcn.00496a9e
int3
Function at 0x432850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c546d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
je 0x4328aa
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebx + 0x10], 1
mov dword [ebp - 0x10], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x432960
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00432640
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x432903
cmp dword [ebp + 0x10], eax
je 0x432903
mov esi, 0x2ee2
jmp 0x43291b
test esi, esi
jne 0x43291b
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x432919
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43294a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 0x10
push 0x80004005
call fcn.00402570
int3
Function at 0x43ead0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7925
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004043d0
test eax, eax
je 0x43ec35
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0043faa0
or esi, 0xffffffff
test al, al
jne 0x43eb37
xor bl, bl
jmp 0x43ec00
mov edi, dword [edi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], eax
call fcn.004043d0
test eax, eax
je 0x43ec35
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], edi
call fcn.00409440
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x43eba1
xor bl, bl
jmp 0x43ebc6
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push dword [ebp + 0x10]
lea edx, [ebp + 0xc]
mov dword [ebp + 8], 4
push edx
push 0
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43ebd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43ec00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43ec1f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402570
int3
Function at 0x43ef30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c799d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x43f124
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0043faa0
or edi, 0xffffffff
test al, al
jne 0x43ef97
xor bl, bl
jmp 0x43f0b3
mov esi, dword [esi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x43f124
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call fcn.00409440
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43f077
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 0
push dword [ebx]
mov dword [ebp + 8], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43f077
mov eax, dword [ebp + 8]
test eax, eax
je 0x43f077
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496973
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
push eax
push esi
push 0
push 0
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43f0e8
mov byte [ebp - 4], 4
push esi
call fcn.0049696e
add esp, 4
mov dword [ebp + 0xc], 0
xor bl, bl
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43f08b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43f0b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x43f0d2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f0f0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004035e0
mov byte [ebp - 4], 4
push esi
call fcn.0049696e
add esp, 4
mov dword [ebp + 0xc], 0
mov bl, 1
jmp 0x43f079
push 0x80004005
call fcn.00402570
int3
Function at 0x440500
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], 0
jne 0x440516
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
je 0x44057a
cmp byte [esi + 0x50], 0
jne 0x44057a
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x58]
push eax
push 5
call edx
test al, al
je 0x44053d
cmp dword [esp + 4], 0
je 0x44057a
call fcn.00420680
test al, al
je 0x440551
mov ecx, esi
pop esi
add esp, 4
jmp fcn.00441ce0
push edi
push 0
push 0
push esi
push 0x442ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, dword [esi + 0x64]
je 0x440579
mov edx, dword [esi + 0x60]
lea ecx, [esi + 0x60]
call dword [edx + 4]
mov dword [esi + 0x64], edi
pop edi
pop esi
pop ecx
ret

Function at 0x4415c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c836e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x10], 0
xor edi, edi
movzx eax, word [ebp + 0xc]
mov esi, dword [0x508e2c]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x441638
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441638
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x441638
push dword [ebp + 0xc]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.004043d0
test eax, eax
je 0x44172e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x44172e
test ebx, ebx
jne 0x44167d
test edi, edi
jne 0x44173d
mov eax, dword [ecx]
push 1
push edi
call dword [eax]
test eax, eax
je 0x441738
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
test edi, edi
js 0x44173d
cmp edi, dword [esi - 8]
jg 0x44173d
mov dword [esi - 0xc], edi
mov byte [esi + edi], 0
test edi, edi
je 0x4416de
test esi, esi
je 0x4416ce
push edi
test ebx, ebx
je 0x4416c3
push ebx
push esi
call fcn.00498000
add esp, 0xc
jmp 0x4416de
push 0
push esi
call fcn.00498580
add esp, 0xc
call fcn.0049b9dd
mov dword [eax], 0x16
call fcn.0049b8df
mov dword [ebp - 4], 3
mov ecx, esi
mov ebx, dword [ebp + 8]
mov edx, ebx
push 0xfde9
call fcn.0040d740
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x441718
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
push 0x80004005
call fcn.00402570
call fcn.00402590
push 0x80070057
call fcn.00402570
int3
Function at 0x4450e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9066
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 4
lea esi, [edi + 0x30]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], 0x4e1614
mov dword [edi + 0x24], 0x4e5178
mov dword [edi], 0x4e51ac
mov dword [edi + 0x20], 0x4e5180
mov dword [edi + 0x24], 0x4e517c
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov byte [edi + 0x38], 0
mov dword [edi + 0x40], eax
mov al, byte [ebp + 0x14]
mov dword [edi + 0x44], 2
mov byte [edi + 0x48], al
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x446ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c972d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], 0x4df930
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x446d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x446d66
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x446d64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x446d66
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4df930
test edi, edi
je 0x446d86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
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 4

Function at 0x446da0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9775
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x446ee3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
mov ebx, 0x100
push 0x200
call fcn.00496973
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x446e7e
add ebx, ebx
mov byte [ebp - 4], 1
push edi
call fcn.0049696e
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496973
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x446e27
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446e83
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004035e0
mov byte [ebp - 4], 1
push edi
call fcn.0049696e
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x446ecf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402570
int3
Function at 0x450460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cafd5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
movzx eax, word [ebp + 0xc]
xor edi, edi
mov esi, dword [0x508e2c]
push 0xa
push eax
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4504ce
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4504ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4504ce
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4505ee
mov esi, dword [sym.imp.USER32.dll_GetDC]
push 0
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x45055d
imul eax, eax, 0x64
cmp eax, 0x25e0
jl 0x45055d
cmp eax, 0x38a0
jge 0x450518
mov esi, 0x20
jmp 0x450562
push 0
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
push 0x5a
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x60
je 0x45055d
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4e8310]
divsd xmm0, qword [0x4e8318]
addsd xmm0, qword [0x4e82f8]
cvttsd2si esi, xmm0
jmp 0x450562
mov esi, 0x18
push 0
push esi
push esi
push 1
push edi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x4505ee
push 0
push esi
push esi
push 0x30000
push 1
push dword [ebp - 0x10]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov edi, eax
test edi, edi
je 0x4505ee
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 1
mov esi, eax
push 0xf7
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.0040a060
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4505ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4565c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbfc6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 0xc]
mov byte [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x14], edi
call fcn.004043d0
test eax, eax
je 0x456694
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 0x18]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x14], edi
call fcn.004043d0
test eax, eax
je 0x456694
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
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
push 0x80004005
call fcn.00402570
int3

Function at 0x4567f0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0x14]
add eax, 4
push eax
push 0
push esi
push 0x456e00
push 0
push 0
call edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov ecx, dword [ecx + 4]
mov dword [esi + 0x24], ecx
test eax, eax
je 0x45684c
nop
mov esi, dword [esi + 4]
test esi, esi
je 0x456854
mov eax, dword [esi + 0x14]
add eax, 4
push eax
push 0
push esi
push 0x456e00
push 0
push 0
call edi
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x24], ecx
test eax, eax
jne 0x456820
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
ret