joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x513860]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004d0990
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x40c9a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
sub edx, 1
cmp edx, dword [ebp - 4]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
jle 0x40c9d8
mov dword [ebp - 8], 0
jmp 0x40c9e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov esp, ebp
pop ebp
ret

Function at 0x40ceb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004364b0
add esp, 0xc
pop ebp
ret

Function at 0x40d4e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
add ecx, 1
cmp dword [ebp - 8], ecx
jb 0x40d526
mov edx, dword [ebp + 8]
mov dword [edx], 0x3ff
jmp 0x40d569
cmp dword [ebp - 8], 0
jne 0x40d54c
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x515598
call fcn.004364b0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x40d569
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004364b0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret

Function at 0x40d6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040d5c0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x51558c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x50cc34
mov edx, dword [0x51558c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x40d740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x9c]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x98]
mov dword [eax], ecx
cmp dword [ebp - 0x90], 2
jne 0x40d78d
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x13c], edx
jmp 0x40d79e
mov eax, dword [ebp - 0x94]
and eax, 0xffff
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x13c]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 6
jne 0x40d80c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 2
jne 0x40d80c
mov dword [ebp - 0x138], 0x114
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x138]
push edx
call dword [ebp - 4]
test eax, eax
jne 0x40d80c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x134]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x130]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x12c]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret

Function at 0x40f1a0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esp, ebp
pop ebp
ret

Function at 0x40f1d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x51542c], 0
jne 0x40f288
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x51542c], eax
cmp dword [0x51542c], 0
je 0x40f288
push str.OpenThemeData
mov eax, dword [0x51542c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515ee4], eax
push str.CloseThemeData
mov ecx, dword [0x51542c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515ee8], eax
push str.GetThemeColor
mov edx, dword [0x51542c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515eec], eax
push str.DrawThemeBackground
mov eax, dword [0x51542c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515ef0], eax
push str.IsThemeActive
mov ecx, dword [0x51542c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515ef4], eax
push str.IsAppThemed
mov edx, dword [0x51542c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515ef8], eax
cmp dword [0x515ef4], 0
je 0x40f2c6
cmp dword [0x515ef8], 0
je 0x40f2c6
call dword [0x515ef4]
test eax, eax
je 0x40f2b7
call dword [0x515ef8]
test eax, eax
je 0x40f2b7
mov dword [ebp - 4], 1
jmp 0x40f2be
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x40f2cd
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42c270
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]
movsx eax, ax
test eax, eax
jge 0x42c293
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x42c2ab
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x431950
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jne 0x43197e
mov ecx, dword [ebp + 0x18]
movsx edx, byte [ecx + 1]
cmp edx, 0x3a
jne 0x43197e
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [0x5163dc], 0
jne 0x4319ce
push str.ole32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5163dc], eax
cmp dword [0x5163dc], 0
je 0x4319ce
push str.CoTaskMemAlloc
mov ecx, dword [0x5163dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5163e0], eax
push str.CoTaskMemFree
mov edx, dword [0x5163dc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5163e4], eax
push 4
call dword [0x5163e0]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x18]
mov dword [0x5228a0], eax
mov ecx, dword [ebp + 0x20]
mov dword [0x5228a4], ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 1
jne 0x4319ff
mov eax, dword [ebp + 0x1c]
mov dword [0x5228a8], eax
jmp 0x431a09
mov dword [0x5228a8], 0x50d3d0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [0x5228ac], edx
mov dword [0x5228b4], 0
call fcn.00421d00
mov dword [ebp - 0x130], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x12c], eax
push 1
mov eax, dword [ebp - 0x130]
push eax
call fcn.0041ff60
add esp, 8
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], 0
lea edx, [ebp - 0x108]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x431a7b
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x11c], ecx
jmp 0x431a85
mov dword [ebp - 0x11c], str.Select_Directory
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x114], 0x4321b0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov dword [ebp - 0x134], eax
xor eax, eax
cmp dword [ebp - 0x134], 0
sete al
inc eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x134]
push edx
call dword [0x5163e4]
cmp dword [0x513f94], 0
je 0x431af5
mov eax, dword [0x513f94]
mov dword [ebp - 0x138], eax
jmp 0x431b01
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x138], ecx
push 1
mov edx, dword [ebp - 0x138]
push edx
call fcn.004200a0
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x40000000
je 0x431b4d
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x130]
push eax
call fcn.004069f0
add esp, 4
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x431b72
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov esp, ebp
pop ebp
ret
Function at 0x432df0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5167e8], 0
jne 0x432e73
mov dword [ebp - 4], 0
jmp 0x432e11
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x432e69
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x432e32
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x432e5a
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x432e50
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0xc], ecx
jmp 0x432e58
mov edx, dword [ebp - 0xc]
shr edx, 1
mov dword [ebp - 0xc], edx
jmp 0x432e29
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax*4 + 0x5163e8], ecx
jmp 0x432e08
mov dword [0x5167e8], 1
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x432e8c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x432eb8
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 0xc]
shr eax, 8
xor eax, dword [edx*4 + 0x5163e8]
mov dword [ebp - 0xc], eax
jmp 0x432e83
mov eax, dword [ebp - 0xc]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x435a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0xa
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [0x521dfc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x435b7b
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x521dfc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x435b7b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x435b7b
mov edx, dword [ebp - 0x48]
movzx eax, word [edx]
test eax, eax
je 0x435b71
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
movzx eax, word [edx]
test eax, eax
je 0x435b34
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
test edx, edx
je 0x435b32
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x14], eax
jmp 0x435af8
cmp dword [ebp - 0xc], 0xffffffff
je 0x435b63
call fcn.004069c0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 2
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x44]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x48], eax
jmp 0x435acb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esp, ebp
pop ebp
ret
Function at 0x448ba0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x448be2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00447ef0
add esp, 4
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x40]
test eax, eax
je 0x448bd8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0xcf
mov al, 1
jmp 0x448cf8
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcb
jne 0x448cb8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
movzx eax, byte [edx + 0x10]
test eax, eax
je 0x448ca7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x448c1f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
call dword [ecx]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x448c41
xor al, al
jmp 0x448cf8
cmp dword [ebp - 4], 2
jne 0x448c49
jmp 0x448ca7
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x448ca2
cmp dword [ebp - 4], 3
je 0x448c5e
cmp dword [ebp - 4], 1
jne 0x448ca2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 8]
jl 0x448ca2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x128]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [ecx + 8], eax
jmp 0x448c07
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dword [edx + 0x84], ecx
jmp 0x448cec
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xcc
je 0x448cec
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x15
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00448d00
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x448d00
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x448d36
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x198]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x198]
movzx edx, byte [ecx + 8]
test edx, edx
je 0x448dfb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x78]
cmp edx, dword [ecx + 0x60]
jae 0x448dc7
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x448d8f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
call dword [edx + 4]
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x448dc5
xor al, al
jmp 0x448e16
jmp 0x448d4b
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x198]
call dword [ecx + 4]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x198]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x448d36
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x41]
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4898a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov edi, eax
mov ecx, dword [edi + 0x38]
mov esi, dword [edi + 0x40]
lea edx, [ebp - 0xc]
push 0
push edx
sub esi, ecx
push esi
push ecx
push dword [edi + 0xd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
test ecx, ecx
je 0x48994b
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0xe8]
and byte [edi + 0x15d], 0xfb
mov dword [edi + 0x40], eax
add eax, edx
mov dword [edi + 0x44], eax
xor edx, edx
mov dword [edi + 0xa0], edx
mov dword [edi + 0xa4], edx
mov eax, esi
cdq
mov eax, dword [edi + 0xb8]
add esi, eax
adc edx, dword [edi + 0xbc]
mov dword [edi + 0xb8], esi
mov dword [edi + 0xb0], esi
mov dword [edi + 0xbc], edx
mov dword [edi + 0xb4], edx
cmp ecx, 0xffffffff
je 0x489930
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 4]
mov dword [edi + 0xd8], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov ecx, 0xffffffff
jmp 0x4898d0
Function at 0x48ebf0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x490200
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x4902e5
mov eax, dword [0x50fea0]
mov ebx, dword [esi + 0x14]
cmp eax, 2
jge 0x49024c
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
mov edx, dword [ebx + 0x51c5e8]
test edx, edx
jne 0x49029b
mov dword [ebx + 0x51c5e8], 1
jmp 0x49029b
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x51c5e8]
mov dword [ebp - 0x10], edx
push edx
call fcn.004833c0
pop ecx
test eax, eax
jne 0x49029b
mov eax, dword [ebx + 0x51c5e4]
test eax, eax
je 0x4903a9
mov dword [ebx + 0x51c5e8], 0
push 0xffffffffffffffff
push dword [ebx + 0x51c5e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call fcn.004833c0
pop ecx
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x490397
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x49030f
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x4902f4
cmp eax, 2
jge 0x4902cf
mov dword [ebx + 0x51c5e8], 0
jmp 0x4902e5
push dword [ebx + 0x51c5e4]
mov dword [ebx + 0x51c5e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x51c5f8]
push dword [ebx + 0x51c5f4]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x4902be
mov edx, dword [esi]
test edx, edx
je 0x49031d
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test eax, eax
je 0x490328
mov dword [eax], edx
jmp 0x49032e
mov dword [ebx + 0x51c5e0], edx
mov eax, dword [0x50fea0]
mov dword [edi + 0x7c], 0
cmp eax, 1
je 0x49037c
cmp eax, 2
jge 0x490350
mov dword [ebx + 0x51c5e8], 0
jmp 0x490366
push dword [ebx + 0x51c5e4]
mov dword [ebx + 0x51c5e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.004849b0
push esi
call fcn.004849b0
add esp, 8
jmp 0x4902e5
push dword [ebx + 0x51c5f8]
push dword [ebx + 0x51c5f4]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x49033f
lea eax, [ebx + 0x51c5f4]
push eax
call fcn.00483390
pop ecx
jmp 0x4902a9
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx + 0x51c5e8], 0
mov dword [ebx + 0x51c5e4], eax
jmp 0x490284
Function at 0x49dacc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov edx, dword [0x5212e8]
test edx, edx
je 0x49dbb1
mov edx, dword [ebp + 0x20]
cmp edx, 2
je 0x49db05
cmp edx, 1
jne 0x49db17
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x49db27
cmp edx, 0xfffffffa
je 0x49dbe3
test edx, edx
je 0x49dbef
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x49db5f
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x49db5f
push edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call fcn.004eb810
mov edx, dword [ebp - 0x10]
push edx
call fcn.004eb830
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add esp, 8
test ecx, ecx
je 0x49dbb1
push edx
mov dword [ebp - 0x10], edx
push edi
push esi
call fcn.004eb810
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], ebx
cmp ebx, 0xffffffff
je 0x49dc0d
push 0
push edx
push 2
push 0x4fb6bc
call fcn.004eb810
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
mov byte [ebx + esi], 0xa
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
inc dword [edx]
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor edx, edx
push edx
mov dword [eax], edx
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, 1
jmp 0x49db3a
call fcn.004eb830
mov edx, eax
mov eax, dword [0x5212e8]
mov ecx, 1
test eax, eax
jne 0x49db33
jmp 0x49db5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a21f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]