joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eed
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x45fa83
call fcn.00444db8
sub esp, 0x2c8
push ebx
push esi
push edi
lea eax, [ebp - 0x1d0]
push dword [ebp + 8]
xor edi, edi
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x1d1], 0x2f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x404f3b
lea eax, [ebp - 0x1d0]
push 0x4684d0
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1d0]
push eax
call esi
cmp dword [ebp + 0x10], 1
jne 0x404f5e
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0040a167
lea eax, [ebp - 0x2d4]
push 0x4684cc
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2d4]
push eax
call esi
push edi
push edi
push edi
push edi
push 0x7530
push 0x468148
lea ecx, [ebp - 0xcc]
call fcn.00405082
mov dword [ebp - 0xcc], 0x461614
push 0x80400100
lea eax, [ebp - 0x1d0]
push edi
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], edi
call fcn.0043efdc
test al, al
je 0x405051
lea ecx, [ebp - 0xcc]
call fcn.0043f950
mov esi, eax
push esi
call fcn.00444e5b
mov ebx, eax
pop ecx
lea eax, [ebp + 8]
lea ecx, [ebp - 0xcc]
push eax
push esi
push ebx
call fcn.0043f122
cmp dword [ebp + 8], esi
je 0x404ff3
push ebx
call fcn.00444382
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0xcc]
call fcn.004052ff
cmp ebx, edi
je 0x405051
push edi
push 0x80
push 2
push edi
push edi
lea eax, [ebp - 0x2d4]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405046
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x405046
push ebx
call fcn.00444382
pop ecx
xor ebx, ebx
cmp esi, edi
je 0x405051
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 2
je 0x405060
push ebx
call fcn.00444382
pop ecx
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004052ab
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14

Function at 0x407eaf
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [esp + 4], 0
je 0x407ee3
cmp dword [0x46fc90], 0
jne 0x407ede
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push sym.DEMO32.EXE_KeyboardHookProc
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x46fc90], eax
jne 0x407efa
xor eax, eax
ret 4
mov eax, dword [0x46fc90]
test eax, eax
je 0x407ede
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x46fc90], 0
push 1
pop eax
jmp 0x407ee0
Function at 0x407fe8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
push edi
jl 0x4080da
cmp ecx, 3
je 0x4080da
cmp dword [0x46fca0], edx
jne 0x4080da
cmp dword [0x46fc98], edx
mov edi, dword [ebp + 0xc]
je 0x4080b9
cmp edi, 0x12
je 0x4080b9
mov eax, dword [ebp + 0x10]
test eax, 0x80000000
jne 0x4080b9
cmp dword [0x46fca4], edx
je 0x40804e
cmp dword [0x46fc80], edi
jne 0x40804e
push eax
push edi
jmp 0x4080e0
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov dword [0x46fca4], edx
mov dword [0x46fc80], edi
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov dword [ebp + 0xc], edx
call esi
test ah, 0x80
je 0x408081
mov dword [ebp + 0xc], 2
push 0x11
call esi
test ah, 0x80
je 0x40808e
or dword [ebp + 0xc], 1
push 0x12
call esi
test ah, 0x80
pop esi
je 0x40809c
or dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x46fc9c]
test eax, eax
je 0x4080b9
lea ecx, [ebp - 0x30]
push ecx
push 9
push dword [0x46fc98]
call eax
cmp dword [0x468514], 0
je 0x4080d5
mov eax, dword [0x46fc90]
test eax, eax
je 0x4080d5
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push eax
jmp 0x4080e7
push 1
pop eax
jmp 0x4080ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push dword [0x46fc90]
call dword [sym.imp.USER32.dll_CallNextHookEx]
pop edi
leave
ret 0xc
Function at 0x408233
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
jge 0x408256
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x46fc8c]
call dword [sym.imp.USER32.dll_CallNextHookEx]
jmp 0x4082ab
mov edi, dword [ebp + 0x10]
mov ecx, 0x100
mov edx, 0x104
mov eax, dword [edi]
cmp eax, ecx
je 0x40826d
cmp eax, edx
jne 0x4082a3
cmp dword [0x46fc78], ebx
jne 0x4082b2
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, dword [0x46fc7c]
jne 0x4082ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov dword [0x46fc84], eax
mov dword [0x46fc78], 1
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4082ab
cmp dword [0x46fc78], ebx
jne 0x4082b2
xor eax, eax
jmp 0x4083a3
cmp eax, ecx
push esi
je 0x4082bb
cmp eax, edx
jne 0x4082e9
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, dword [0x46fc7c]
jne 0x4082e9
push dword [0x46fc8c]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
mov dword [0x46fc8c], ebx
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4083a0
mov eax, dword [0x46fc6c]
mov edx, dword [0x46fc70]
lea ecx, [eax + eax*4]
inc eax
mov dword [0x46fc6c], eax
lea esi, [edx + ecx*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x46fc84]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [0x46fc6c]
mov eax, dword [0x46fc74]
lea edx, [ecx + ecx*4 + 0x19]
shl edx, 2
cmp edx, eax
jb 0x4083a0
cmp eax, 0x100000
jb 0x408347
sub ecx, 0x32
mov dword [0x46fc6c], ecx
jmp 0x4083a0
add eax, 0x3e8
mov esi, 0x7ffe
push eax
push esi
mov dword [0x46fc74], eax
call fcn.0040a287
mov ecx, dword [0x46fc74]
mov edi, eax
add ecx, 0xfffffc18
xor eax, eax
test ecx, ecx
jbe 0x40838e
mov ecx, dword [0x46fc70]
mov cl, byte [ecx + eax]
mov byte [eax + edi], cl
mov ecx, dword [0x46fc74]
inc eax
add ecx, 0xfffffc18
cmp eax, ecx
jb 0x408371
push dword [0x46fc70]
push esi
call fcn.0040a362
mov dword [0x46fc70], edi
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4089c4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dword [ebp - 4], ebx
je 0x408a02
mov eax, dword [esi]
push ebx
push 0x11
mov byte [eax], bl
mov eax, dword [esi]
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x11
call edi
mov ecx, dword [esi]
mov dword [ebp - 4], 1
mov byte [ecx + 3], al
add dword [esi], 4
cmp dword [ebp + 0xc], ebx
je 0x408a31
cmp dword [ebp + 0x10], ebx
mov eax, dword [esi]
je 0x408a12
mov byte [eax], bl
jmp 0x408a15
mov byte [eax], 4
mov eax, dword [esi]
push ebx
push 0x12
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x12
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
cmp dword [ebp + 0x14], ebx
je 0x408a71
cmp dword [ebp + 0x10], ebx
jne 0x408a47
cmp dword [ebp + 0xc], ebx
je 0x408a47
mov eax, dword [esi]
mov byte [eax], 4
jmp 0x408a4b
mov eax, dword [esi]
mov byte [eax], bl
mov eax, dword [esi]
push ebx
push 0x10
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax], bl
mov eax, dword [esi]
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x10
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
cmp dword [ebp + 0x10], ebx
jne 0x408a82
cmp dword [ebp + 0xc], ebx
je 0x408a82
mov eax, dword [esi]
mov byte [eax], 4
jmp 0x408a86
mov eax, dword [esi]
mov byte [eax], bl
mov eax, dword [esi]
push ebx
mov byte [eax + 1], 1
mov ecx, dword [esi]
mov eax, dword [ebp + 0x18]
push eax
mov byte [ecx + 2], al
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
cmp dword [ebp + 0x10], ebx
mov eax, dword [esi]
jne 0x408ab4
cmp dword [ebp + 0xc], ebx
je 0x408ab4
mov byte [eax], 5
jmp 0x408ab7
mov byte [eax], 1
mov eax, dword [esi]
push ebx
mov byte [eax + 1], 1
mov ecx, dword [esi]
mov eax, dword [ebp + 0x18]
push eax
mov byte [ecx + 2], al
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
cmp dword [ebp + 0x14], ebx
mov eax, dword [esi]
je 0x408b0b
cmp dword [ebp + 0x10], ebx
jne 0x408aea
cmp dword [ebp + 0xc], ebx
je 0x408aea
mov byte [eax], 5
jmp 0x408aed
mov byte [eax], 1
mov eax, dword [esi]
push ebx
push 0x10
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x10
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
mov eax, dword [esi]
inc dword [ebp - 4]
cmp dword [ebp + 0xc], ebx
je 0x408b31
mov byte [eax], 1
mov eax, dword [esi]
push ebx
push 0x12
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x12
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
mov eax, dword [esi]
inc dword [ebp - 4]
cmp dword [ebp + 0x10], ebx
je 0x408b55
mov byte [eax], 1
mov eax, dword [esi]
push ebx
push 0x11
mov byte [eax + 1], 1
mov eax, dword [esi]
mov byte [eax + 2], 0x11
call edi
mov ecx, dword [esi]
mov byte [ecx + 3], al
add dword [esi], 4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409782
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor al, al
cmp byte [esi], al
je 0x4097bb
cmp byte [esi + 1], 0x3a
jne 0x4097bb
cmp byte [esi + 2], al
jne 0x4097bb
mov byte [ebp - 0x102], 0x5c
mov byte [ebp - 0x101], al
lea eax, [ebp - 0x104]
push eax
call fcn.00409411
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x4097de
or eax, eax
leave
ret
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
leave
ret

Function at 0x40999d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0
push dword [ebp + 8]
call fcn.0040a1a8
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
jne 0x4099bd
push 2
jmp 0x4099e6
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4099e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x409a61
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea eax, [ebp - 8]
push 0
push eax
push 0xe
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
cmp byte [edi], 0x42
jne 0x409a40
cmp byte [edi + 1], 0x4d
jne 0x409a40
lea eax, [ebp - 8]
push 0
add ebx, 0xfffffff2
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
push edi
and dword [eax], 0
and dword [eax + 4], 0
call fcn.00409a67
pop ecx
mov esi, eax
pop ecx
jmp 0x409a4c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a127
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x40a1a8
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, 0x4000
test ebx, ebx
je 0x40a1e8
cmp ebx, 0x200
je 0x40a1d9
cmp ebx, 0x1000
je 0x40a1cd
cmp ebx, esi
je 0x40a1e8
jmp 0x40a1e3
push 3
mov ecx, 0xc0000000
pop eax
push 2
jmp 0x40a1f2
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, 0xffffffff
jmp 0x40a224
push 1
mov ecx, SysReAllocStringLen
pop eax
push 3
pop edx
push edi
push 0
push 0x80
push edx
push 0
push eax
push ecx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp ebx, esi
mov edi, eax
jne 0x40a221
cmp edi, 0xffffffff
je 0x40a21e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a221
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x40a5bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], 0x105
je 0x40a613
lea eax, [ebp - 0x214]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40a617
xor eax, eax
jmp 0x40a63a
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x40a62f
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x40c812
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [ebp + 0xc]
sub eax, 0xf
je 0x40c939
sub eax, 0x101
je 0x40c860
dec eax
jne 0x40c84b
cmp word [ebp + 0x10], 1
je 0x40c852
cmp word [ebp + 0x10], 2
je 0x40c852
xor eax, eax
jmp 0x40c9c4
push 1
push edi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40c9c1
push dword [ebp + 0x14]
push 8
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push edi
push esi
push 1
call ebx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call ebx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x30]
push str.DEMO32.EXE
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40c922
lea eax, [esi + 0xa]
push eax
push dword [0x4688c0]
call fcn.0040a287
mov edi, eax
lea eax, [ebp - 0x30]
push edi
push esi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push str.StringFileInfo040904b0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c916
push dword [ebp - 8]
push 0x7c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
push dword [0x4688c0]
call fcn.0040a362
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40c84b
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x29a
push dword [0x46f8a8]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ebx, eax
test ebx, ebx
je 0x40c9b6
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x10]
push 0xcc0020
push 0
push 0
push esi
push 0x27
add eax, 0xffffffd4
push 0x102
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffefe
cdq
sub eax, edx
sar eax, 1
push eax
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c9cb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push str.Not_Installed
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call esi
lea eax, [ebp - 0x110]
push eax
call fcn.0040a5bf
test eax, eax
je 0x40ca56
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40ca56
push edi
push dword [0x4688c0]
call fcn.0040a287
mov esi, eax
test esi, esi
je 0x40ca56
push esi
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca56
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4684cc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ca5a
xor eax, eax
jmp 0x40ca89
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x14]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 0x10]
mov eax, dword [eax + 0x10]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x40d51d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x468f68
push 0x468f64
push dword [0x46f8a8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d5e6
push eax
push dword [0x46f8a8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d5e6
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push 4
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00444e70
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x14]
push 4
push eax
push edi
call fcn.00444e70
mov eax, dword [ebp - 4]
add esp, 0x18
cmp word [edi + 2], 0x100
jne 0x40d59b
add eax, 0xfffffffc
add esi, 0x18
push eax
push esi
lea eax, [edi + 4]
jmp 0x40d5b1
lea ecx, [eax - 4]
mov eax, 0x3b0
cmp ecx, eax
ja 0x40d5a9
mov eax, ecx
add esi, 0x18
push eax
push esi
lea eax, [edi + 0x2c]
push eax
call fcn.00444e70
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
cmp dword [eax + 0x60], ecx
jle 0x40d5d8
lea edx, [edi + 0x2c]
mov esi, dword [eax + 0x70]
mov edi, dword [edx]
add edx, 4
mov dword [esi + ecx*4], edi
inc ecx
cmp ecx, dword [eax + 0x60]
jl 0x40d5c7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
pop eax
pop edi
pop esi
jmp 0x40d5e8
xor eax, eax
pop ebx
leave
ret
Function at 0x40d5eb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push dword [esi + 4]
call fcn.004155c1
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
push 0x12
push esi
mov byte [ebp - 0x118], bl
call fcn.0040e787
cmp byte [ebp - 0x118], bl
je 0x40d67d
push ebx
push 0x2c
push 0x15
lea eax, [ebp - 0x118]
push 0x28
push eax
push edi
call fcn.004057d5
add esp, 0x18
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
push str.File
push eax
call fcn.00409cbb
test eax, eax
je 0x40d67d
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0040a1a8
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
jne 0x40d684
xor eax, eax
jmp 0x40d75c
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x118]
push 4
push eax
push edi
call esi
lea eax, [ebp - 0x118]
push 0x468f70
push eax
mov byte [ebp - 0x114], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d753
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x118]
push 0xc
push eax
push edi
call esi
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push 4
push eax
push edi
call esi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ebx
push eax
push 4
push edi
push dword [ebp - 0xc]
call esi
cmp word [edi + 2], 0x100
jne 0x40d711
lea eax, [ebp - 8]
push ebx
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffffc
push eax
lea eax, [edi + 4]
jmp 0x40d72b
mov eax, dword [ebp - 4]
lea ecx, [eax - 4]
mov eax, 0x3b0
cmp ecx, eax
ja 0x40d722
mov eax, ecx
lea ecx, [ebp - 8]
push ebx
push ecx
push eax
lea eax, [edi + 0x2c]
push eax
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x60], ebx
jle 0x40d74d
add edi, 0x2c
mov ecx, dword [eax + 0x70]
mov edx, dword [edi]
add edi, 4
mov dword [ecx + ebx*4], edx
inc ebx
cmp ebx, dword [eax + 0x60]
jl 0x40d73c
mov edi, dword [ebp - 0xc]
push 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f017
Capabilities:
Create directory

Disassembly:
push edi
push 0x105
push dword [0x4688c0]
call fcn.0040a287
mov edi, eax
test edi, edi
je 0x40f067
push esi
push dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push edi
call fcn.00409392
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esp + 0x10]
push edi
call esi
push edi
call fcn.0040954f
push str..INI
push edi
call esi
pop esi
mov eax, edi
pop edi
ret 8
Function at 0x40f148
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x40f268
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push 0x468fa8
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
call esi
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
mov esi, 0x46fb08
push 0xff
push eax
push esi
lea eax, [ebp - 0x208]
push str.Type
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x108]
push str.String
push eax
call edi
test eax, eax
jne 0x40f213
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0xff
push eax
push esi
lea eax, [ebp - 0x208]
push str.Data
push eax
call ebx
lea eax, [ebp - 0x108]
push esi
push eax
call edi
test eax, eax
je 0x40f268
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x40f263
lea eax, [ebp - 0x108]
push str.Number
push eax
call edi
test eax, eax
jne 0x40f268
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0xff
push eax
push esi
lea eax, [ebp - 0x208]
push str.Data
push eax
call ebx
lea eax, [ebp - 0x108]
push esi
push eax
call edi
test eax, eax
je 0x40f268
lea eax, [ebp - 0x108]
push eax
call fcn.004447f8
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 1
pop eax
jmp 0x40f26a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14