joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41efe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5912e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
call fcn.0040ede0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp esi, edi
je 0x41f092
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00410a40
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0041ab20
push eax
push 0
push 1
call ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41f085
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
add esi, 0x18
cmp esi, edi
jne 0x41f030
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x41f0c6
push dword [ebp - 0x38]
mov edx, edi
push ecx
mov ecx, esi
call fcn.00410730
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x34]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040f7c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
Function at 0x41f0f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591330
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5f1414]
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]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], eax
call fcn.0040efc0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
cmp esi, edi
je 0x41f249
nop
xor eax, eax
mov dword [ebp - 0x30], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00410a40
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x18], 7
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
je 0x41f19f
mov eax, edx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f190
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00410890
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040ea50
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41f1d8
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x48], 8
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f20a
lea ecx, [ebp - 0x5c]
call fcn.0041d4a0
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x41f21f
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00411000
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x41f238
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00411000
add esi, 0x18
cmp esi, edi
jne 0x41f140
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x41f27d
push dword [ebp - 0x60]
mov edx, edi
push ecx
mov ecx, esi
call fcn.00410730
mov ecx, dword [ebp - 0x64]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x6c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040f7c0
mov al, 1
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.004fb4f0
mov esp, ebp
pop ebp
ret 4
Function at 0x41f470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5913c0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x44], 7
xor ecx, ecx
mov word [ebp - 0x58], ax
cmp word [str.DeleteUserDat], cx
mov eax, 0xd
mov dword [ebp - 0x48], 0
cmove eax, ecx
lea ecx, [ebp - 0x58]
push eax
push str.DeleteUserDat
call fcn.00410890
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00412ea0
cmp dword [ebp - 0x18], 0
jne 0x41f504
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41f500
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor esi, esi
jmp 0x41f52f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0056f0a4
mov ecx, dword [ebp - 0x14]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x41f52f
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00411000
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x41f54b
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00411000
test esi, esi
je 0x41f62a
xor eax, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov word [ebp - 0x28], ax
cmp word [str.UserDataPath], cx
mov eax, 0xc
mov dword [ebp - 0x18], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push eax
push str.UserDataPath
call fcn.00410890
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00412ea0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41f5b5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f615
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040f470
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
call fcn.0041fb60
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x41f615
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00411000
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x41f62a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00411000
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
Function at 0x41f650
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 8], eax
push 4
xor eax, eax
mov dword [ebp - 0xc], 7
push str.OU_u
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00410890
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f6c0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41f6d5
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00411000
call fcn.0041aa60
mov ecx, dword [ebp - 8]
mov al, 1
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 4
Function at 0x41fb60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41fb7e
mov eax, dword [esi]
jmp 0x41fb80
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41fb9e
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x41fba6
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
cmp word [esi], ax
jne 0x41fbc3
xor ecx, ecx
jmp 0x41fbdf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fbd0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00410890
lea eax, [ebp - 0x20]
push eax
call fcn.0041fc20
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41fc07
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00411000
mov ecx, dword [ebp - 8]
xor al, al
xor ecx, ebp
pop esi
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 4

Function at 0x41fc20
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41fc42
mov eax, dword [esi]
jmp 0x41fc44
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x41fd55
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005619c0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41fc74
mov eax, dword [esi]
jmp 0x41fc76
mov eax, esi
push eax
lea eax, [ebp - 0x20c]
push 0x5daf68
push eax
call fcn.0040e750
lea eax, [ebp - 0x20c]
push 0x5dbb30
push eax
call fcn.00560d69
add esp, 0x14
test eax, eax
je 0x41fcc5
cmp dword [esi + 0x14], 8
jb 0x41fca8
mov esi, dword [esi]
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
mov ecx, esi
test edi, edi
jne 0x41fcea
call fcn.0040e780
push eax
lea eax, [ebp - 0x20c]
push str._s.remove
push eax
call fcn.0040e750
add esp, 0xc
jmp 0x41fd05
push edi
call fcn.0040e780
push eax
lea eax, [ebp - 0x20c]
push str._s.remove_d
push eax
call fcn.0040e750
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41fd2b
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x41fd2b
cmp edi, 0xa
jg 0x41fd54
inc edi
jmp 0x41fcc8
cmp dword [esi + 0x14], 8
jb 0x41fd33
mov esi, dword [esi]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0056f896
add esp, 8
lea eax, [ebp - 0x20c]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 4
Function at 0x423780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591a3e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5f1414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.00423b20
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
sete al
test al, al
jne 0x42383b
push 0
push bind
push bind
push bind
push bind
push 0
push 0x96c80000
push 0x5dc9ec
push 0
call fcn.00426010
mov ecx, dword [ebp - 0x14]
call fcn.00425e10
mov ecx, dword [ebp - 0x14]
push 5
call fcn.004918b0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00438690
call fcn.0041d7d0
mov ecx, dword [eax]
test ecx, ecx
je 0x423820
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0041d3e0
push dword [0x5fd0c4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x5fd0c4], 0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x42386a
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42386a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x42386a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x434a50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x434a71
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x434a89
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x434aa1
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x434ab7
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x434acf
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x43b150
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x43b18e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x1ec]
je 0x43b18e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x1ec]
jne 0x43b1a1
jmp 0x43b305
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1ec], 0
je 0x43b22b
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ec]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x1ec]
mov edx, dword [eax + 0x134]
call edx
push 0
push 0
push 0
push str.killfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ec]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0043aaa0
mov edx, dword [ebp - 4]
mov dword [edx + 0x1ec], 0
cmp dword [ebp + 8], 0
jne 0x43b236
jmp 0x43b305
cmp dword [ebp + 8], 0
je 0x43b305
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x43b305
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xf4]
call eax
movzx ecx, al
test ecx, ecx
je 0x43b305
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x100]
call edx
movzx eax, al
test eax, eax
je 0x43b305
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x1ec], edx
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ec]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x1ec]
mov edx, dword [eax + 0x134]
call edx
push 0
push 0
push 0
push str.setfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ec]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0043aaa0
mov esp, ebp
pop ebp
ret 4
Function at 0x440190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
je 0x440211
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3c
jne 0x4401ea
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.004441d0
movzx edx, al
test edx, edx
jne 0x4401e8
xor eax, eax
jmp 0x4402e9
jmp 0x44020c
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.00444250
movzx ecx, al
test ecx, ecx
jne 0x44020c
xor eax, eax
jmp 0x4402e9
jmp 0x4402b8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00434310
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x44023b
xor eax, eax
jmp 0x4402e9
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00434310
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x44026e
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4402e9
push 0
mov eax, dword [ebp - 0x214]
push eax
call fcn.00434310
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.00444900
movzx edx, al
test edx, edx
jne 0x4402ab
xor eax, eax
jmp 0x4402e9
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.00444050
sub esp, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x218]
call fcn.0043fce0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 8
Function at 0x4685b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4685e4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4685e4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4685f3
jmp 0x46875c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x46864e
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x468631
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x46863d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x468608
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x4686de
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.00561440
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x4686a7
jmp 0x4686ac
call fcn.004fbb53
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004685b0
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x4686fa
jmp 0x4686ff
call fcn.004fbb53
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x468728
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.005759b0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0057593f
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46875c
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
Function at 0x4694a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4694ba
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x4694c4
mov eax, 0x1000000
jmp 0x4695ae
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call fcn.005759d2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x469522
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x469522
push 0x5db4cc
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.0057593f
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x469566
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x46954a
mov dword [ebp - 0x10], 1
jmp 0x469551
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x469566
mov eax, 0x2000000
jmp 0x4695ae
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0046e670
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46958c
mov eax, dword [ebp - 0x1c]
jmp 0x4695ae
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0046f360
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4695ac
mov eax, 0x200
jmp 0x4695ae
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc