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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x480230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov esi, 8
movsx edi, bl
mov ecx, dword [edi*4 + 0x483a58]
test ecx, ecx
je 0x4145e0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi*4 + 0x483a58], 0
sub esi, 1
jne 0x4145c4
push 0x46f340
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4146de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x24
movlpd qword [ebp - 0x14], xmm0
lea edi, [ebx*4 + 0x483a58]
movlpd qword [ebp - 0xc], xmm0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], 0x80e2
lea eax, [esi + 0x14]
mov ecx, dword [esi + 0x36]
mov dword [ebp - 0x18], eax
mov eax, dword [0x483050]
push 0
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4146de
mov eax, dword [edi]
lea edx, [ebp - 0x30]
push 0
push edx
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x38]
push edx
push dword [esi + 0x36]
push 0
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x2c]
lea eax, [esi + 0x3a]
push eax
push dword [ebp - 0x38]
call fcn.0041ad40
mov edx, dword [ebp - 0x30]
add esp, 0xc
test edx, edx
je 0x4146ac
mov eax, dword [ebp - 0x2c]
add eax, 0x3a
push edx
add eax, esi
push eax
push dword [ebp - 0x34]
call fcn.0041ad40
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov eax, dword [edi]
push edx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x4c]
mov eax, dword [edi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004192c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c7
mov esp, ebp
pop ebp
ret

Function at 0x414820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [0x483a9c], 0
jne 0x41483b
push 0x10000
call fcn.004269e5
add esp, 4
mov dword [0x483a9c], eax
push 0x46f340
push 0x46f348
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x414852
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6400
push eax
push dword [0x483a9c]
call fcn.0041ad40
add esp, 0xc
mov eax, 1
ret
Function at 0x45531d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00454f15

Function at 0x455328
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045509f

Function at 0x45a37b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00459d39

Function at 0x45bef3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045bdc7
Function at 0x403290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4660
call fcn.0044fe10
push ebx
push esi
push edi
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x48]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x4c], ebx
call fcn.0043efa0
add esp, 0xc
cmp dword [ebp + 8], 0x40
jb 0x403409
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x4c]
call fcn.00402fee
cmp eax, ebx
je 0x403409
mov eax, dword [ebp - 0x48]
lea esi, [eax + edi]
mov edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x25a]
push ebx
push eax
mov dword [ebp + 8], ebx
mov word [ebp - 0x25c], bx
call fcn.0043efa0
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40332f
push str.gzip
push dword [ebp + 0x10]
call fcn.0043fbd2
test eax, eax
pop ecx
pop ecx
jne 0x40332f
push 0x45540c
lea edi, [ebp - 0x25c]
mov dword [ebp + 8], 1
call fcn.00406e27
pop ecx
push edi
call fcn.004069ec
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x403409
push dword [ebp - 0x34]
push esi
push edi
call fcn.004078fd
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0xc
push edi
call esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], 1
je 0x403409
push dword [ebp + 0xc]
call fcn.004069ec
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x403409
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x65b]
push ebx
push eax
mov byte [ebp - 0x65c], bl
call fcn.0043efa0
add esp, 0xc
push ebx
push ebx
push edi
lea eax, [ebp - 0x65c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x25c]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0x65c]
push eax
call fcn.0043a6cf
mov edi, eax
cmp edi, ebx
pop ecx
je 0x403404
jmp 0x4033df
push eax
lea eax, [ebp - 0x465c]
push eax
push dword [ebp + 8]
call fcn.004078fd
add esp, 0xc
lea eax, [ebp - 0x465c]
mov ecx, edi
call fcn.0043a918
cmp eax, ebx
jg 0x4033cc
mov eax, edi
call fcn.0043ab64
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4067e5
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x4067f1
xor eax, eax
inc eax
pop edi
ret
push str.GDIPlus.dll
call fcn.00407d72
cmp eax, edi
pop ecx
mov dword [esi], eax
je 0x4068aa
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GdiplusStartup
push eax
call edi
push str.GdiplusShutdown
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GdipSaveImageToFile
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GdipGetImageEncodersSize
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.GdipGetImageEncoders
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GdipCreateBitmapFromHBITMAP
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GdipDisposeImage
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GdipLoadImageFromFile
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.GdipCreateHBITMAPFromBitmap
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.GdipCreateBitmapFromFile
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.GdipGetAllPropertyItems
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.GdipGetPropertySize
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.GdipCreateBitmapFromScan0
push dword [esi]
mov dword [esi + 0x30], eax
call edi
xor edi, edi
mov dword [esi + 0x34], eax
inc edi
mov eax, edi
pop edi
ret

Function at 0x406a05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0043f735
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x406b98
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004069d3
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406c2a
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x406c13
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x406c13
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x406c1c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x406c33
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x406f43
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40716f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 8]
call fcn.00406f43
test eax, eax
pop ecx
je 0x407189
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043ed4a
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00441893
add esp, 0x10
test eax, eax
je 0x4071be
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0040716f
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
leave
ret

Function at 0x4071ef
Capabilities:
Get common file path

Disassembly:
cmp word [0x483098], 0
push esi
mov esi, 0x483098
jne 0x407210
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4832a4], eax
push esi
push dword [esp + 0xc]
call fcn.0043ed4a
mov eax, dword [0x4832a4]
pop ecx
pop ecx
pop esi
ret

Function at 0x40770d
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x455388
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x407d72
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
call fcn.0043efa0
add esp, 0xc
cmp word [0x4832a8], 0
mov esi, 0x4832a8
jne 0x407dba
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x4834b4], eax
lea eax, [ebp - 0x800]
push esi
push eax
call fcn.0043ed4a
lea esi, [ebp - 0x800]
call fcn.00406a29
push dword [ebp + 8]
mov eax, esi
push eax
call fcn.0043ed20
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x407df4
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x407df7
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x407e54
push ebx
push edi
push ebp
call fcn.0043f735
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x407e52
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call fcn.0043f3d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40859c
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4085c8
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x4085e3
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x4085ea
call fcn.00408635
cmp dword [esp + 4], 0
je 0x40862e
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call fcn.0043f735
push ebx
mov ebp, eax
call fcn.0043f735
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x408627
push ebx
push esi
mov eax, edi
call fcn.004071cb
pop ecx
pop ecx
jmp 0x40862b
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x4087e2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
and dword [ebp + 0x10], 0
push edi
push dword [ebp + 0xc]
call fcn.004069d3
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x40884b
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test ebx, ebx
mov esi, eax
je 0x408810
mov dword [ebx], esi
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
call fcn.0040877f
test eax, eax
je 0x40883d
mov eax, dword [ebx]
push esi
push eax
push edi
xor esi, esi
call fcn.004078d5
add esp, 0xc
test eax, eax
jne 0x408841
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x10], eax
jmp 0x408841
or dword [ebp + 0x10], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x408854
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x40885d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
mov esi, eax
call fcn.004088c9
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4088bd
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push dword [esi]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x4088bd
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x4088bd
xor eax, eax
inc eax
jmp 0x4088c4
call fcn.004088c9
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x408abf
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x270], ebx
push edi
je 0x408bb1
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408bb1
call dword [sym.imp.USER32.dll_EmptyClipboard]
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [esi + 0x270]
call dword [sym.imp.GDI32.dll_GetObjectW]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 8], eax
call esi
push ebx
mov dword [ebp - 0x10], eax
call edi
mov edi, eax
mov eax, dword [ebp + 8]
push dword [eax + 0x270]
push edi
call esi
push 0xcc0020
push ebx
push ebx
push edi
push dword [ebp - 0x20]
mov dword [ebp + 8], eax
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp + 8]
push edi
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408dcb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.004069d3
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x408e54
push ebx
push esi
push edi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
lea edi, [ebx + 5]
lea esi, [ebp - 0xc]
mov dword [ebp - 4], 0x1388
call fcn.0040875b
mov edi, dword [ebp - 0xc]
push ebx
push edi
push dword [ebp + 0xc]
xor esi, esi
call fcn.004078d5
lea eax, [edi + ebx]
mov byte [eax], 0
mov byte [eax + 1], 0
add esp, 0xc
mov byte [eax + 2], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x34], esi
push 0xffffffffffffffff
push edi
add eax, 0x20
push eax
call fcn.00408255
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.00408746
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
jmp 0x408e56
xor eax, eax
leave
ret 8

Function at 0x4097dd
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x482a08
push dword [esp + 0xc]
push esi
push 0x455388
push dword [esp + 0x14]
push 0x482c18
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret
Function at 0x409802
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044fe10
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call fcn.0043efa0
add esp, 0xc
push 0x482a08
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x455388
push dword [ebp + 8]
push 0x482c18
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x409871
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call fcn.0043ed4a
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x409875
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044fe10
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call fcn.0043efa0
add esp, 0xc
mov edi, 0x482a08
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x455388
push dword [ebp + 8]
mov esi, 0x482c18
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
jne 0x4098e2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x4098e4
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x409c53
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00406f43
test eax, eax
pop ecx
je 0x409cda
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x482a08
push edi
call fcn.0043ed4a
push str.general
mov esi, 0x482c18
push esi
call fcn.0043ed4a
add esp, 0x10
push edi
push 0
push 0x456320
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x482ca8
mov dword [0x482ca0], eax
call fcn.004097dd
push 0x3f
push str.TranslatorName
mov esi, 0x482d28
call fcn.004097dd
push 0xff
push str.TranslatorURL
mov esi, 0x482da8
call fcn.004097dd
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40aada
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
and dword [ebp - 0x2b4], 0
push 0x2b0
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.0043efa0
add esp, 0xc
push 0x111
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2b4], 0
je 0x40ab31
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b0]
leave
ret 4
Function at 0x40abe1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, edi
call fcn.0040a16b
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x40ac6f
cmp dword [ebp + 8], 0
je 0x40ac2c
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x40ac2c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x40ac6f
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x40ac40
test byte [esi + 0x10], 0x20
je 0x40ac6f
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, edi
call fcn.0040a8d0
test eax, eax
je 0x40ac64
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0040ab52
test eax, eax
jne 0x40ac79
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x40ac09
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x40ac72

Function at 0x40b13b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044fe10
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call fcn.0043efa0
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0043f060
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40c1f7
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2c8], ebx
push edi
je 0x40c2c6
cmp dword [esi + 0x2d0], ebx
je 0x40c288
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call fcn.0043efa0
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call fcn.0043efa0
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2bc], eax
push eax
jmp 0x40c2b7
call fcn.00407e5f
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2bc]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x2b4]
call ebp
cmp dword [esi + 0x2cc], ebx
je 0x40c30b
call fcn.00407e5f
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2c0]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x2b4]
call ebp
call fcn.00407e5f
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x2b8], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x2b8]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x2b8]
call edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x2b8]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esi + 0x2b8]
mov esi, dword [esi + 0x2b4]
push eax
push ebx
push 0x1208
push esi
call fcn.0040508c
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret