joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449340
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x403a0c
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x403a0c
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
push 0x400000
push 6
mov dword [esi], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x4039c7
mov ecx, dword [ebp - 0x14]
push str.PUBLICKEY
push 0x3f0
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4039c7
mov edx, dword [ebp - 0x14]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
je 0x4039c7
mov eax, dword [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4039c7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4039c7
mov dword [ebp - 4], 0
mov ecx, dword [esi]
push ecx
call fcn.0042c735
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edx], eax
mov ecx, dword [esi]
push ecx
push ebx
push ecx
push eax
call fcn.0042f21b
add esp, 0x10
xor eax, eax
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4039ea
mov eax, 0x80040104
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
test eax, eax
jle 0x403a11
and eax, 0xffff
or eax, 0x80070000
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
mov eax, 0x80004003
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
Function at 0x4056f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44945b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042d032
push 4
mov dword [ebp - 4], 0
call fcn.0042f13f
mov edi, eax
add esp, 4
test edi, edi
je 0x40576c
call fcn.0042caa6
mov dword [edi], eax
call fcn.0042c865
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042c79a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405762
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042c7c2
jmp 0x40576e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x4064e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x414]
push eax
mov edi, ecx
push 0x100
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x406526
call fcn.00407ac0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f0df
mov esp, ebp
pop ebp
ret
cmp eax, 0x100
jbe 0x406541
mov eax, 0x80020013
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f0df
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x4517a4
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406512
push ebx
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
lea ebx, [edi + 8]
push 0x101
push ebx
mov word [ebp - 6], ax
call fcn.0042ffc1
add esp, 0x10
cmp eax, 0x50
ja case.0x406592.1
movzx edx, byte [eax + 0x406658]
jmp dword [edx*4 + 0x406648]
push 0x8007000e
call fcn.00403700
push 0x80070057
call fcn.00403700
mov esi, dword [edi + 4]
mov dword [ebp - 0x424], 0xc
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 1
mov dword [edi + 0x20c], 0x40000000
test esi, esi
je 0x406602
lea eax, [ebp - 0x424]
push eax
push 0
push 0x40000000
push ebx
mov edi, 0x2100
mov ebx, 2
call fcn.00407ae0
mov edi, dword [ebp - 0x418]
jmp 0x406620
push 0
push 0x2100
push 2
lea ecx, [ebp - 0x424]
push ecx
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x406512
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0042f0df
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
lodsd eax, dword [esi]
inc eax
add byte [ecx - 0x5cffbf9b], bl
inc eax
add byte [esi], bh
inc ax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x406b70
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x13
push edi
mov dword [ebp - 0x10], 0
call ebx
test eax, eax
je 0x406bd1
mov eax, 0x8000ffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x406c00
test eax, eax
jle 0x406d01
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
shr ecx, 1
jns 0x406c2e
push 0x80070057
call fcn.00403700
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x406c4b
push ecx
lea ecx, [ebp - 0x14]
call fcn.004035c0
mov esi, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0x13
push edi
call ebx
mov edi, eax
mov eax, dword [ebp - 0x10]
shr eax, 1
or ebx, 0xffffffff
cmp eax, ebx
jne 0x406c74
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f896
add esp, 8
test eax, eax
js 0x406c24
cmp eax, dword [esi - 8]
jg 0x406c24
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x406cc1
call fcn.00407ac0
mov edi, eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x406cad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x451930
call fcn.004077b0
movzx edi, al
add esp, 4
neg edi
sbb edi, edi
lea eax, [esi - 0x10]
and edi, 0x7fffbffb
mov dword [ebp - 4], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x406cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x7fffbffb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d20
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0x10]
push esi
mov esi, dword [eax]
je 0x406d82
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x406d5e
cmp dword [ecx - 8], 0
jge 0x406d50
push 0x80070057
call fcn.00403700
mov dword [ecx - 0xc], 0
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x406d82
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x406e34
lea ecx, [ecx]
mov eax, dword [ebp - 4]
test eax, eax
je 0x406e18
inc eax
push eax
call fcn.0042c735
mov esi, eax
add esp, 4
test esi, esi
je 0x406e20
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00431630
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ecx
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x406e2b
cmp dword [ebp - 8], 0
je 0x406df5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406de6
sub eax, edx
push esi
call fcn.00407960
push esi
call fcn.0042f1bf
add esp, 4
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x406da0
call fcn.00407ac0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042f1bf
add esp, 4
call fcn.00407ac0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x45e274]
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 eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x264]
push ecx
push esi
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x406e99
xor eax, eax
jmp 0x406ff1
push esi
lea ecx, [ebp - 0x268]
call fcn.00402c30
lea esi, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.00407870
call fcn.00407810
mov ecx, 0x451938
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406eed
test dx, dx
je 0x406ee9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406eed
add eax, 4
add ecx, 4
test dx, dx
jne 0x406ec7
xor eax, eax
jmp 0x406ef2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f93
mov ecx, 0x45193c
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406f2b
test dx, dx
je 0x406f27
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406f2b
add eax, 4
add ecx, 4
test dx, dx
jne 0x406f05
xor eax, eax
jmp 0x406f30
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f93
test byte [ebp - 0x264], 0x10
jne 0x406f93
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ebx, [ebp - 0x238]
call fcn.004076d0
mov ecx, dword [ebp - 0x274]
mov byte [ebp - 4], 1
mov edi, dword [eax]
push ecx
mov esi, ebx
call fcn.0042baf0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406f93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x270]
lea ecx, [ebp - 0x264]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x12
sete dl
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0042f0df
mov esp, ebp
pop ebp
ret
Function at 0x407b60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ba0
sub eax, edx
push ebx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, 0x46165c
call fcn.00403370
push 0xd
push str.ScreenShots.
mov ebx, 0x46165c
call fcn.00402e80
push 4
push 0x453040
call fcn.00402e80
mov eax, dword [0x46165c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
mov dword [0x4613d8], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042f0df
mov esp, ebp
pop ebp
ret

Function at 0x407c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x461660
mov dword [ebp - 0x14], 0x461660
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x461694], eax
jne 0x407ca0
push eax
push eax
push eax
push 0x407f40
push eax
push eax
mov dword [0x461690], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x461680]
push ecx
push eax
push str.StatReporter_thread_started__hThread__0x_x__stats_count_in_the_list:__i
push 1
push 3
push 0x1f
push str.CStatReporter::Start
push str.StatReporter.cpp
lea ecx, [ebp - 0x20]
mov dword [0x461694], eax
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x18
push 0x461660
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x407cc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x461694], 0
je 0x407d9f
push 0x461660
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x461660
mov dword [0x461690], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x461698]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x461694]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407d52
push 0x2710
push eax
push str.StatReporter_thread_will_be_terminated__dw__0x_x__timeout:__u
push 3
push 3
push 0x30
push str.CStatReporter::Stop
push str.StatReporter.cpp
lea ecx, [ebp - 0xc]
call fcn.0042d570
push eax
call fcn.0042d790
mov edx, dword [0x461694]
add esp, 0x18
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x407d85
mov eax, dword [0x461680]
mov ecx, dword [0x461694]
push eax
push ecx
push str.StatReporter_thread_stopped__hThread__0x_x__stats_left:__i
push 1
push 3
push 0x34
push str.CStatReporter::Stop
push str.StatReporter.cpp
lea ecx, [ebp - 0xc]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x18
mov eax, dword [0x461694]
test eax, eax
je 0x407d9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x461694], 0
mov esp, ebp
pop ebp
ret
Function at 0x40ce70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x45e274]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [esi + 4], edi
call fcn.00431630
add esp, 0xc
mov byte [ebp - 0x49], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov eax, 0x4523e8
ja 0x40ceab
mov eax, str.Tahoma
push eax
lea ecx, [ebp - 0x44]
push 0x20
push ecx
call fcn.0043036b
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push esi
push 0x40cf20
lea edx, [ebp - 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
push 0x40cfa0
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push str._This
push edi
mov dword [0x4613a0], eax
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push 6
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f0df
mov esp, ebp
pop ebp
ret
Function at 0x411d20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44945b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042d032
push 4
mov dword [ebp - 4], 0
call fcn.0042f13f
mov edi, eax
add esp, 4
test edi, edi
je 0x411d9c
call fcn.0042caa6
mov dword [edi], eax
call fcn.0042c865
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042c79a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411d92
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042c7c2
jmp 0x411d9e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x413d40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x45e274]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00414df0
mov byte [esi + 0x77], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov eax, 0x4523e8
ja 0x413d7e
mov eax, str.Tahoma
push eax
lea edx, [esi + 0x7c]
push 0x20
push edx
call fcn.0043036b
mov ecx, dword [esi + 4]
add esp, 0xc
push 0
push esi
push 0x413d20
lea eax, [esi + 0x60]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
cmp byte [esi + 0xd0], 0
je 0x413dba
call fcn.00414270
jmp 0x413dbf
call fcn.004140f0
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x413e1c
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
lea edx, [esp + 4]
push edx
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 0xc0]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push 6
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
call fcn.00413c40
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042f0df
mov esp, ebp
pop ebp
ret 8
Function at 0x414b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x414c00
push 0
push 0
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 0x67
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x414bd5
push str.MiniDialog_thread_creation_failed.
push 2
push 3
push 0x6c
push str.CDialogBase::DoModalAsync
push str.DialogsDialogBase.cpp
lea ecx, [ebp - 0x14]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x40]
push ecx
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
dec eax
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x4150c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, ebx
call fcn.00403300
mov eax, dword [ebp + 8]
mov ecx, dword [0x461618]
push 0x452c40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [0x461618]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4151be
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
jne 0x415116
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x461618]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
shr esi, 1
je 0x41513a
mov al, byte [edi]
cmp al, 0xff
je 0x415133
cmp al, 0xfe
jne 0x41513a
dec esi
add edi, 2
mov dword [ebp + 8], edi
lea edi, [esi + 1]
test edi, edi
jns 0x41514b
push 0x80070057
call fcn.00403700
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, edi
or ecx, edx
jge 0x415166
push edi
mov ecx, ebx
call fcn.004035c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
push eax
push edi
push ecx
call fcn.0042ffc1
add esp, 0x10
mov eax, esi
cmp esi, 0xffffffff
jne 0x415191
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x415195
push ecx
push eax
call fcn.0042f896
add esp, 8
test eax, eax
js 0x415141
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x415141
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4