joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c2a7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
jne 0x41c407
push dword [esp + 0xc]
lea ecx, [esi + 0x64]
call fcn.00419db1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x41c40b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MP3Close
push eax
call edi
push str.MP3DeInit
mov dword [esi], eax
push dword [esi + 0x60]
call edi
push str.MP3GetCurrentPos
mov dword [esi + 4], eax
push dword [esi + 0x60]
call edi
push str.MP3GetLength
mov dword [esi + 8], eax
push dword [esi + 0x60]
call edi
push str.MP3GetMPEG_Args
mov dword [esi + 0xc], eax
push dword [esi + 0x60]
call edi
push str.MP3GetPlayer
mov dword [esi + 0x10], eax
push dword [esi + 0x60]
call edi
push str.MP3GetPlayerMode
mov dword [esi + 0x14], eax
push dword [esi + 0x60]
call edi
push str.MP3Init
mov dword [esi + 0x18], eax
push dword [esi + 0x60]
call edi
push str.MP3Open
mov dword [esi + 0x1c], eax
push dword [esi + 0x60]
call edi
push str.MP3Pause
mov dword [esi + 0x20], eax
push dword [esi + 0x60]
call edi
push str.MP3Play
mov dword [esi + 0x24], eax
push dword [esi + 0x60]
call edi
push str.MP3SetDevice
mov dword [esi + 0x28], eax
push dword [esi + 0x60]
call edi
push str.MP3SetExternalValues
mov dword [esi + 0x2c], eax
push dword [esi + 0x60]
call edi
push str.MP3SetPriority
mov dword [esi + 0x30], eax
push dword [esi + 0x60]
call edi
push str.MP3Stop
mov dword [esi + 0x34], eax
push dword [esi + 0x60]
call edi
push str.MP3Resume
mov dword [esi + 0x38], eax
push dword [esi + 0x60]
call edi
push str.MP3Suspend
mov dword [esi + 0x40], eax
push dword [esi + 0x60]
call edi
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], eax
pop edi
je 0x41c40b
cmp dword [esi + 0x20], ebx
je 0x41c40b
cmp dword [esi + 0x34], ebx
je 0x41c40b
cmp dword [esi + 0x28], ebx
je 0x41c40b
cmp dword [esi], ebx
je 0x41c40b
cmp dword [esi + 0x10], ebx
je 0x41c40b
cmp dword [esi + 0x14], ebx
je 0x41c40b
cmp dword [esi + 8], ebx
je 0x41c40b
cmp dword [esi + 0xc], ebx
je 0x41c40b
cmp dword [esi + 0x18], ebx
je 0x41c40b
cmp dword [esi + 4], ebx
je 0x41c40b
cmp dword [esi + 0x1c], ebx
je 0x41c40b
cmp dword [esi + 0x30], ebx
je 0x41c40b
cmp dword [esi + 0x24], ebx
je 0x41c40b
cmp eax, ebx
je 0x41c40b
cmp dword [esi + 0x40], ebx
je 0x41c40b
mov al, 1
jmp 0x41c40d
xor al, al
pop esi
pop ebx
ret 4
Function at 0x41cf26
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
push str.RAM:_t
call fcn.00419db1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x14
test bl, 1
je 0x41cf58
inc ebx
mov esi, str._d_MB_t
push ebx
push esi
push edi
mov dword [0x47a588], ebx
call fcn.0041a30f
mov eax, dword [0x47a06c]
add esp, 0xc
test eax, eax
jne 0x41cf86
push eax
push 0x4296d8
mov ecx, edi
call fcn.00419ee6
jmp 0x41cf99
push eax
push esi
push edi
call fcn.0041a30f
add esp, 0xc
cmp ebx, dword [0x47a06c]
jb 0x41cfa0
push 0x47a7cc
jmp 0x41cfab
inc dword [0x47a1c8]
push 0x47a7b4
mov ecx, edi
call fcn.00419f64
mov ecx, edi
call fcn.0041ab9e
push eax
push 0
push 0x180
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
mov dword [0x47a1cc], ebx
pop esi
pop ebx
leave
ret

Function at 0x41d5af
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x41d645
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41d645
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 0xc], eax
jbe 0x41d63e
push eax
call fcn.0042200e
mov esi, eax
pop ecx
test esi, esi
jne 0x41d5ed
mov eax, 0x8007000e
jmp 0x41d64a
push esi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41d637
and dword [ebp + 8], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x427c6c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41d637
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d637
mov ecx, dword [eax + 8]
push esi
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
call fcn.0042201c
pop ecx
xor eax, eax
jmp 0x41d64a
push esi
call fcn.0042201c
pop ecx
mov eax, 0x80004005
jmp 0x41d64a
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x41d690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x408], 0
push esi
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x407]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x408]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41d6ec
mov eax, esi
jmp 0x41d877
lea eax, [ebp - 0x408]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d8.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041d5af
pop ecx
pop ecx
push 4
test eax, eax
pop edi
jl 0x41d795
mov eax, dword [ebp - 4]
mov esi, 0x371
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x41d762
push esi
push 1
push 8
push edi
call fcn.0041d64e
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041d66d
add esp, 0x20
test eax, eax
jge 0x41d78e
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x41d795
push esi
push 0xa28
push 1
push 5
call fcn.0041d64e
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041d66d
add esp, 0x20
test eax, eax
jl 0x41d795
mov dword [ebp + 8], 0x10008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.dpnet.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041d5af
pop ecx
test eax, eax
pop ecx
jl 0x41d834
mov eax, dword [ebp - 4]
mov esi, 0x86
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x41d801
push esi
push 0
push 9
push edi
call fcn.0041d64e
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041d66d
add esp, 0x20
test eax, eax
jge 0x41d82d
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x41d834
push esi
push 0xe5d
push 2
push 5
call fcn.0041d64e
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041d66d
add esp, 0x20
test eax, eax
jl 0x41d834
mov dword [ebp + 8], 0x20008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d9.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041d5af
pop ecx
pop ecx
pop ebx
test eax, eax
jl 0x41d874
mov dword [ebp + 8], 9
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x41dd0a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x24
lea eax, [ebp - 0x24]
push 0
mov esi, ecx
push eax
call fcn.00421740
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x47a9b8
mov ecx, esi
call fcn.00419e1f
push dword [ebp - 0x10]
push 0x429908
push esi
call fcn.0041a30f
add esp, 0xc
mov ecx, esi
call fcn.0041ab9e
push eax
push 0
push 0x180
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret
Function at 0x41e104
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x10
pop ebx
mov esi, ecx
push ebx
call fcn.0042200e
mov edi, eax
pop ecx
test edi, edi
je 0x41e1ea
push ebx
push 0
push edi
call fcn.00421740
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x47a988
mov ecx, esi
call fcn.00419e1f
push 9
mov ecx, esi
call fcn.00419e97
push 0
push edi
mov ecx, esi
call fcn.00419ee6
push edi
call fcn.0042201c
pop ecx
mov ecx, esi
call fcn.0041ab9e
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x180
push dword [esi + 0xc]
call ebx
mov edi, 0x100
push edi
call fcn.0042200e
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x41e1ea
push edi
push 0
push eax
mov dword [ebp - 0xc], edi
call fcn.00421740
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x47a994
mov ecx, esi
call fcn.00419e1f
push 9
mov ecx, esi
call fcn.00419e97
push 0
mov ecx, esi
push dword [ebp - 4]
call fcn.00419ee6
push dword [ebp - 4]
call fcn.0042201c
pop ecx
mov ecx, esi
call fcn.0041ab9e
push eax
push 0
push 0x180
push dword [esi + 0xc]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f357
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x47a0c8], ebx
je 0x41f376
push ebx
push dword [ebp + 8]
call fcn.0041f121
jmp 0x41f4be
push esi
mov esi, 0x104
push edi
push esi
call fcn.0042200e
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x41f39b
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push esi
push ebx
push edi
call fcn.00421740
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
cmp byte [eax + edi - 1], 0x5c
je 0x41f3c5
push edi
call ebx
mov byte [eax + edi], 0x5c
push str.wininit.ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x10]
call fcn.00419c64
push 0
push 0
push edi
lea ecx, [ebp - 0x10]
call fcn.0041a96d
test eax, eax
jle 0x41f4ad
push str.NUL
lea ecx, [ebp - 0x1c]
call fcn.00419cd4
push esi
call fcn.0042200e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41f419
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push esi
push 0
push ebx
call fcn.00421740
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
xor esi, esi
lea ecx, [ebp - 0x1c]
push esi
push ebx
call fcn.00419ee6
push ebx
call fcn.0042201c
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
xor ebx, ebx
call fcn.00419c64
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041a87a
test al, al
je 0x41f49d
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a7d7
mov ecx, eax
call fcn.0041a015
test al, al
jne 0x41f485
mov ebx, dword [ebp - 4]
push ebx
jmp 0x41f453
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
sub eax, ebx
push eax
push ebx
call fcn.0041a248
push edi
lea ecx, [ebp - 0x10]
call fcn.0041ac8e
lea ecx, [ebp - 0x28]
call fcn.00419d9a
lea ecx, [ebp - 0x1c]
call fcn.00419d9a
push edi
call fcn.0042201c
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00419d9a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41f7b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [0x47a428], ebx
push edi
mov edi, dword [eax + 0x30]
jle 0x41f7f8
mov esi, 0x47a41c
push ebx
mov ecx, esi
call fcn.0041c45e
cmp eax, edi
je 0x41f7ed
inc ebx
inc ebx
cmp ebx, dword [0x47a428]
jl 0x41f7d5
jmp 0x41f7f8
inc ebx
mov ecx, esi
push ebx
call fcn.0041c45e
mov edi, eax
xor esi, esi
cmp dword [0x47a414], esi
jle 0x41f899
push esi
mov ecx, 0x47a408
call fcn.0041c45e
cmp dword [eax], edi
je 0x41f820
inc esi
cmp esi, dword [0x47a414]
jl 0x41f806
jmp 0x41f899
add eax, 4
xor esi, esi
cmp eax, esi
je 0x41f899
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, eax
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41f899
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xc
mov dword [ebp + 8], eax
call fcn.0042200e
cmp eax, esi
pop ecx
je 0x41f870
mov ecx, eax
call fcn.00419c64
mov ebx, eax
jmp 0x41f872
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.0041a504
cmp eax, esi
jne 0x41f8a2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x41f899
mov ecx, ebx
call fcn.00419d9a
push ebx
call fcn.0042201c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], esi
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x41f887
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x41f887
mov eax, ebx
jmp 0x41f89b

Function at 0x41fc62
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 0x104
push edi
push 0
push esi
call fcn.00421740
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x41fc98
push esi
call edi
mov byte [eax + esi], 0x5c
mov ecx, 0x47a264
call fcn.0041ab9e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
push esi
call edi
push str._Uninstaller.exe
push esi
call edi
pop edi
mov al, 1
pop esi
ret 4
Function at 0x41feb0
Capabilities:
Copy file
Delete directory
Delete file
Get file size
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
push 0x429b10
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [0x47a0b4], 0x40
jne 0x420036
test byte [0x47a0ba], 2
jne 0x420036
xor ebx, ebx
cmp byte [esi + 0x90], bl
push ebx
je 0x41ff1a
push 1
mov ecx, 0x479ee8
call fcn.00414a46
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.0041fc62
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41ffda
push 0x80
push 3
push ebx
push 1
push 0xc0000000
mov ecx, esi
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 8], eax
je 0x42002d
cmp eax, ebx
je 0x42002d
lea ecx, [ebp - 0x18]
mov byte [esi + 0x92], 1
call fcn.00419c64
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0041f4c3
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041ab9e
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041ab9e
push eax
push 1
mov ecx, 0x479ee8
call fcn.00414a46
mov ecx, esi
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.00419d9a
cmp dword [0x47a528], ebx
jbe 0x420025
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.0041fc62
lea eax, [ebp - 0x11c]
mov esi, 0x47a528
push ebx
push eax
mov ecx, esi
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x429ff8
mov ecx, esi
call fcn.00419db1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420025
xor ebx, ebx
push 1
cmp byte [esi + 0x90], bl
jne 0x420027
pop edi
push ebx
push dword [esi + 0x20]
call fcn.0040d988
pop ecx
pop ecx
cmp eax, ebx
je 0x420069
push eax
call fcn.0040d2a3
mov eax, edi
inc edi
push eax
push dword [esi + 0x20]
call fcn.0040d988
add esp, 0xc
jmp 0x42004e
push 1
pop edi
push ebx
push dword [esi + 0x38]
call fcn.0040d988
pop ecx
cmp eax, ebx
pop ecx
je 0x420025
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
inc edi
push eax
jmp 0x42006d
Function at 0x420088
Capabilities:
Copy file
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
test byte [0x47a0ba], 2
push esi
push edi
mov esi, ecx
je 0x4200ae
test byte [0x47a0b4], 0x40
jne 0x4200ae
mov al, 1
jmp 0x42024c
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.0041fc62
lea eax, [ebp - 0x120]
push eax
call fcn.0040d9bb
test al, al
pop ecx
je 0x420108
push 0x104
call fcn.0042200e
mov edi, eax
pop ecx
test edi, edi
jne 0x4200ef
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push edi
mov ecx, esi
call fcn.0041fc62
push edi
mov ecx, esi
call fcn.0041f357
push edi
call fcn.0042201c
pop ecx
jmp 0x420111
test byte [0x47a0b4], 0x40
je 0x42011d
mov ecx, esi
call fcn.00420252
jmp 0x42024c
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00419c64
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0041f4c3
push 0x104
call fcn.0042200e
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
mov dword [ebp - 8], edi
jne 0x420158
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push edi
mov ecx, esi
call fcn.0041fc62
push ebx
push edi
mov ecx, esi
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041ab9e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
je 0x420211
cmp eax, ebx
je 0x420211
push 2
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x1c]
call fcn.0041ab9e
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp - 4]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
mov ecx, esi
mov byte [esi + 0x90], 1
call fcn.0041f357
push dword [ebp - 8]
call fcn.0042201c
pop ecx
mov bl, 1
jmp 0x420241
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call fcn.0042201c
pop ecx
push ebx
mov ecx, 0x47ae08
call fcn.0041ab9e
push eax
mov ecx, 0x479ee8
push dword [ebp + 8]
call fcn.0041916b
lea ecx, [ebp - 0x1c]
call fcn.00419d9a
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x423d95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x429e18
cmp edx, dword [eax]
je 0x423db7
add eax, 8
inc ecx
cmp eax, 0x429ea8
jl 0x423da8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x429e18]
jne 0x423ee5
mov eax, dword [0x47b198]
cmp eax, 1
je 0x423ebf
test eax, eax
jne 0x423de8
cmp dword [0x429b64], 1
je 0x423ebf
cmp edx, 0xfc
je 0x423ee5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423e1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004222c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00421bb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423e62
lea eax, [ebp - 0x1a4]
push eax
call fcn.00421bb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425a6c
push edi
call fcn.00422560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004222c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004222d0
lea eax, [ebp - 0xa0]
push 0x425a4c
push eax
call fcn.004222d0
push dword [esi + 0x429e1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004222d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00424790
add esp, 0x2c
pop edi
jmp 0x423ee5
lea eax, [ebp + 8]
lea esi, [esi + 0x429e1c]
push 0
push eax
push dword [esi]
call fcn.00421bb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x18006c49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18006ca2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006ca2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006c91
cmp esi, ecx
jae 0x18006ca2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c7f
cmp esi, ecx
jae 0x18006ca2
cmp word [esi], 0
je 0x18006ca2
lfence
mov eax, esi
jmp 0x18006ca4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007d98
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007db3
mov al, 1
jmp 0x18007df6
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.18132ed0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180115b2
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007daf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1811e228
leave
ret
Function at 0x18008341
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d400c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.18009127
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x180083e6
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x180083f1
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x180083fb
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x181d5140]
mov ecx, dword [eax + 0x181d5144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008474
cmp ecx, 9
ja 0x18008474
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.18009127
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008457
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1800845a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18006f52
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x1800840a
call fcn.18011f7e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18006f52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e228
leave
ret