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

Disassembly:
push 0xffffffffffffffff
push 0x48ace8
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.00482c27
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044a6b0
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.00482b55
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.0047f413
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.0047f413
push 1
push 0
push 0
mov ecx, esi
call fcn.0047f3bb
push 1
push 0
push 1
mov ecx, esi
call fcn.0047f3bb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00482c99
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44aed0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48ad08
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.00482c27
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044a6b0
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.00482b55
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 0x44af94
cmp dword [esp + 0x40], 1
jne 0x44af92
cmp ecx, eax
jge 0x44af94
mov eax, ecx
cmp eax, 0xc8
jge 0x44afa0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044ad50
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.00482c99
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44b790
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48adb3
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.0047d830
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.00482ecf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004843eb
test eax, eax
je 0x44b8ac
mov ecx, dword [esp + 0x3c]
call fcn.00482efc
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 0x44b870
push edi
mov ecx, esi
call fcn.00480561
mov ecx, esi
call fcn.0044ba50
cmp dword [esp + 0x38], 1
jne 0x44b8a5
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.0048069c
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 0x44da90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44dac3
push esi
call fcn.00450be0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44dabc
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 0x44db49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44db32
mov eax, dword [esi + 8]
test eax, eax
je 0x44dae7
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 0x44db2e
cmp eax, 2
je 0x44db32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44dada
cmp eax, 3
je 0x44db0d
cmp eax, 1
jne 0x44dada
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 0x44dada
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44dada
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044db70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44db58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044db70
add esp, 4
pop esi
ret

Function at 0x458e90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x458ef6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x458ef6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x458ed7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x459280
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4592b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x459ee0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x459f29
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45a3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00459f50
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00459fd0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00459fd0
lea ecx, [esi + 0xc]
call fcn.0047c1c0
lea ecx, [esi + 0x10]
call fcn.0047c1c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045b560
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045b560
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045b560
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047c235
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047c235
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45d4f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45d593
test eax, eax
jbe 0x45d593
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45d593
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45d53e
xor esi, esi
jmp 0x45d544
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45d56f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00461a80
add esi, eax
push esi
mov ebx, esi
call fcn.00461a80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45d550
pop ebp
test edi, edi
pop edi
jne 0x45d593
test ebx, ebx
je 0x45d593
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046b8f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x45d6b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45d7cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d7cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047dc82
mov esi, eax
test esi, esi
je 0x45d7cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45d7cd
mov ecx, esi
call fcn.0045d640
cmp edi, eax
jge 0x45d7cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45d753
mov dword [esp + 0x34], 1
jmp 0x45d7ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45d7cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045be90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47e626
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47e65e
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.0047c690
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047c668
jmp 0x47e66a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47fd1b
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 0x47fd5d
call fcn.00485a91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47fd5d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47fd54
xor eax, eax
jmp 0x47fd65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047fd6b
pop edi
pop esi
pop ebx
ret 4

Function at 0x485fc1
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 0x485fef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48600d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485f27
jmp 0x48600d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48600d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00485f27
test edi, edi
mov eax, edi
jne 0x485ff7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x407665
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4280a4], 0
jne 0x4076a3
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407679
mov dword [ecx*4 + 0x4280a0], eax
inc ecx
cmp ecx, 0x100
jl 0x407674
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4076d0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4280a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4076b1
not eax
pop ebp
ret 0xc
Function at 0x402b00
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 0x402b19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402b50
lea ebx, [ebx]
cmp esi, eax
jae 0x402b54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402b40
cmp esi, eax
jb 0x402b5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403a50
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43de38
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x44f6d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004025b0
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x24]
mov dword [esp + 0x18], 0
call fcn.004020d0
mov edi, eax
call fcn.00402150
mov eax, ebx
call fcn.00401e90
mov ecx, dword [esp + 0x24]
mov edx, dword [0x45359c]
mov esi, dword [esp + 0x20]
push ecx
push edx
add esi, 8
push esi
call fcn.00402620
mov eax, dword [esi]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403ade
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x403dd0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e0f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x44f6d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.00409eaf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403e10
push 0x80004005
call fcn.00402420
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x403f29
push 0x5c
push eax
call fcn.00426787
add esp, 8
test eax, eax
je 0x403f29
sub eax, dword [ebx]
mov edi, eax
cmp edi, 0xffffffff
je 0x403f29
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00401f70
mov byte [esp + 0x24], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x403ec5
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x403eb3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403eb3
push eax
call fcn.004025b0
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x403ea6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebp, dword [esp + 0x14]
add ebp, 0x10
mov dword [esp + 0x10], ebp
jmp 0x403ec5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402500
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403efd
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
js 0x403f29
cmp edi, ecx
jge 0x403f29
add eax, edi
push 0x5c
push eax
call fcn.00426787
add esp, 8
test eax, eax
je 0x403f29
sub eax, dword [ebx]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403e55
add ebp, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f4e
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x404850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dda0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x44f6d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004025b0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push eax
mov dword [esp + 0x4c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4049d9
lea ebx, [esp + 0x14]
call fcn.004020d0
mov edi, eax
call fcn.00402150
mov edi, ebx
call fcn.00401e10
push 4
push str..
mov ecx, ebx
call fcn.00402260
lea ecx, [esp + 0x24]
call fcn.0040b2ba
mov byte [esp + 0x48], 1
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040b346
test eax, eax
je 0x4049be
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x24]
call fcn.0040afd3
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.0040b281
test eax, eax
jne 0x4049b3
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x28]
call eax
test eax, eax
je 0x404953
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b4fd
mov edx, dword [ebp + 0x10]
push edx
push eax
push ebx
mov byte [esp + 0x54], 2
call fcn.00404850
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x18]
jmp 0x40498e
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b4fd
mov byte [esp + 0x48], 3
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
push eax
push edx
push esi
call fcn.00404b70
mov ecx, ebx
mov edi, eax
call fcn.00404c10
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
test edx, edx
jne 0x4049be
cmp dword [esp + 0x20], 0
jne 0x4048f9
push 0
push 0
lea ecx, [esp + 0x2c]
call fcn.0040b346
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.0040b2de
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4085e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x44f6d0]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x40877e
push 0x10c
push ebx
push edi
call fcn.00428c20
xor eax, eax
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
push 0x11
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40865a
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
push 0x207
lea edx, [esp + 0x4d]
push ebx
push edx
mov byte [esp + 0x54], bl
call fcn.00428c20
add esp, 0xc
cmp byte [esp + 0x48], bl
jne 0x40868d
cmp dword [esp + 0x20], ebx
jne 0x40868d
lea eax, [esp + 0x48]
push eax
push 0x206
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x211
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], 0x4084a0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], 0x445198
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
cmp esi, ebx
je 0x40871c
push 0x207
lea ecx, [esp + 0x255]
push ebx
push ecx
mov byte [esp + 0x25c], bl
call fcn.00428c20
add esp, 0xc
lea edx, [esp + 0x250]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40871c
push 0x10b
lea eax, [esp + 0x254]
push eax
push edi
call fcn.00427a4f
add esp, 0xc
mov edi, 1
jmp 0x40871e
mov edi, ebx
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x408767
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408767
cmp esi, ebx
je 0x40874a
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40875f
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.0042632a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042632a
mov esp, ebp
pop ebp
ret