joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443450
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00469638
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442df0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00469566
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00465e2a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00465e2a
push 1
push 0
push 0
mov ecx, esi
call fcn.00465dd2
push 1
push 0
push 1
mov ecx, esi
call fcn.00465dd2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004696aa
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4435d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00469638
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442df0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00469566
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x443694
cmp dword [esp + 0x40], 1
jne 0x443692
cmp ecx, eax
jge 0x443694
mov eax, ecx
cmp eax, 0xc8
jge 0x4436a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443450
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004696aa
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443e20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4709e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046424a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004698e0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046ae61
test eax, eax
je 0x443f3c
mov ecx, dword [esp + 0x3c]
call fcn.0046990d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443f00
push edi
mov ecx, esi
call fcn.00466f71
mov ecx, esi
call fcn.004440a0
cmp dword [esp + 0x38], 1
jne 0x443f35
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004670ac
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x446960
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446993
push esi
call fcn.00449a50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44698c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x446a19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446a02
mov eax, dword [esi + 8]
test eax, eax
je 0x4469b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4469fe
cmp eax, 2
je 0x446a02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4469aa
cmp eax, 3
je 0x4469dd
cmp eax, 1
jne 0x4469aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4469aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4469aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446a40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446a28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446a40
add esp, 4
pop esi
ret

Function at 0x465040
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465078
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004630f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004630cc
jmp 0x465084
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46672e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466770
call fcn.0046c24c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466770
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466767
xor eax, eax
jmp 0x466778
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046677e
pop edi
pop esi
pop ebx
ret 4

Function at 0x46c77c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46c7aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c7c8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c6e2
jmp 0x46c7c8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c7c8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c6e2
test edi, edi
mov eax, edi
jne 0x46c7b2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011f0
Capabilities:
Create process on windows
Get common file path
Inspect load icon resource
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x1c
push edi
push 0
push section..text
push 0
push 0x65
push 0x400000
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0x79
push 2
mov edi, eax
push 0x64
push edi
call dword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
jne 0x401231
push eax
push eax
push eax
push 0x402240
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
pop edi
add esp, 0x1c
ret
mov eax, dword [str.file:__]
mov ecx, dword [0x402270]
push esi
push 0xfd
push 0x403007
mov dword [section..data], eax
mov dword [0x403004], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movq xmm0, qword [str._restrict.url]
push 0
push 6
push 2
push 0
push 0
add eax, 0x403007
movq qword [eax], xmm0
movq xmm0, qword [0x40227c]
push 0x40000000
push 0x403007
movq qword [eax + 8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
je 0x4013c0
lea edx, [esp + 0x1c]
push edx
push 0x173
push str._InternetShortcut__r_nURLjavascript:fdocument.mainform_if_af__fma.pu._0.fi__f.removeChild_a__f_isVirtualCat_.valuefalse_if_af_secKillWeb__a.checkedtrue_elseadocument.createElement_input__a.typecheckbox_a.name_fma.pu._0.se_a.valueweb_a.checkedtrue_f.appendChild_a_if_af_event_submit_do_publish__a.click___elsef_event_submit_do_edit_.click__
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x403104]
push 0x4022e0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x65
push 0x400000
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 1
push 0x80
push edi
mov dword [0x403124], eax
call dword [sym.imp.USER32.dll_SendMessageA]
movq xmm0, qword [0x402350]
mov ecx, dword [0x402360]
movq qword [0x403128], xmm0
movq xmm0, qword [0x402358]
mov dword [0x403110], 0x58
mov dword [0x403114], edi
mov dword [0x403118], 0x65
mov dword [0x40311c], 7
mov dword [0x403120], 0x8000
movq qword [0x403130], xmm0
mov dword [0x403138], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
mov dword [0x403108], eax
call edi
test eax, eax
je 0x4013d1
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x10], 0x203
jne 0x4013a1
mov eax, dword [esp + 0xc]
cmp eax, dword [0x403104]
jne 0x4013a1
push 5
push 0
push 0
push str.http:__fuwu.taobao.com_ser_detail.htm_service_id28654
push str.open
push 0
call esi
jmp 0x4013a8
lea ecx, [esp + 0xc]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x401375
pop ebx
pop esi
pop edi
add esp, 0x1c
ret
push 0
push 0
push 0x402288
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
pop esi
pop edi
add esp, 0x1c
ret
Function at 0x401870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cf98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004017e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401560
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401902
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4028a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4028bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4028de
cmp esi, eax
jae 0x4028b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4028d0
cmp esi, eax
jae 0x4028b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
call fcn.00439aff
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xc]
push str.Image
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x404fb6
pop edi
pop esi
ret 8
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [esp + 0x18]
push 0
push ebx
mov ecx, edi
mov esi, eax
call fcn.00404b90
mov edi, dword [edi + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ebp
mov ecx, edx
and ecx, 3
pop ebx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x407be0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43d60d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov esi, ecx
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0xc], esi
call fcn.00401560
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00401560
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [esp + 0x20], 1
call fcn.00401560
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 2
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 3
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 4
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
mov byte [esp + 0x30], 5
call fcn.00401560
add eax, 0x10
mov dword [esi + 0x1c], eax
mov edi, dword [edi + 0x20]
sub edi, 0x10
push edi
mov byte [esp + 0x34], 6
call fcn.00401560
mov ecx, dword [esp + 0x2c]
add esp, 0x20
add eax, 0x10
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40d660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43dc88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x38]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x40], edi
call sub.gdiplus.dll_GdipCreateFromHDC
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
push 0x12
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call fcn.004052b0
mov ecx, eax
call fcn.00403b40
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40d6e5
mov eax, dword [eax + 4]
jmp 0x40d6e7
xor eax, eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
push edi
push edi
push 2
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esi + 0xa0]
push ecx
mov ecx, dword [esi + 0x9c]
push edx
mov edx, dword [esi + 0x98]
push ecx
mov ecx, dword [esi + 0x94]
push edx
push ecx
push eax
push ebx
call sub.gdiplus.dll_GdipDrawImageRectRectI
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x40eb40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xdbc]
test ecx, ecx
mov dword [esi + 0xde0], 2
je 0x40eb29
call fcn.004139d0
push eax
call fcn.0040ab40
mov ecx, eax
call fcn.0040a540
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdd0], eax
mov ecx, esi
pop esi
jmp fcn.0040e670
push esi
mov esi, ecx
mov eax, dword [esi + 0xdcc]
test eax, eax
je 0x40eba7
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xdd0]
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
lea edi, [edx + eax + 0x5f]
cmp edi, 0x63
jbe 0x40eb79
mov edi, 0x63
mov ecx, dword [esi + 0xdcc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40eb98
mov ecx, esi
mov edi, 0x64
call fcn.0040db20
push edi
lea ecx, [esi + 0xbb4]
call fcn.0040c8e0
pop edi
pop esi
ret
mov ecx, dword [esi + 0xdbc]
test ecx, ecx
je case.default.0x40ebbc
mov eax, dword [ecx + 0xbc]
cmp eax, 5
ja case.default.0x40ebbc
jmp dword [eax*4 + 0x40ec08]
mov ecx, esi
pop esi
jmp 0x40eb00
push 1
mov ecx, esi
call fcn.0040d430
pop esi
ret
push 2
mov ecx, esi
call fcn.0040d430
pop esi
ret
push 3
mov ecx, esi
call fcn.0040d430
pop esi
ret
push 5
mov ecx, esi
call fcn.0040d430
pop esi
ret
call fcn.004139e0
push eax
mov ecx, esi
call fcn.0040d250
pop esi
ret

Function at 0x410dd1
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x410e00
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x410e00
mov edx, dword [esp + 4]
mov dword [esi + 0xc], edx
pop esi
pop ecx
ret 4

Function at 0x412850
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4128eb
mov eax, dword [esi + 0x40]
push 0
push 0
push pe_nt_image_headers32
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x412883
xor eax, eax
jmp 0x412888
mov eax, dword [esi + 0x38]
sub eax, ecx
mov ecx, dword [esi + 0x34]
push 0
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esi + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4128a9
xor ecx, ecx
jmp 0x4128ae
mov ecx, dword [esi + 0x38]
sub ecx, eax
cmp dword [esp + 4], ecx
je 0x4128f0
push 0
call fcn.00416800
add esp, 4
test al, al
je 0x4128eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Read
push 0xf7
push str.DevelopLogin_trunkclientOnlineSetupV2CommonBitmapFile.cpp
push 0
call fcn.00416910
add esp, 0xc
push eax
call fcn.004168e0
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
xor edx, edx
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x4128fd
xor eax, eax
jmp 0x412902
mov eax, dword [esi + 0x38]
sub eax, ecx
cmp edx, eax
jge 0x412917
mov ecx, dword [esi + 0x34]
lea eax, [ecx + edx]
cmp byte [eax], 0xff
je 0x412914
mov byte [eax], 0
inc edx
jmp 0x4128f2
mov eax, 1
pop esi
pop ecx
ret
Function at 0x412920
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41292e
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x40]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, ecx
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x2c
lea edx, [esi + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x40]
push edx
push eax
call ebx
cmp dword [esp + 0xc], 0x2c
push 0
je 0x41299d
call fcn.00416800
add esp, 4
test al, al
je 0x412a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_
push 0x117
jmp 0x412a01
mov ecx, dword [esi + 0x40]
push 0
push pe_nt_image_headers32
push ecx
call edi
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x4129b5
xor eax, eax
jmp 0x4129ba
mov eax, dword [esi + 0x38]
sub eax, ecx
mov ecx, dword [esi + 0x34]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esi + 0x40]
push ecx
push eax
call ebx
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4129d7
xor esi, esi
jmp 0x4129dc
mov esi, dword [esi + 0x38]
sub esi, eax
cmp dword [esp + 0xc], esi
je 0x412a20
push 0
call fcn.00416800
add esp, 4
test al, al
je 0x412a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_BITMAP
push 0x11f
push str.DevelopLogin_trunkclientOnlineSetupV2CommonBitmapFile.cpp
push 0
call fcn.00416910
add esp, 0xc
push eax
call fcn.004168e0
add esp, 0xc
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret