joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41899c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0040b930
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4189d8
call fcn.00418bb7
mov dword [esi + 0xc], 1
jmp 0x4189dd
call fcn.00418bb7
cmp dword [esi], 0
je 0x418a26
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x418a00
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040424a
jmp 0x418a11
push 0xff
mov ecx, esi
call fcn.00401850
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040426d
jmp 0x418a4a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x418a4a
push dword [esi]
push dword [ebp - 4]
call fcn.00415901
pop esi
leave
ret 0xc

Function at 0x418b0e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00418bb7
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x418b56
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040424a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040426d
jmp 0x418b61
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00415901
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x428369
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4283be
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4283b9
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4283a3
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4283ab
cmp edx, ebx
jne 0x4284f9
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x42837a
add eax, dword [eax + 4]
jmp 0x428367
mov dword [ebp + 0xc], ebx
jmp 0x4283c9
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4283e1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4283ff
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42845d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x428444
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42844d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x428457
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x428439
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4283c3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4284aa
dec eax
je 0x4284a1
sub eax, 3
je 0x428498
mov dword [ebp - 4], 0x40
jmp 0x4284c7
mov dword [ebp - 4], 4
jmp 0x4284ad
mov dword [ebp - 4], 0x20
jmp 0x4284ad
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4284f9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x428479
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00427d0a
inc ebx
cmp al, 0xdd
jge 0x4284ed
push dword [ebp + 0x14]
jne 0x428504
push 1
push esi
call edi
mov eax, esi
jmp 0x428505
push 0x8000
push ebx
push esi
call dword [ebp - 8]
rcr byte [edi + 0x5e], 0x5b

Function at 0x429041
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esi, 0xfff92985
push dword [esi - 0x6d57a3a]
invalid
Function at 0x4298a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
clc
invalid
invalid
cmp al, 0xc6
test dword [eax + edi*8 - 1], edi
push dword [eax]
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.00427d1a
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.00427c7b
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x429c82

Function at 0x446b08
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
test esi, esi
jne 0x446b20
call fcn.0041159d
mov esi, dword [eax + 0xc]
push 0x55701c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x446b76
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x446b75
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x446b56
xor esi, esi
jmp 0x446b6c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00446b7c
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x508f1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x508f35
mov edi, dword [esi + 0xc]
jmp 0x508f75
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x508f4e
call fcn.00411f91
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x508f63
call fcn.00411f91
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x508f75
call fcn.00411f91
call fcn.0041159d
cmp dword [eax + 0x3c], 0
je 0x508f8a
push edi
mov ecx, ebx
call fcn.0050883f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050914d
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x508fad
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x508fb6
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x537834
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59eed8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0052c243
mov dword [ebp - 0x14], eax
cmp dword [0x5a6968], edi
jne 0x537925
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x5378b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x537a05
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x537a05
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x537a05
push eax
call ebx
push 0x578564
push esi
mov dword [0x5a6968], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x578574
push esi
mov dword [0x5a696c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5a6970], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a6978], eax
test eax, eax
je 0x537922
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a6974], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53794a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53793d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x53795f
push 4
pop eax
jmp 0x537a07
cmp dword [ebp - 0x14], edi
je 0x53795f
push dword [0x5a6968]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x537944
mov eax, dword [0x5a6974]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x5379bd
cmp dword [0x5a6978], esi
je 0x5379bd
push eax
call ebx
push dword [0x5a6978]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5379bd
test eax, eax
je 0x5379bd
call ecx
test eax, eax
je 0x5379b2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5379b2
test byte [ebp - 8], 1
jne 0x5379bd
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x5379ed
mov eax, dword [0x5a696c]
cmp eax, esi
je 0x5379ea
push eax
call ebx
test eax, eax
je 0x5379ea
call eax
mov edi, eax
test edi, edi
je 0x5379ea
mov eax, dword [0x5a6970]
cmp eax, esi
je 0x5379ea
push eax
call ebx
test eax, eax
je 0x5379ea
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5a6968]
call ebx
test eax, eax
je 0x537a05
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x537a07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523744
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100062fa
pop dword [ebp - 0x4c]
mov eax, 0x3b37c716
add eax, 0xd4c89be4
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3b040
push 0
mov eax, 0xc8a738ac
sub eax, 0xb8a5f848
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4ff9
mov edi, eax
mov esi, 0x2f242d4a
sub esi, 0x1f22a74a
add esi, dword [ebp - 0x4c]
mov ebx, 0x61f71e86
add ebx, 0xbb618c2c
mov edx, dword [esi]
xor dword [ebp - 0xc], 0xbad9342e
sub edx, ebx
mov dword [ebp - 8], 0x8bf5b043
mov dword [edi], edx
xor dword [ebp - 0x34], 0x6ee5783d
add edi, 0x38c3cc86
add edi, 0xc73c337e
add esi, 0xf4859df3
sub esi, 0xf4859def
loop 0x10006353
add eax, 0x914a67c3
sub eax, 0x9149350c
xor ebx, ebx
add ebx, eax
add eax, 0x2746102c
add eax, 0xd8b9efd9
mov ecx, 0x7f3491ba
add ecx, 0x90cb6e46
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1003e1a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
mov esi, 0x2c8
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1003f25
push 3
pop ecx
cmp dword [ebp - 0xc], ecx
jne 0x1003f25
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
push ebx
mov eax, dword [ebp - 4]
mov edi, dword [ebp + eax*8 - 0x38]
push 0x1001e5c
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003ee9
push edi
call fcn.01003cfc
push 0x20
push 0x1001e78
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
inc dword [ebp - 4]
cmp dword [ebp - 4], 6
jb 0x1003ebb
cmp dword [ebp - 8], esi
pop ebx
jae 0x1003f0d
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], eax
push esi
lea eax, [ebp - 0x304]
push eax
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
leave
ret 8

Function at 0x1003f2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push 0x1001d88
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1003f9f
push ebx
xor ebx, ebx
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc ebx
test esi, esi
jne 0x1003f95
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.01003e1a
jmp 0x1003f57
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
cmp esi, 2
jne 0x1003fa6
xor esi, esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x401ef4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
mov esi, dword [ebp - 4]
xor edx, edx
inc edx
mov ecx, 0x104
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or edx, eax
jge 0x401f30
push ecx
lea ecx, [ebp - 4]
call fcn.004017a3
mov esi, dword [ebp - 4]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov ebx, eax
lea ecx, [ebp - 4]
neg ebx
push 0xffffffffffffffff
sbb bl, bl
call fcn.0040480b
add bl, 1
je 0x401f57
mov ebx, 0x80004005
jmp 0x402004
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.00402573
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.00402544
mov esi, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x401f7f
mov eax, dword [esi - 0xc]
jmp 0x401f81
mov eax, ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.004024bb
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.00407b76
test al, al
jne 0x401fc1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x50
je 0x401fbe
cmp ebx, 0xb7
jne 0x401fe3
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x401ffa
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.00402544
mov ebx, eax
lea ecx, [edi - 0x10]
mov dword [ebp - 8], ebx
call fcn.004019b6
jmp 0x401f75
test ebx, ebx
jle 0x401ff0
movzx ebx, bx
or ebx, 0x80070000
lea ecx, [edi - 0x10]
call fcn.004019b6
jmp 0x402004
lea ecx, [edi - 0x10]
call fcn.004019b6
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.004019b6
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402015
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x40203c
mov eax, 0x80070057
jmp 0x4020ce
push edi
mov ecx, esi
call fcn.004016c1
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004169b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x4020bd
movzx ecx, bl
cmp ecx, 0x26
jne 0x402081
mov edx, str.ProgramFiles
jmp 0x40208b
cmp ecx, 0x1c
jne 0x4020ac
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00402328
push eax
mov ecx, esi
call fcn.0040164a
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4020b9
xor eax, eax
inc eax
jmp 0x4020cd
mov eax, edi
jmp 0x4020cd
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004048d6
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret
Function at 0x402c91
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402cc8
lea esi, [edi + 4]
test esi, esi
je 0x402cc8
call fcn.00403d9a
test al, al
je 0x402cc8
mov ecx, edi
call fcn.00403d9a
test al, al
je 0x402cc8
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x402cca
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4046ba
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4046ac
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4046a8
cmp esi, ecx
jae 0x4046ac
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x404696
cmp esi, ecx
jb 0x4046b0
xor eax, eax
jmp 0x4046b9
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404f76
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.00405b93
mov esi, dword [ebp - 4]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi - 0xc], eax
je 0x405064
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call edi
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call edi
push esi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7e], al
call edi
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x7f], al
call edi
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x84], al
call edi
test eax, eax
lea edi, [ebx + 0x80]
mov edx, 0x104
setne al
xor ecx, ecx
mov byte [ebx + 0x85], al
inc ecx
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x405040
push edx
mov ecx, edi
call fcn.004017a3
mov edx, 0x104
push esi
push edx
push dword [edi]
push str.ZoneAlarmUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040480b
jmp 0x405087
lea ecx, [ebx + 0x80]
mov byte [ebx + 0x7c], 1
push str.ZoneAlarmUpdate.log
mov word [ebx + 0x7e], 1
mov word [ebx + 0x84], 0x100
call fcn.004048d6
cmp byte [ebx + 0x7d], 0
je 0x405091
mov byte [ebx + 0x7e], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov edx, dword [eax + 0x43f8b0]
mov ecx, dword [eax + 0x43f8b4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4050ff
cmp ecx, 0xa
ja 0x4050ff
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.00405b93
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x4050e2
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x4050e5
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004019b6
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x50
jb 0x4050a0
call fcn.00407930
lea ecx, [esi - 0x10]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], edx
call fcn.004019b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret