joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403970
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
sub esp, 0xb18
push ebx
push ebp
mov ebp, dword [esp + 0xb28]
push esi
push edi
push ebp
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov bl, byte [esp + 0x1c]
test bl, bl
lea edi, [esp + 0x1c]
mov esi, edi
mov byte [esp + 0x14], bl
je 0x4039c9
nop
mov ecx, dword [esp + 0x14]
push ecx
add esi, 1
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4039b7
add esi, 1
jmp 0x4039bf
cmp bl, 0x5c
jne 0x4039bf
lea edi, [esi - 1]
mov bl, byte [esi]
test bl, bl
mov byte [esp + 0x14], bl
jne 0x4039a0
lea edx, [esp + 0x1c]
push edx
mov byte [edi], 0
call fcn.004030b0
add esp, 4
test eax, eax
je 0x4039ed
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0xb18
ret
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x412310
push 1
push 0
push 0x412320
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x403b78
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xb2c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov esi, dword [esp + 0xb38]
test esi, esi
je 0x403a66
mov edx, dword [esp + 0xb3c]
xor eax, eax
test edx, edx
je 0x403a58
lea edi, [esp + 0x18]
call fcn.00406bd0
test al, al
je 0x403a54
xor eax, eax
jmp 0x403a58
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x44]
push esi
push ecx
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xb34]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x412330
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
test edi, edi
jl 0x403b6c
push 0x104
lea ecx, [esp + 0x124]
push ecx
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x124]
push ecx
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [0x41abc4], 0
je 0x403b6c
mov eax, ebp
call fcn.00404420
test eax, eax
jne 0x403b6c
push ebp
lea eax, [esp + 0x32c]
push 0x413c64
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov bl, byte [esp + 0x334]
add esp, 0xc
test bl, bl
lea esi, [esp + 0x328]
mov byte [esp + 0x18], bl
je 0x403b6c
lea esp, [esp]
mov ecx, dword [esp + 0x18]
push ecx
add esi, 1
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x403b48
mov eax, dword [0x41abc4]
mov byte [eax], bl
mov dl, byte [esi]
add eax, 1
mov byte [eax], dl
add eax, 1
add esi, 1
jmp 0x403b5d
mov al, bl
sub al, 0x61
cmp al, 0x19
ja 0x403b53
add bl, 0xe0
mov eax, dword [0x41abc4]
mov byte [eax], bl
add eax, 1
mov bl, byte [esi]
test bl, bl
mov dword [0x41abc4], eax
mov byte [esp + 0x18], bl
jne 0x403b20
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 ebp
pop ebx
add esp, 0xb18
ret
Function at 0x4045e0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
sub esp, 8
xor al, al
cmp dword [0x41b98c], 0
mov byte [esp + 3], al
je 0x4046e5
mov eax, dword [0x41b9ac]
push ebx
push ebp
push esi
push edi
push 0x100000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [0x41b98c]
mov cl, byte [eax]
test cl, cl
mov esi, ebx
je 0x404646
lea esp, [esp]
cmp cl, 0x2a
jne 0x404631
mov cl, byte [eax]
add eax, 1
cmp cl, 0xa
jne 0x404625
jmp 0x404640
mov cl, byte [eax]
mov byte [esi], cl
add esi, 1
add eax, 1
cmp cl, 0xa
jne 0x404631
mov cl, byte [eax]
test cl, cl
jne 0x404620
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push 0x41b300
call ebp
push 0x41b300
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x41b300
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4046a5
push 0
lea edx, [esp + 0x18]
push edx
sub esi, ebx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x13], 1
push 3
push 0x41b300
call ebp
mov eax, dword [0x41b98c]
mov ecx, dword [0x41b9ac]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
xor edi, edi
push edi
push ecx
call esi
mov edx, dword [0x41b9ac]
push ebx
push edi
push edx
call esi
mov al, byte [esp + 0x13]
mov dword [0x41abc4], edi
mov dword [0x41b98c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x404770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
test eax, eax
je 0x4047b2
mov edx, dword [esp]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [esp + 8], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push esi
push edi
je 0x4047f4
lea esi, [esp + 0x14]
movzx ecx, byte [esi]
push ecx
call ebp
test eax, eax
je 0x4047d7
add esi, 2
xor al, al
jmp 0x4047e5
cmp byte [esi], 0x5c
jne 0x4047e0
mov al, 1
jmp 0x4047e2
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x4047c6
test al, al
jne 0x4047f4
mov byte [esi], 0x5c
mov byte [esi + 1], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x418310
lea edx, [esp + 0x18]
push edx
call edi
cmp byte [esp + 0x14], 0
je 0x40483f
lea esi, [esp + 0x14]
movzx eax, byte [esi]
push eax
call ebp
test eax, eax
je 0x404822
add esi, 2
xor al, al
jmp 0x404830
cmp byte [esi], 0x5c
jne 0x40482b
mov al, 1
jmp 0x40482d
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x404811
test al, al
jne 0x40483f
mov byte [esi], 0x5c
mov byte [esi + 1], al
mov ecx, dword [esp + 0x120]
push ecx
lea edx, [esp + 0x18]
push edx
call edi
push str..lnk
lea eax, [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push ecx
push edx
mov edx, dword [esp + 0x12c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00403970
add esp, 0x14
xor ecx, ecx
test eax, eax
pop edi
setge cl
pop esi
mov al, cl
pop ebp
add esp, 0x110
ret

Function at 0x4048a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
test eax, eax
je 0x4048e2
mov edx, dword [esp]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [esp + 8], 0
push esi
je 0x404924
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea esi, [esp + 0x10]
movzx ecx, byte [esi]
push ecx
call edi
test eax, eax
je 0x404906
add esi, 2
xor al, al
jmp 0x404914
cmp byte [esi], 0x5c
jne 0x40490f
mov al, 1
jmp 0x404911
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x4048f5
test al, al
pop edi
jne 0x404924
mov byte [esi], 0x5c
mov byte [esi + 1], al
mov edx, dword [esp + 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edx
lea eax, [esp + 0x10]
push eax
call esi
push str..lnk
lea ecx, [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push 0x413845
push 0x413845
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00403970
add esp, 0x14
xor edx, edx
test eax, eax
setge dl
mov al, dl
pop esi
add esp, 0x110
ret
Function at 0x404980
Capabilities:
Check os version
Hide graphical window

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x41b978]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x4024d0
push ebx
push 0x67
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x41b97c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x41b9ac]
push 0x10000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x94
lea edx, [esp + 0x18]
push ebx
push edx
mov dword [0x41b980], eax
call fcn.00409eb0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x404a19
cmp dword [esp + 0x18], 4
jb 0x404a19
push str.CopyFileExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41b9a8], eax
jmp 0x404a1f
mov dword [0x41b9a8], ebx
call fcn.00403e80
mov esi, eax
cmp esi, ebx
jne 0x404b4e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41b530
lea ecx, [esp + 0xb0]
push ecx
call esi
push 0x418110
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x1b8]
push ecx
call esi
mov bl, byte [esp + 0xac]
test bl, bl
lea edi, [esp + 0xac]
mov esi, edi
mov byte [esp + 0x10], bl
je 0x404aab
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov edx, dword [esp + 0x10]
push edx
add esi, 1
call ebp
test eax, eax
je 0x404a99
add esi, 1
jmp 0x404aa1
cmp bl, 0x5c
jne 0x404aa1
lea edi, [esi - 1]
mov bl, byte [esi]
test bl, bl
mov byte [esp + 0x10], bl
jne 0x404a86
test byte [0x41a9b8], 1
mov byte [edi], 0
je 0x404ade
push 0x413845
push 0x413845
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x1c0]
push ecx
push 0x417d10
call fcn.00404770
add esp, 0x14
test byte [0x41a9bc], 1
je 0x404b04
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x1b8]
push eax
push 0x417d10
call fcn.004048a0
add esp, 0xc
call fcn.004045e0
mov ecx, dword [0x41b97c]
push ecx
mov byte [0x41b984], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x41b978]
push 0
push 0x401550
push 0
push 0x70
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x41b97c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret
call fcn.004045e0
mov eax, dword [0x41b97c]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
push eax
call edi
push 0x10
cmp esi, 0xa
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x413ca0
jne 0x404b7a
push 0x413cb8
jmp 0x404b7f
push 0x413d88
push ebx
call esi
push 1
call fcn.00403b90
add esp, 4
test eax, eax
push 0x40
push 0x413dd0
jne 0x404b9e
push 0x413ddc
jmp 0x404ba3
push 0x413df0
push ebx
call esi
mov eax, dword [0x41b9b0]
cmp eax, ebx
je 0x404bc3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x41b9b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x41b97c]
push edx
mov dword [0x41b9b0], ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret
Function at 0x404bf0
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x417f10
push 0x417e10
mov edi, eax
lea eax, [esp + 0x18]
push str.Software_s_s
push eax
xor ebp, ebp
call esi
add esp, 0x10
test ebx, ebx
jne 0x404c62
test edi, edi
jne 0x404c62
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
push ecx
push 0x80000001
call edi
push 0x417e10
lea edx, [esp + 0x14]
push str.Software_s
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x80000001
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x1c]
push edx
push 0x80000001
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404cba
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404cba
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x104
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0xc]
add eax, 1
push eax
push edi
push 1
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404cdd
lea ebp, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x104
ret

Function at 0x404d80
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x404deb
mov edx, dword [esp + 4]
push 0x41b638
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
push 0x41b638
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x41b637], 0x5c
je 0x404de9
push 0x41352c
push 0x41b638
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov bl, 1
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x4059a0
Capabilities:
Create directory
Get common file path
Get disk information
Set current directory

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push 0x104
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, ebx
lea esi, [esp + 0x10]
jle 0x4059e3
cmp byte [esp + eax + 0xf], 0x5c
lea esi, [esp + eax + 0x10]
jne 0x4059e3
add esi, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x10]
push edx
mov byte [esi], bl
call ebp
test eax, eax
je 0x405a14
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x405a07
cmp eax, 6
jne 0x405a14
lea eax, [esp + 0x10]
mov byte [esi], 0x5c
mov byte [esi + 1], bl
push eax
jmp 0x405a8e
push 0x105
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x10]
push edx
call edi
cmp eax, ebx
je 0x405a36
cmp byte [esp + eax + 0xf], 0x5c
je 0x405a3f
mov byte [esp + eax + 0x10], 0x5c
mov byte [esp + eax + 0x11], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.TEMP
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
jne 0x405a7d
push ebx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405a7d
pop edi
pop esi
pop ebp
mov byte [0x41b0f0], bl
pop ebx
add esp, 0x108
ret
push 0x41352c
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x41b0f0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405ab0
Capabilities:
Copy file
Create process on windows
Get common file path
Get disk information
Set current directory
Set file attributes

Disassembly:
sub esp, 0xa10
push esi
lea eax, [esp + 0x614]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x405bc6
mov al, byte [0x41abc8]
test al, al
lea esi, [esp + 0x214]
je 0x405b01
mov ecx, 0x41abc8
mov edx, esi
sub ecx, edx
mov byte [esi], al
mov al, byte [ecx + esi + 1]
add esi, 1
test al, al
jne 0x405af4
cmp byte [0x41b0f0], 0
je 0x405bc6
push 0x41b0f0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x405bc6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x41b0f0
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xb], 0x5c
lea edi, [esp + eax + 0xc]
je 0x405b51
mov byte [edi], 0x5c
add edi, 1
push 0x41aee8
push esi
call ebx
push 0x41aee8
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
pop edi
pop ebx
je 0x405bc6
push 0x80
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x41abc8
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x114]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 5
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
xor al, al
pop esi
add esp, 0xa10
ret
mov al, 1
pop esi
add esp, 0xa10
ret

Function at 0x405dc0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push 0x41b848
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x41b848
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41b848
mov dword [0x41b974], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [0x41b9b4], eax
jne 0x405e0f
mov dword [0x41b9b4], 0x10000
add esp, 0x24
ret
Function at 0x406370
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push eax
xor edi, edi
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call fcn.00405f00
mov esi, dword [esp + 0x20]
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x406459
cmp esi, edi
push ebp
je 0x40644d
cmp dword [esp + 0x14], edi
je 0x40642c
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40644d
mov ecx, dword [esp + 0x1c]
mov esi, dword [0x41b9b4]
mov eax, ecx
xor edx, edx
div esi
mov edx, dword [esp + 0x14]
imul eax, esi
sub ecx, eax
mov edi, ecx
lea ecx, [edi + edx]
push ecx
push eax
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40641f
mov eax, dword [esp + 0x10]
lea edx, [esi + edi]
push edx
call fcn.00405bf0
add esp, 4
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
jmp 0x40644d
mov eax, dword [0x41b9ac]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
lea ecx, [esp + 0x24]
push ecx
push esi
push eax
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
pop ebp
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406463
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4067f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov eax, dword [esi + 0xc]
test eax, eax
mov ebx, ecx
jne 0x406806
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, edi
ja 0x40680c
mov edi, eax
cmp dword [esi + 0x14], 0
je 0x40687b
test edi, edi
mov dword [esp + 0xc], edi
je 0x40688d
lea ebx, [ebx]
mov eax, dword [esi + 0x2c]
cmp eax, edi
jae 0x406858
test eax, eax
je 0x406843
push eax
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x28]
push eax
push ebx
call fcn.0040ad10
mov eax, dword [esi + 0x2c]
add esp, 0xc
sub edi, eax
add ebx, eax
call fcn.00406520
test edi, edi
jne 0x406820
mov eax, dword [esp + 0xc]
sub dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x28]
add ecx, dword [esi + 0x30]
push edi
push ecx
push ebx
call fcn.0040ad10
sub dword [esi + 0x2c], edi
add dword [esi + 0x30], edi
mov eax, dword [esp + 0x18]
add esp, 0xc
sub dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi]
push 0
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
sub dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4068a0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x214
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea ecx, [esp + 0xc]
push ecx
call esi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 7], 0x5c
lea eax, [esp + eax + 7]
jne 0x4068d2
mov byte [eax], 0
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4068ed
mov al, 1
pop esi
add esp, 0x214
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4068e3
push ebx
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
call esi
mov bl, byte [esp + 0x118]
xor edi, edi
test bl, bl
lea esi, [esp + 0x118]
mov byte [esp + 0xc], bl
je 0x40698d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
push eax
add esi, 1
call ebp
test eax, eax
je 0x406943
add esi, 1
jmp 0x40694b
cmp bl, 0x5c
jne 0x40694b
lea edi, [esi - 1]
mov bl, byte [esi]
test bl, bl
mov byte [esp + 0x10], bl
jne 0x406930
test edi, edi
pop ebp
je 0x40698d
lea ecx, [esp + 0x118]
push ecx
mov byte [edi], bl
call fcn.004068a0
add esp, 4
test al, al
je 0x40698d
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40698d
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x214
ret
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x214
ret