joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bf7c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bf5d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bf6c
or bl, 4
test esi, 0x20000000
je 0x44bf77
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452624
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452636
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419174
mov eax, dword [0x45de98]
mov dword [eax + 4], ebx
mov dword [eax], 0x4529c8
mov eax, dword [0x45dea4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4529d4
mov eax, ebx
call fcn.004529e0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44edfc
push eax
push 0
push 0
mov eax, dword [0x45dfe4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41abbc]
call fcn.0041c000
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41abbc]
call fcn.0041c000
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41abbc]
call fcn.0041c000
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452e00
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452cdc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452cdc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452cdc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452773
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452ac0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452c6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452c4c
mov dl, 1
mov eax, dword [0x411888]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452c3b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044083c
test al, al
je 0x452c2e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x452c7c
lea eax, [ebp - 0x254]
call fcn.00408970
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452c2e
xor eax, eax
push ebp
push 0x452c27
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452cb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452c10
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452c10
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452c2e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452b31
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415364
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452c72
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

Function at 0x4535a0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45fbb0]
cmp byte [eax + 0xa5], 0
jne 0x453611
cmp dword [0x45fbc8], 0
jne 0x4535d2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45355c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fbc8], eax
cmp dword [0x45fbc4], 0
jne 0x4535ed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbc4], eax
cmp dword [0x45fbcc], 0
jne 0x453611
push esp
push 0
push 0
push 0x453500
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fbcc], eax
pop edx
ret
Function at 0x453708
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45371f
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419174
mov eax, dword [0x45dfd0]
cmp word [eax + 2], 0
jne 0x453747
mov eax, dword [0x45dfd0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454e70
mov eax, dword [0x45e07c]
cmp word [eax + 2], 0
jne 0x453761
mov eax, dword [0x45e07c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455068
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41146c]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b36c]
call fcn.00421110
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4538e8
mov eax, dword [0x45def8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004214e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455608
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45def8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bfe8
test eax, eax
je 0x453856
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408364
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c010
test eax, eax
je 0x45386a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x45ddf8]
cmp byte [eax], 0
jne 0x45389e
mov eax, ebx
call fcn.00453a10
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004557e4
mov eax, ebx
call fcn.004561a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4538de
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453c90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbb0]
cmp dword [eax + 0x30], 0
je 0x453d3a
cmp dword [ebx + 0x94], 0
jne 0x453d34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453c20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453d34
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453cfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453d34
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004137d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453d09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45489c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4548d1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x4548de
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4559c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455a01
mov eax, esi
call fcn.0043bde0
test al, al
je 0x455a01
mov eax, dword [ebx + 0x84]
call fcn.0043badc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455a01
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043badc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x12b66348
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12b66352
pushal
call 0x12b66358
pop ebp
sub ebp, 0x10
sub ebp, 0x2b66348
mov al, byte [esp + 0x28]
cmp al, 1
je 0x12b6637c
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x12b66385
mov eax, 0x2b66348
add eax, ebp
add eax, 0x63
mov ecx, 0x5c7
mov edx, 0xa4f59f04
xor byte [eax], dl
inc eax
dec ecx
jne 0x12b6639c
jmp 0x12b663af
invalid
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x416de0
push 0x67
push esi
call edi
push 0x64
push 0x416d18
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401150
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402ae1
call fcn.00402070
test eax, eax
je 0x40106c
call fcn.00403174
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401290
test eax, eax
jne 0x40108b
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.004045f7
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401810
mov ecx, dword [0x417740]
test ecx, ecx
je 0x4010ba
cmp word [0x417744], 0
jbe 0x4010ba
mov esi, 0x415f1c
call fcn.00403811
mov ax, word [0x417744]
mov word [0x415f2c], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x41343c]
mov word [eax + 0x417c78], cx
add eax, 2
test cx, cx
jne 0x4010c0
call fcn.00403875
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00407f50
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417c78
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404606
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x413454
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401290
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x46]
push ecx
mov word [ebp - 0x48], ax
call fcn.00407f50
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.004033c7
xor eax, eax
jmp 0x4012d0
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416ea8], cx
add eax, 2
test cx, cx
jne 0x4012d0
push 0x416ea8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401313
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045f7
mov esp, ebp
pop ebp
ret
push 0x416ea8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401301
lea edx, [ebp - 0x1d8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x417878
call fcn.00401cf0
test eax, eax
jne 0x4013e0
lea esp, [esp]
movzx ecx, word [eax + 0x413458]
mov word [eax + 0x417a20], cx
add eax, 2
test cx, cx
jne 0x401350
push 0x413464
push 0x40
push 0x41787c
call fcn.0040467b
add esp, 0xc
push 0x413484
push 0x10
push 0x4178fe
call fcn.0040467b
add esp, 0xc
push 0x413490
push 0x40
push 0x41791e
call fcn.0040467b
mov eax, 0x51
mov ecx, 0x2b8e
add esp, 0xc
mov word [0x4178fc], ax
mov word [0x41799e], cx
xor eax, eax
jmp 0x4013c0
movzx ecx, word [eax + 0x4134b0]
mov word [eax + 0x417a00], cx
add eax, 2
test cx, cx
jne 0x4013c0
mov dword [0x417a40], 5
call fcn.00403457
push 0x4134c0
call fcn.004034e3
add esp, 4
mov dword [0x417740], eax
call fcn.00401430
push 0
push 0
push 0
push 0x401c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004045f7
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
xor ebx, ebx
mov word [ebp - 0x414], ax
call fcn.00407f50
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00407f50
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x413530
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
xor edx, edx
push 0x413524
push ecx
mov word [ebp - 0x410], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401708
mov ebx, 1
push 0x413580
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x413574
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401736
or ebx, 2
push 0x4135c8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x413614
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401764
or ebx, 4
push 0x413620
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x413674
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401795
or ebx, 0x100
push 0x413680
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x4136d4
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017c6
or ebx, 0x200
push 0x4136e0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x413740
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017f7
or ebx, 0x400
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
pop esi
xor ecx, ebp
or eax, 0x2000000
pop ebx
call fcn.004045f7
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
mov ecx, edi
call fcn.00403a3f
add esp, 4
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x401bf6
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407f50
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00407f50
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x416ef0
mov edi, edi
cmp word [esi], 0
je 0x401b86
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040467b
add esp, 0xc
push esi
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.00404606
add esp, 0xc
add esi, 0x118
cmp esi, 0x417468
jl 0x401b50
mov esi, 0x416ef0
lea esp, [esp]
cmp word [esi], 0
je 0x401bb2
push ebx
push edi
mov ecx, esi
call fcn.004042b3
add esp, 8
add esi, 0x118
cmp esi, 0x417468
jl 0x401ba0
push 0x417c78
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404606
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, 2
je 0x401bf6
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004045f7
mov esp, ebp
pop ebp
ret

Function at 0x401da0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
test edi, edi
je 0x401ebe
test esi, esi
je 0x401ebe
mov eax, esi
lea edx, [eax + 2]
jmp 0x401dd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401dd0
sub eax, edx
sar eax, 1
je 0x401ebe
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00407f50
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x401e3e
cmp dword [0x415f10], 3
jne 0x401e3e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41326c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00404606
add esp, 0xc
jmp 0x401e50
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404606
push 0x413270
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.00404928
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ebe
push eax
push 1
push 0x200
push edi
call fcn.00404bb9
mov eax, dword [ebp - 0x210]
push eax
call fcn.00404c43
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004045f7
mov esp, ebp
pop ebp
ret
Function at 0x401f80
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x504d534d
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax]
not cl
mov byte [esi + eax], cl
inc eax
cmp eax, 0x200
jb 0x401fa0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00407f50
add esp, 0xc
mov dword [ebp - 0x218], 0
test esi, esi
je 0x402059
lea ecx, [ebp - 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x413290
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.00404606
push 0x4132ac
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00404928
mov eax, dword [ebp - 0x218]
add esp, 0x18
test eax, eax
je 0x402046
push eax
push 1
push 0x200
push esi
call fcn.00404e0e
mov edx, dword [ebp - 0x218]
push edx
call fcn.00404c43
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004045f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.004045f7
mov esp, ebp
pop ebp
ret
Function at 0x402970
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407f50
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [ebp - 0x410]
push esi
push edx
call fcn.00407f50
add esp, 0xc
lea ebx, [ebp - 0x410]
call fcn.00401ed0
test eax, eax
je 0x402acf
xor eax, eax
nop
movzx ecx, word [eax + 0x413404]
mov word [eax + 0x417570], cx
add eax, 2
test cx, cx
jne 0x4029d0
xor eax, eax
jmp 0x4029f0
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
test cx, cx
jne 0x4029f0
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
test cx, cx
jne 0x402a10
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov cx, word [ebp - 0x2ea]
mov word [0x41746c], ax
mov word [0x4175f0], cx
mov dword [0x4175f4], 5
je 0x402a69
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402a94
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4138b0
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.00404606
add esp, 0xc
push 0x413424
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404606
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
mov esp, ebp
pop ebp
ret

Function at 0x402ae1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x415f10], 0
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00407f50
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b75
mov eax, dword [ebp - 0x118]
push 5
pop ecx
cmp dword [ebp - 0x11c], ecx
jne 0x402b51
cmp eax, 2
jae 0x402b47
cmp eax, 1
jne 0x402b75
mov dword [0x415f10], 3
cmp dword [ebp - 0x11c], 6
jne 0x402b75
test eax, eax
jne 0x402b6a
mov dword [0x415f10], 4
jmp 0x402b75
cmp eax, 1
jne 0x402b75
mov dword [0x415f10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045f7
leave
ret