joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431990
Capabilities:
Create thread

Disassembly:
push edi
push str.gaia_crash.dll
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4319e3
push str.GaiaCrashOpenMonitor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4319e3
push esi
push 0
push 0
push eax
push 0x4318d0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x4319e2
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
ret

Function at 0x4327b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x548010
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a5084]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x432839
call fcn.004323b0
mov esi, eax
jmp 0x43291f
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x432855
call fcn.004323b0
jmp 0x432916
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x43286e
call fcn.004323b0
jmp 0x432916
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x4328a4
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x432892
lea eax, [ebp]
call fcn.00432960
lea esi, [ebp - 0x1c]
call fcn.00432380
mov eax, 0x8007000e
jmp 0x432932
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00432970
mov dword [ebp - 4], 1
jmp 0x4328cc
mov esi, dword [ebp]
test esi, esi
jne 0x4328da
mov esi, 0x8007000e
jmp 0x432918
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4328fb
call fcn.004323b0
jmp 0x432916
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004329b0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x432930
lea eax, [ebp]
call fcn.00432960
nop
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 + 0x404]
xor ecx, ebp
call fcn.004726a1
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x433c03
push 0x80004005
call fcn.00408b10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x433c10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x433da0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x433e0e
test ecx, ecx
je 0x433e00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x433e1c
test ecx, ecx
je 0x433ec1
push ecx
jmp 0x433ebb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x433e8e
jmp 0x433e50
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00433da0
mov edi, eax
test edi, edi
jne 0x433edd
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x433e50
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x433ea5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x433ec1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004726a1
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x433eec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x433ec3
Function at 0x434e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x54c3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
fldz
mov ecx, dword [edi + 4]
test ecx, ecx
fstp qword [esp + 0x1c]
je 0x434ea0
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
jne 0x434ea7
xor eax, eax
jmp 0x43504e
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x434eb9
fadd qword [0x595b10]
fld1
mov ebx, dword [esp + 0x44]
fdivrp st(1)
fstp qword [ebx + 0x70]
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x434ed2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x434ee0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x435016
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
lea esi, [eax + 0x10]
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
mov dword [esp + 0x24], esi
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 0
cmp ebp, dword [edi + 8]
jb 0x434f3d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x434f96
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x434f85
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x434f85
call fcn.00412ca0
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x434f78
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x24], ecx
jmp 0x434f92
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x28]
call fcn.00412c00
mov ebx, dword [esp + 0x44]
call fcn.0041bbd0
lea edx, [ebx + 8]
push edx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
mov edx, eax
call fcn.0041b610
test eax, eax
je 0x43500d
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x5c]
call fcn.00435330
fld qword [esp + 0x1c]
fadd qword [ebx + 0x70]
sub esp, 8
fst qword [esp + 0x24]
fstp qword [esp]
push ebx
call fcn.00436d90
fld qword [esp + 0x1c]
fmul qword [0x595ab8]
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
fstp qword [ebx + 0x78]
call fcn.00435070
cmp ebp, dword [edi + 8]
jb 0x435005
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebp, 4
jmp 0x434ed2
lea esi, [esp + 0x24]
call fcn.00435070
mov eax, dword [edi + 4]
test eax, eax
jne 0x435021
xor edi, edi
jmp 0x435029
mov edi, dword [edi + 8]
sub edi, eax
sar edi, 2
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x435045
mov ecx, dword [ebx + 0x64]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x435140
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x548898
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi]
lea eax, [esp + 0xc]
push eax
call fcn.00438120
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041d980
add esp, 8
test eax, eax
jne 0x4351c8
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4351b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test esi, esi
jne 0x4351eb
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x435230
Capabilities:
Check if file exists
Delete file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x60]
add edi, 0x5c
cmp esi, dword [edi + 8]
mov dword [esp + 0x10], 1
jbe 0x435252
call ebp
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x43525c
call ebp
cmp edi, edi
je 0x435262
call ebp
cmp esi, ebx
je 0x4352a0
cmp esi, dword [edi + 8]
jb 0x43526d
call ebp
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435294
cmp esi, dword [edi + 8]
jb 0x435282
call ebp
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435294
mov dword [esp + 0x10], eax
cmp esi, dword [edi + 8]
jb 0x43529b
call ebp
add esi, 0xc
jmp 0x435252
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x436020
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x54af53
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov ecx, 0x5931a0
call fcn.00413730
xor ebx, ebx
mov dword [esp + 0xc0], ebx
mov edx, dword [0x5b06b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5b06b0
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 1
call fcn.0041d5f0
test eax, eax
jne 0x4360fd
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4360b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4360e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xb8
ret
push 0xe
push str.framework4.exe
lea ecx, [esp + 0x18]
push ecx
call fcn.00412aa0
cmp esi, ebx
je 0x436117
lea eax, [esi + 8]
jmp 0x436119
xor eax, eax
mov esi, dword [esp + 0x10]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.0046f460
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
mov byte [esp + 0xcc], 2
call fcn.0041d6a0
add esp, 0xc
test eax, eax
je 0x43616a
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0xc4], 1
call fcn.0046f4d0
mov byte [esp + 0xc0], bl
lea eax, [esi - 0x10]
jmp 0x43609f
cmp esi, ebx
je 0x436188
push 5
push ebx
push 0x5932b4
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4361b6
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0xc4], 1
call fcn.0046f4d0
lea eax, [esi - 0x10]
mov byte [esp + 0xc0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4360ac
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0xc4], 1
call fcn.0046f4d0
lea eax, [esi - 0x10]
mov byte [esp + 0xc0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4361eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xb8
ret
Function at 0x4362b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x547f81
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], vtable.ISimpleThreatCallback.0
mov dword [esi + 8], vtable.IDownloadProgress.0
lea eax, [esi + 0xc]
push eax
mov dword [esi], vtable.CDownLoadTaskBase.1.0
mov dword [esi + 4], vtable.CDownLoadTaskBase.2.0
mov dword [esi + 8], vtable.CDownLoadTaskBase.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0xffffffff
mov byte [esp + 0x14], 1
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x436390
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov esi, ecx
push edi
mov dword [esi], vtable.CDownLoadTaskBase.1.0
mov dword [esi + 4], vtable.CDownLoadTaskBase.2.0
mov dword [esi + 8], vtable.CDownLoadTaskBase.0
mov dword [esi + 0x3c], 1
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
je 0x4363f2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [esi + 0x24]
jne 0x4363da
push eax
call ebx
jmp 0x4363ef
cmp eax, edi
je 0x4363f2
push edi
push eax
call ebp
mov ecx, dword [esi + 0x24]
push ecx
call ebx
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x436402
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x34]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43642a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x436470
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x436455
mov ecx, dword [esi + 0x24]
push ecx
call ebx
mov dword [esi + 0x24], edi
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x436470
push edi
push eax
call ebp
mov edx, dword [esi + 0x24]
push edx
call ebx
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x24], edi
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x438370
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5495a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00413730
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x43842a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x43842a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x43842a
lea ecx, [esp + 0x14]
call fcn.004382c0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x43840b
lea eax, [esp + 0x14]
call fcn.0044dd60
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00438370
add esp, 4
test eax, eax
je 0x4383ec
push 0
push esi
call edi
test eax, eax
jne 0x43842a
call ebx
cmp eax, 0xb7
jne 0x4383ec
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x43844b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4385e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5494a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5b06b0
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push 0x5b
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x438721
lea esp, [esp]
mov edx, dword [esp + 0x10]
mov edi, dword [edx - 0x10]
lea eax, [edx - 0x10]
xor ebx, ebx
cmp dword [eax + 4], ebx
je 0x4386a4
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x43867e
cmp dword [edx - 8], ebx
jl 0x438762
mov dword [edx - 0xc], ebx
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
jmp 0x4386a4
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0xa
push esi
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4386e2
test esi, esi
je 0x4386cf
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4386c0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
call fcn.00412aa0
mov ebx, 1
jmp 0x4386f5
sub eax, esi
sar eax, 1
add eax, 1
push eax
push esi
lea edx, [esp + 0x18]
push edx
call fcn.00412aa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x14]
lea esi, [esi + eax*2]
call fcn.00438770
test eax, eax
je 0x438721
test ebx, ebx
je 0x438650
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00408b10
int3
Function at 0x43a440
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0xc]
xor edi, edi
push edx
mov dword [eax], edi
push ebp
mov dword [esp + 0x14], edi
mov dword [ecx], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x43a4e3
push ebx
push esi
call fcn.00472258
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a4cc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x58c7f0
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43a4cc
cmp dword [esp + 0x14], esi
je 0x43a4cc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea edi, [esi + 1]
test ebx, ebx
je 0x43a4d9
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x43a610
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x549302
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x22c], edi
mov dword [esp + 0x10], edi
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x5b06b0
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
push 0x206
lea eax, [esp + 0x1e]
mov dword [esp + 0x230], edi
push edi
push eax
mov dword [esp + 0x1c], 1
mov word [esp + 0x24], di
call fcn.00472a32
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43a6b0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x18]
mov ebx, eax
push edx
mov eax, esi
call fcn.00412c00
call fcn.0043a4f0
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004726a1
add esp, 0x220
ret