joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f07c
Capabilities:
Clear file content
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f207
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x46f220
call fcn.00411a48
mov edx, dword [ebp - 4]
mov eax, 0x4971f8
call fcn.00407260
mov eax, dword [0x4971f8]
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov word [0x4971f4], ax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x494c40]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.KERNEL32.DLL_InitializeCriticalSection
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x46f244
call fcn.00411a48
mov edx, dword [ebp - 0x10]
mov eax, 0x4971fc
call fcn.00407260
mov eax, dword [0x4971fc]
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov word [0x4971f6], ax
mov eax, dword [0x4971fc]
call fcn.004072ec
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dword [0x497200], eax
mov dl, 1
mov eax, dword [0x424204]
call fcn.0042f160
mov dword [0x497238], eax
call fcn.0046eb94
mov dl, 1
mov eax, dword [0x45c150]
call fcn.0046e91c
mov dword [0x4971e0], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4764ec]
call fcn.0047f2d8
mov edx, dword [0x4914e0]
mov dword [edx], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x476640]
call fcn.0048074c
mov edx, dword [0x491368]
mov dword [edx], eax
mov eax, dword [0x491368]
mov eax, dword [eax]
mov dl, 1
call fcn.00482d44
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45a88c]
call fcn.0045ee00
mov dword [0x49723c], eax
push 0x46f26c
call sub.KERNEL32.DLL_SetEndOfFile
mov ebx, eax
mov ecx, 0x45cb0c
mov edx, 0x45cb1c
mov eax, dword [0x458654]
call fcn.0042e1e0
test ebx, ebx
je 0x46f1e9
push 0x46f27c
push ebx
call fcn.0040b274
mov dword [0x490aa8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f20e
lea eax, [ebp - 0x10]
call fcn.00407250
lea eax, [ebp - 4]
call fcn.00407250
ret
Function at 0x4700bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x423af0]
call fcn.004052c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4701bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
call fcn.0042f300
mov edi, eax
xor eax, eax
push ebp
push 0x470172
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
dec ebx
test ebx, ebx
jl 0x47014c
inc ebx
xor esi, esi
mov eax, dword [ebp - 8]
dec eax
cmp esi, eax
jne 0x47012c
xor edx, edx
mov eax, edi
call fcn.0042ea1c
mov dword [ebp - 4], eax
jmp 0x470148
xor edx, edx
mov eax, edi
call fcn.0042ea1c
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0042e8b4
xor edx, edx
mov eax, edi
call fcn.0042e90c
inc esi
dec ebx
jne 0x470116
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470179
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
ret

Function at 0x47e810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
test byte [ebx + 0x1c], 0x10
jne 0x47e8e8
cmp dword [0x490d0c], 0
je 0x47e8e8
mov eax, ebx
call fcn.00469004
test al, al
je 0x47e8e8
push 0xffffffffffffffec
mov eax, ebx
call fcn.00468c58
push eax
call sub.user32.dll_DispatchMessageW
mov esi, eax
cmp byte [ebx + 0x340], 0
jne 0x47e85d
cmp byte [ebx + 0x368], 0
je 0x47e8bc
test esi, 0x80000
jne 0x47e87b
or esi, 0x80000
push esi
push 0xffffffffffffffec
mov eax, ebx
call fcn.00468c58
push eax
call sub.user32.dll_GetWindowLongW
movzx eax, byte [ebx + 0x340]
mov eax, dword [eax*4 + 0x490d9c]
movzx edx, byte [ebx + 0x368]
or eax, dword [edx*4 + 0x490da4]
push eax
movzx eax, byte [ebx + 0x341]
push eax
mov eax, dword [ebx + 0x36c]
call fcn.00443184
push eax
mov eax, ebx
call fcn.00468c58
push eax
call dword [0x490d0c]
jmp 0x47e8e8
and esi, 0xfff7ffff
push esi
push 0xffffffffffffffec
mov eax, ebx
call fcn.00468c58
push eax
call sub.user32.dll_GetWindowLongW
push 0x485
push 0
push 0
mov eax, ebx
call fcn.00468c58
push eax
call sub.user32.dll_GetKeyState
pop esi
pop ebx
ret
Function at 0x480b18
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x480cc9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0xac], 0
jne 0x480cb3
mov eax, dword [0x4913d8]
cmp byte [eax], 0
jne 0x480cb3
push ebx
push fcn.004813d4
call fcn.00476bf8
mov dword [ebx + 0x174], eax
mov eax, fcn.0040b700
mov dword [fcn.0040b700], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x490e3c]
push eax
mov eax, dword [0x494c40]
push eax
call fcn.0040b7f8
test eax, eax
jne 0x480bbd
mov eax, dword [0x494c40]
mov dword [0x490e28], eax
push 0x490e18
call sub.user32.dll_GetKeyboardLayout
test ax, ax
jne 0x480bbd
lea edx, [ebp - 0x2c]
mov eax, dword [0x49111c]
call fcn.0040a270
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x423674]
call fcn.00415100
call fcn.00405db0
push 0x84ca0000
push 0
mov eax, dword [0x4911e4]
mov eax, dword [eax]
call eax
sar eax, 1
jns 0x480bd4
adc eax, 0
push eax
push 1
mov eax, dword [0x4911e4]
mov eax, dword [eax]
call eax
sar eax, 1
jns 0x480be7
adc eax, 0
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x494c40]
push eax
push 0
mov eax, dword [ebx + 0x8c]
call fcn.004072ec
mov ecx, eax
mov edx, dword [0x490e3c]
mov eax, 0x80
call fcn.0040bc14
mov dword [ebx + 0x170], eax
mov byte [ebx + 0xac], 1
mov eax, dword [ebx + 0x174]
push eax
push 0xfffffffffffffffc
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowLongW
mov eax, dword [0x491278]
cmp byte [eax], 0
je 0x480c72
mov eax, ebx
call fcn.00481b74
push eax
push 1
push 0x80
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetMenuState
mov eax, ebx
call fcn.00481b74
push eax
push 0xfffffffffffffff2
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindow
push 0
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_DestroyCursor
mov ebx, eax
push 0
push 0xf030
push ebx
call fcn.0040b708
push 0
push 0xf000
push ebx
call fcn.0040b708
mov eax, dword [0x491278]
cmp byte [eax], 0
je 0x480cb3
push 0
push 0xf010
push ebx
call fcn.0040b708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480cd0
lea eax, [ebp - 0x2c]
call fcn.00407250
ret
Function at 0x481f48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
xor ebx, ebx
mov eax, dword [esi + 4]
cmp eax, 0x100
jb 0x482036
cmp eax, 0x109
ja 0x482036
call fcn.0040b7f0
mov ebp, eax
test ebp, ebp
jne 0x481ff8
mov ebp, dword [esi]
mov eax, dword [edi + 0x44]
test eax, eax
je 0x481f9b
cmp ebp, dword [eax + 0x37c]
jne 0x481f9b
call fcn.00468c58
mov ebp, eax
jmp 0x481fb0
push ebp
call sub.user32.dll_ClientToScreen
mov ebp, eax
mov eax, ebp
call fcn.0045c7f8
test al, al
jne 0x481faa
test ebp, ebp
jne 0x481f93
test ebp, ebp
jne 0x481fb0
mov ebp, dword [esi]
push ebp
call sub.user32.dll_EnumWindows
test eax, eax
je 0x481fd9
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, 0xbc00
push eax
push ebp
call sub.user32.dll_GetMenuState
test eax, eax
je 0x482036
mov bl, 1
jmp 0x482036
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, 0xbc00
push eax
push ebp
call sub.user32.dll_GetMenuStringW
test eax, eax
je 0x482036
mov bl, 1
jmp 0x482036
push esp
push ebp
call sub.user32.dll_DrawFrameControl
lea eax, [esp + 4]
push eax
mov eax, dword [edi + 0x170]
push eax
call sub.user32.dll_DrawFrameControl
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jne 0x482036
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, 0xbc00
push eax
push ebp
call sub.user32.dll_GetMenuState
test eax, eax
je 0x482036
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x484d24
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d04
mov eax, dword [ebp - 8]
call fcn.00406d04
xor eax, eax
push ebp
push 0x484e16
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x484d9e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040747c
mov eax, dword [ebp - 0xc]
call fcn.00411180
test al, al
je 0x484d94
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040747c
mov eax, dword [ebp - 0x10]
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x484daf
mov dl, 1
mov eax, dword [0x4260a0]
call fcn.00431c74
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040747c
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.0040747c
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov eax, ebx
call fcn.004052f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484e1d
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00407258
lea eax, [ebp - 8]
mov edx, 2
call fcn.004065c4
ret
Function at 0x486d9c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], esp
mov eax, dword [ebp - 8]
inc eax
shl eax, 2
sub esp, eax
lea eax, [ebp - 0xc]
mov dword [eax], esp
mov eax, ebx
call fcn.0041155c
mov esi, eax
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, 3
and eax, 0xfffffffc
sub esp, eax
lea eax, [ebp - 0x14]
mov dword [eax], esp
test edi, edi
jne 0x486e03
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x486e11
mov eax, dword [ebp - 8]
sub eax, edi
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push esi
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov word [eax + edx*2 - 2], 0
inc esi
add ebx, esi
inc edi
cmp edi, dword [ebp - 8]
jne 0x486dc4
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CompareStringW
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x491268]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp eax, 0x80020006
jne 0x486e6e
push ebp
call fcn.00486d68
pop ecx
jmp 0x486e73
call fcn.00486610
mov esp, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x487888
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407248
mov eax, dword [ebp - 8]
call fcn.00407248
xor eax, eax
push ebp
push 0x4879a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.004072ec
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x487982
mov eax, dword [ebp - 0x14]
call fcn.00404200
mov esi, eax
push esi
mov eax, dword [ebp - 0x14]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4879bc
push esi
call sub.version.dll_VerQueryValueW
cmp dword [ebp - 0x18], 0
je 0x487976
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea edx, [ebp - 0x38]
mov ecx, 2
mov eax, 0x4879fc
call fcn.00411a48
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004072ec
push eax
push esi
call sub.version.dll_VerQueryValueW
cmp dword [ebp - 0x1c], 0
je 0x487976
mov ecx, dword [ebp - 0x1c]
dec ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
call fcn.0040739c
mov bl, 1
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404234
jmp 0x48798e
mov eax, dword [0x491368]
mov eax, dword [eax]
call fcn.00482660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4879b0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407258
ret
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4258d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405f42
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4258d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4258d0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x4031b5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41bd9c]
sub esi, dword [0x41fda8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x425840], eax
jle 0x403313
push dword [0x41fda4]
call fcn.0040319e
push ebx
push ebx
push dword [0x41fda8]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x41bd98], esi
mov dword [0x40bd0c], ebx
mov ebp, 0x413d98
mov eax, dword [0x41fda0]
sub eax, dword [0x41fda4]
mov edi, 0x4000
cmp eax, edi
jg 0x40322a
mov edi, eax
push edi
mov esi, 0x41bda0
push esi
call fcn.0040316c
test eax, eax
je 0x403325
add dword [0x41fda4], edi
mov dword [0x413d28], esi
mov dword [0x413d2c], edi
cmp dword [0x4257ec], ebx
je 0x403281
cmp dword [0x4258c0], ebx
jne 0x403281
mov eax, dword [0x41bd98]
sub eax, dword [0x41bd9c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41fda8]
mov dword [0x40bd0c], eax
call fcn.004030cd
pop ecx
mov ecx, 0x413d10
mov dword [0x413d30], ebp
mov dword [0x413d34], 0x8000
call fcn.00406779
test eax, eax
jl 0x40332a
mov esi, dword [0x413d30]
sub esi, ebp
je 0x4032df
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40332f
cmp esi, dword [esp + 0x10]
jne 0x40332f
add dword [0x41fda8], esi
cmp dword [0x413d2c], ebx
jne 0x403250
jmp 0x4032eb
cmp dword [0x413d2c], ebx
jne 0x40332a
cmp edi, ebx
je 0x40332a
mov eax, dword [0x41bd9c]
mov ecx, eax
sub ecx, dword [0x41fda8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403214
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 1
call fcn.004030cd
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40331d
push 0xfffffffffffffffd
pop eax
jmp 0x40331d
push 0xfffffffffffffffe
jmp 0x40332c
Function at 0x403333
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40335f
mov ecx, dword [0x425838]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x41bd9c], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.004031b5
cmp eax, edi
jl 0x403458
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x403454
cmp dword [ebp - 4], esi
jne 0x403454
push dword [ebp + 8]
add dword [0x41bd9c], esi
call fcn.004031b5
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403457
cmp dword [ebp + 0x10], edi
jne 0x403423
cmp dword [ebp + 8], edi
jle 0x40344f
mov esi, 0x41bda0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4033d3
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x403454
cmp edi, dword [ebp - 4]
jne 0x403454
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40341f
cmp dword [ebp + 0x14], edi
jne 0x40341f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41bd9c], eax
cmp dword [ebp + 8], 0
jg 0x4033c6
jmp 0x40344f
push 0xfffffffffffffffe
jmp 0x403456
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40342e
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x403454
mov eax, dword [ebp - 4]
add dword [0x41bd9c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403457
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405986
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4221f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4221f0], 0x44
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4059c1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405afd
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405b1a
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x405b1d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x405b4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x405b90
test edi, edi
jne 0x405b57
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b8a

Function at 0x405b94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c05
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405bf4
cmp dword [ebp + 0x14], 1
je 0x405bf6
cmp dword [ebp + 0x14], 2
je 0x405bf6
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405d8e
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405d85
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405e03
cmp dword [0x423b78], ebx
je 0x405e03
cmp byte [0x424b80], bl
je 0x405dcd
cmp dword [0x40a058], 0xffffffff
jne 0x405dd6
push 4
push 0x40000000
push 0x424b80
call fcn.00405b1d
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x405e03
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405e03
push esi
push 0x408cb4
mov esi, 0x423b80
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422238
push esi
call fcn.00405cad
push esi
call fcn.00405a8c
mov edi, eax
test edi, edi
jne 0x406021
xor eax, eax
jmp 0x406079
push edi
call fcn.00405ccf
test byte [0x425848], 0x80
je 0x40603a
mov al, byte [edi]
test al, al
je 0x40601d
cmp al, 0x5c
je 0x40601d
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
sub edi, esi
jmp 0x40605a
push esi
call fcn.00405f1b
test eax, eax
je 0x406054
test byte [eax], 0x10
je 0x40607e
push esi
call fcn.00405fd9
push esi
call ebx
cmp eax, edi
jg 0x406045
push esi
call fcn.00405fac
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406078