joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e7c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ab92
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2b4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00431350
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov edx, edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2b0], 1
call fcn.0042e220
push esi
mov edx, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.00409ad0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x42e858
mov eax, dword [eax]
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x30], 8
mov esi, eax
jb 0x42e879
push dword [ebp - 0x44]
call fcn.0044d639
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x42e8a1
push dword [ebp - 0x5c]
call fcn.0044d639
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp esi, 0xffffffff
je 0x42e965
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x42e8d0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [ebp - 0x280], ax
je 0x42e905
lea eax, [ebp - 0x280]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e8f6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a110
mov dword [ebp - 4], 2
movzx eax, byte [0x4acdbc]
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x2bc]
push eax
mov ecx, ebx
call fcn.004314a0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x42e94c
push dword [ebp - 0x2c]
call fcn.0044d639
add esp, 4
lea eax, [ebp - 0x2ac]
push eax
push esi
call edi
test eax, eax
jne 0x42e8d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x42ee30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
jg 0x42ee8c
test eax, eax
je 0x42ee8c
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040a210
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x42fd80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42fe3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x42fe14
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00450d40
push 0x5c
push esi
call fcn.0045031e
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004503c4
add esp, 0x20
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0042fd80
test al, al
je 0x42fe2c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
test al, al
jne 0x42fe40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x430660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a9bf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a5590]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x47ee48
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004018e0
lea eax, [ebp - 0x14]
lea ebx, [edi + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
call fcn.004018c0
push eax
mov dword [ebp - 4], 2
call fcn.00408490
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43072a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x43072a
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x43074f
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.00401810
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00408110
lea eax, [ebx + 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x4c], 0
mov byte [ebx + 0x45], 0
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea ecx, [ebx + 8]
mov dword [ebx + 0x10], ecx
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x4a87d8]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], 0
mov eax, edi
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
Function at 0x433160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
xor bl, bl
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4331df
mov eax, dword [ebp - 0x114]
cmp eax, 6
jne 0x4331cc
cmp dword [ebp - 0x110], 2
jb 0x4331ce
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
ja 0x4331bb
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x445260
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a5590]
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
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x445359
cmp word [ebp - 0x30], 0
jne 0x4452d5
xor ecx, ecx
jmp 0x4452ef
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
jmp 0x4452e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4452e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a110
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x445359
push 1
push str._0_:
lea ecx, [ebp - 0x48]
call fcn.004092c0
cmp word [ebp - 0x30], 0
jne 0x445329
xor ecx, ecx
jmp 0x44533f
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445330
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.004092c0
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00409c80
jmp 0x445379
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x47abfc
mov ecx, esi
mov word [esi], ax
call fcn.0040a110
cmp dword [ebp - 0x34], 8
jb 0x44538a
push dword [ebp - 0x48]
call fcn.0044d639
add esp, 4
mov eax, esi
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.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x4461a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0x2b
push str.http:__www.tune_up.com_link__targetprivacy
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004092c0
push 9
push str.tu_lang
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 5
push 0x47e9dc
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 0xc
push str.tu_product
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 7
push str.AWL2015
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 0xc
push str.tu_version
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 0xd
push 0x47bcf8
lea ecx, [ebp - 0x28]
call fcn.004092c0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x446254
lea eax, [ebp - 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x14], 8
jb 0x446279
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret

Function at 0x4462a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowDC]
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044bdc0
add esp, 4
mov ebx, eax
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x420
lea eax, [ebp - 0x14]
push eax
lea eax, [esi - 1]
mov esi, dword [ebp - 0x18]
push eax
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x3e7
mov dword [ebp - 8], 0x3e7
call dword [sym.imp.USER32.dll_DrawTextW]
test ebx, ebx
je 0x446330
push ebx
call fcn.0044d639
add esp, 4
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 6
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x448350
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x44835c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00448370
Function at 0x461a04
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5590]
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.00452d22
mov dword [ebp - 0x14], eax
cmp dword [0x4a877c], edi
jne 0x461af5
push 0x800
push edi
push 0x4793a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x461a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x461bd5
push 0x4793a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x461bd5
push 0x4793bc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461bd5
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a877c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a8780], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a8784], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a878c], eax
test eax, eax
je 0x461af2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8788], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x461b1a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x461b0d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x461b2f
push 4
pop eax
jmp 0x461bd7
cmp dword [ebp - 0x14], edi
je 0x461b2f
push dword [0x4a877c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x461b14
mov eax, dword [0x4a8788]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x461b8d
cmp dword [0x4a878c], esi
je 0x461b8d
push eax
call ebx
push dword [0x4a878c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x461b8d
test eax, eax
je 0x461b8d
call ecx
test eax, eax
je 0x461b82
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 0x461b82
test byte [ebp - 8], 1
jne 0x461b8d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x461bbd
mov eax, dword [0x4a8780]
cmp eax, esi
je 0x461bba
push eax
call ebx
test eax, eax
je 0x461bba
call eax
mov edi, eax
test edi, edi
je 0x461bba
mov eax, dword [0x4a8784]
cmp eax, esi
je 0x461bba
push eax
call ebx
test eax, eax
je 0x461bba
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a877c]
call ebx
test eax, eax
je 0x461bd5
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x461bd7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c32d
leave
ret
Function at 0x462d7d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045777b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x462db5
xor eax, eax
jmp 0x462de1
cmp esi, dword [ebp - 4]
je 0x462dde
cmp dword [ebp + 0xc], 0
je 0x462dde
push dword [edi + 0x9c]
call fcn.0046298b
push dword [edi + 0x9c]
mov esi, eax
call fcn.00452fd8
pop ecx
pop ecx
cmp esi, eax
je 0x462db1
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x40ec03
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40f468
call fcn.0040f1a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x410c20
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40ec48
cmp eax, esi
jne 0x40ec3b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40ec4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ec1f
xor esi, esi
inc esi
cmp dword [0x410c24], esi
jne 0x40ec5d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40ec97
cmp dword [0x410c24], ebx
jne 0x40ec91
mov dword [0x410c24], esi
push 0x4011c4
push 0x4011b8
call fcn.0040ed7c
pop ecx
pop ecx
test eax, eax
je 0x40ec97
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40ed6c
mov dword [0x41004c], esi
cmp dword [0x410c24], esi
jne 0x40ecba
push 0x4011b4
push 0x4011ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x410c24], 2
test edi, edi
jne 0x40ecc7
xor eax, eax
mov ecx, 0x410c20
xchg dword [ecx], eax
cmp dword [0x410c28], 0
je 0x40ecf3
push 0x410c28
call fcn.0040f000
pop ecx
test eax, eax
je 0x40ecf3
push ebx
push 2
push ebx
mov esi, dword [0x410c28]
mov ecx, esi
call dword [0x41116c]
call esi
push dword [0x410058]
push dword [0x410054]
push dword [0x410050]
call fcn.0040a3af
add esp, 0xc
mov dword [0x410048], eax
cmp dword [0x410060], 0
jne 0x40ed51
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x41004c], 0
jne 0x40ed65
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x410048]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004a0000
jmp 0x40ec03

Function at 0x40eec4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f488
call fcn.0040f1a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ef24
cmp eax, 0xffffffff
je 0x40ef24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40ef1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40ef1d
cmp edx, 0x10000000
jae 0x40ef1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40ef1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ef90
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 0x40efce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40efc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40efd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40efb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10017290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0x10166318
movzx eax, dx
push eax
push dword [0x10184478]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x10184478]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
push dword [0x10184478]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10017315
cmp ebx, 1
jl 0x10017315
lea ecx, [ebx + 8]
push ecx
call fcn.1013a244
mov esi, eax
push ebx
push edi
lea eax, [esi + 8]
push eax
call fcn.1013d3f0
add esp, 0x10
mov dword [esi + 4], ebx
mov dword [esi], 0xffffffff
push esi
sub esp, 8
call fcn.10016030
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10017320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
test ecx, ecx
je 0x1001733b
cmp dword [ecx + 4], 8
jne 0x1001733b
cmp dword [ecx + 0xc], 0x7e3
jne 0x1001733b
mov edx, dword [ecx + 8]
jmp fcn.10017290
xor eax, eax
ret

Function at 0x100174d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ecx, ecx
je 0x100175eb
mov esi, dword [ecx + 4]
lea eax, [ecx + 8]
cmp esi, 4
jle 0x10017554
mov ecx, dword [eax]
cmp ecx, 0x3b9ac9ff
je 0x100175eb
cmp ecx, 0x5f5e100
je 0x100175eb
mov dword [ebx], eax
cmp esi, 8
jne 0x10017556
push 0x10166318
movzx eax, cx
push eax
push dword [0x10184478]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x10184478]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
push dword [0x10184478]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x100175eb
cmp esi, 5
jl 0x100175eb
mov eax, dword [ecx + 4]
add ecx, 8
mov esi, dword [ebp + 0xc]
mov dword [ebx], ecx
xor ebx, ebx
mov ecx, 4
mov dword [esi], eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.1013a244
push ebx
push 0
push eax
mov dword [ebp + 8], eax
call fcn.1013bf60
xor edi, edi
add esp, 0x10
cmp dword [esi], edi
jle 0x100175df
mov eax, dword [ebp - 4]
xor ebx, ebx
mov ecx, 4
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.1013a244
push ebx
mov esi, eax
push 0
push esi
call fcn.1013bf60
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [eax + edi*4], esi
inc edi
cmp edi, dword [ecx]
jl 0x100175a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8