joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c0c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
mov esi, ecx
call edi
and al, 1
cmp al, 1
sete al
push 0x90
mov byte [esi + 0x16], al
call edi
and al, 1
cmp al, 1
sete cl
push 0x91
mov byte [esi + 0x17], cl
call edi
and al, 1
cmp al, 1
sete dl
push 0x5b
mov byte [esi + 0x18], dl
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x42c124
push 0x5c
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x42c124
xor eax, eax
jmp 0x42c129
mov eax, 1
push 0x5d
mov byte [esi + 0x14], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa4
mov byte [esi + 0x15], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa5
mov byte [esi + 0x19], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa2
mov byte [esi + 0x1a], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa3
mov byte [esi + 0x1b], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa0
mov byte [esi + 0x1c], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete al
push 0xa1
mov byte [esi + 0x1d], al
call edi
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
sete cl
xor eax, eax
mov byte [esi + 0x1e], cl
cmp byte [esi + 0x16], al
je 0x42c1eb
mov eax, 0x80
cmp byte [esi + 0x17], 0
je 0x42c1f4
or eax, 0x20
cmp byte [esi + 0x18], 0
je 0x42c1fd
or eax, 0x40
cmp byte [esi + 0x19], 0
je 0x42c206
or eax, 2
cmp byte [esi + 0x1a], 0
je 0x42c20f
or eax, 1
cmp byte [esi + 0x1b], 0
je 0x42c218
or eax, 8
cmp byte [esi + 0x1c], 0
je 0x42c221
or eax, 4
cmp byte [esi + 0x1d], 0
jne 0x42c22b
test cl, cl
je 0x42c22e
or eax, 0x10
pop edi
mov dword [esi + 0x10], eax
pop esi
ret

Function at 0x42dbe0
Capabilities:
Log keystrokes
Log keystrokes via polling
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
je 0x42dc2f
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x42dc2f
cmp dword [0x52ffe0], 0
mov byte [0x52ffdc], 1
jne 0x42dc50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x42d800
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x52ffe0], eax
pop ebp
ret 4
mov eax, dword [0x52ffe0]
test eax, eax
je 0x42dc50
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x52ffe0], 0
mov byte [0x52ffdc], 0
pop ebp
ret 4
Function at 0x42dd00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x52fe2c]
cmp byte [eax + 0x4137], 0
push edi
mov edi, ecx
je 0x42dd1b
xor eax, eax
pop edi
pop ebp
ret 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043bac0
add esp, 4
cmp eax, 0x30
jb 0x42dd33
cmp eax, 0x39
jbe 0x42dd40
cmp dword [edi + 0xc], 0
je 0x42dd40
mov dword [edi + 0xc], 0
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [0x52fe34]
push edi
push ebx
push esi
call fcn.004589f0
mov esi, eax
mov dword [0x52ffd8], esi
test esi, esi
jne 0x42dd93
test edi, edi
je 0x42de9e
mov ecx, edi
call fcn.00489140
test al, al
je 0x42de9e
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ecx, edi
call fcn.0048aab0
mov esi, eax
test esi, esi
je 0x42de9e
jmp 0x42dd96
mov ebx, dword [ebp + 8]
cmp esi, dword [0x510424]
je 0x42de9e
test esi, esi
je 0x42de9e
mov edx, dword [0x52fe2c]
cmp byte [edx + 0x4136], 0
je 0x42ddcf
cmp dword [esi + 4], 8
je 0x42dddc
mov eax, dword [esi + 0x98]
test eax, eax
je 0x42ddcf
cmp word [eax], 0
jne 0x42dddc
mov eax, dword [esi + 8]
test eax, eax
je 0x42dded
call eax
test al, al
jne 0x42dded
xor esi, esi
mov dword [0x52ffd8], esi
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 0x10
mov eax, ebx
and eax, 0xffffff00
cmp eax, 0x400
je 0x42de02
cmp eax, 0x800
jne 0x42de23
test edi, edi
je 0x42de23
mov eax, dword [0x52fe30]
cmp byte [eax + 0x11439], 0
je 0x42de23
push 0xffffffffffffffff
push 0
push 2
push 0x11
mov ecx, edi
call fcn.00491f40
cmp dword [esi + 0x90], 0
je 0x42de9e
and ebx, 0x100000
cmp ebx, 0x100000
sete bl
test bl, bl
je 0x42de52
mov ecx, dword [0x52fe2c]
push 1
add ecx, 0x118
call fcn.0042dbe0
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x90]
push edi
push esi
push 0
push ecx
call edx
test bl, bl
je 0x42de9e
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x42de9e
mov eax, dword [0x52ffe0]
test eax, eax
je 0x42de9e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x52ffe0], 0
mov byte [0x52ffdc], 0
mov eax, esi
pop esi
pop ebx
mov dword [0x52ffd8], 0
pop edi
pop ebp
ret 0x10
Function at 0x42f2b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x42f31d
lea ecx, [ebp - 0xc]
push ecx
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42f37d
cmp dword [ebp - 8], 0
jne 0x42f37d
mov edx, dword [ebp - 0xc]
inc edx
push edi
push edx
call fcn.0044c4d0
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x42f322
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
push ebx
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
pop ebx
je 0x42f36a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x42f36a
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edx, dword [edi]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [edi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
push ecx
call fcn.0044c4f0
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430bc0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x52fe30]
mov cl, byte [eax + 0xa6e]
push ebx
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
xor bl, bl
mov byte [ebp - 1], cl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430c75
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x430c1e
push 2
push 0x30d
mov edi, 0x30c
call fcn.0044c490
add esp, 8
mov esi, eax
jmp 0x430c21
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push esi
lea edx, [ebp - 8]
push edx
lea eax, [edi + edi]
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push str.ConEmuDefaultTerminal
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430c69
cmp dword [ebp - 8], 1
jne 0x430c69
cmp dword [ebp - 0xc], 2
jbe 0x430c69
mov bl, 1
test esi, esi
je 0x430c69
push str._Exit
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
sete byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x430c81
mov dl, byte [ebp - 1]
mov byte [eax], dl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430cc0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8cc
push ebx
push esi
mov esi, dword [0x52fe30]
cmp byte [esi + 0xa6c], 0
push edi
mov edi, ecx
mov byte [ebp - 1], 0
je 0x430cee
cmp byte [esi + 0xa6d], 0
je 0x430cee
mov bl, 1
jmp 0x430cf0
xor bl, bl
push 0x618
lea eax, [ebp - 0x8cc]
push 0
push eax
call fcn.004c9b50
push 0x2a8
lea ecx, [ebp - 0x2b4]
push 0
push ecx
call fcn.004c9b50
add esp, 0x18
cmp byte [esi + 0xa6e], 0
mov eax, 0x4e5034
jne 0x430d2c
mov eax, str.__Exit
mov edx, dword [0x52fe2c]
push eax
add edx, 0x1b4
push edx
lea eax, [ebp - 0x2b4]
push str.__s___SetDefTerm__Detached__MinTSA_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 9]
push ecx
push 0x30b
lea edx, [ebp - 0x8cc]
push edx
mov ecx, edi
call fcn.00430bc0
test al, al
je 0x430d78
cmp word [ebp - 0x8cc], 0
je 0x430d78
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
jne 0x430da1
test bl, bl
je 0x430e6e
lea eax, [ebp - 0x8cc]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x430e6e
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x430e59
test bl, bl
je 0x430e20
lea eax, [ebp - 0x2b4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430de0
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
push 1
push 0
push str.ConEmuDefaultTerminal
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x430e48
push 0
push 0
push 0
push eax
push str.Failed_to_set_ConEmuDefaultTerminal_value_in_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x430e3f
mov ecx, dword [ebp - 8]
push str.ConEmuDefaultTerminal
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x430e48
push 0
push 0
push 0
push eax
push str.Failed_to_remove_ConEmuDefaultTerminal_value_from_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
push 0
push 0
push 0
push eax
mov eax, dword [edx + 4]
push str.Failed_to_open_HKCUSoftwareMicrosoftWindowsCurrentVersionRun_for_write
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431010
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x43109e
lea eax, [edi + 1]
mov dword [ebp - 4], eax
push ebx
mov ecx, dword [esi + 0x24]
mov ebx, dword [ecx + edi*4 - 4]
dec dword [ebp - 4]
dec edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43104d
cmp byte [ebp + 8], 0
je 0x431099
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test ebx, ebx
je 0x43105d
cmp ebx, 0xffffffff
je 0x43105d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
cmp dword [ebp - 4], eax
jge 0x431096
mov edx, dword [esi + 0x24]
sub eax, edi
dec eax
imul eax, dword [esi + 0x14]
lea ecx, [edx + edi*4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004c9f70
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x24]
push ecx
lea ecx, [eax + edx*4 - 4]
push 0
push ecx
call fcn.004c9b50
add esp, 0x18
dec dword [esi + 0x18]
test edi, edi
jne 0x431026
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x431440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 6], 0
jne 0x431458
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov byte [esi + 6], 1
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
test al, al
jne 0x431496
cmp byte [ebp + 0xc], al
je 0x4315d5
cmp dword [esi + 0x60], 0
je 0x4315d5
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
push 0
push 0
push 0xffffffffffffffff
push str.Default_terminal_feature_was_blocked_nwith__NoDefTerm_ConEmu_command_line_argument_
mov ecx, esi
call edx
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 5], 0
push ebx
mov bl, byte [ebp + 0xc]
je 0x4314cd
test bl, bl
je 0x4315d4
push 0
mov ecx, esi
call fcn.00431010
cmp dword [esi + 0x18], 0
jle 0x4314cd
mov eax, dword [esi]
mov edx, dword [eax + 8]
push str.Previous_Default_Terminal_setup_cycle_was_not_finished_yet
mov ecx, esi
call edx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
lea eax, [esi + 0x40]
push eax
push 0
push esi
push 0x4313e0
push 0
push 0
mov byte [esi + 4], 1
mov byte [esi + 5], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x4315b6
cmp byte [ebp + 8], 0
je 0x43159f
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, byte [ebp + 0x10]
mov edx, dword [ebp - 4]
neg ecx
sbb ecx, ecx
and ecx, 0xffff8acf
add ecx, 0x7530
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7f00
push 0
mov dword [ebp + 0xc], eax
call edi
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0xc], 0
pop edi
jne 0x431575
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push 0
push 0
push 0
push str.PostCreatedThread_was_not_finished_in_30_seconds
mov ecx, esi
call eax
lea ecx, [ebp - 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004bad50
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 4]
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x3c], eax
call fcn.004bad50
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
test bl, bl
je 0x4315d0
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push 0
push 0
push 0
push str.Failed_to_start_PostCreatedThread
mov ecx, esi
call eax
mov byte [esi + 5], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431d03
cmp dword [ebp - 4], edi
jne 0x431d03
add dword [esi + 0xb0], edi
mov ecx, dword [esi + 0xb0]
push 0
adc dword [esi + 0xb4], 0
mov eax, dword [esi + 0xb4]
push 0x3e8
push eax
push ecx
mov edi, 0x4b
call fcn.004cadc0
test edx, edx
jl 0x431cbc
jg 0x431c86
cmp eax, 0x270f
jbe 0x431cbc
push 0
push 0x3e8
push edx
push eax
call fcn.004cadc0
mov edi, 0x4d
test edx, edx
jl 0x431cbc
jg 0x431ca6
cmp eax, 0x270f
jbe 0x431cbc
push 0
push 0x3e8
push edx
push eax
call fcn.004cadc0
mov dword [ebp - 8], edx
mov edi, 0x47
mov ecx, dword [esi + 0xac]
movzx edx, di
push edx
push eax
mov eax, dword [esi + 0xa8]
push eax
inc ecx
push ecx
lea edx, [ebp - 0x8c]
push str.Copying__i_of__i___u_c_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x52fe14]
add esp, 0x18
lea eax, [ebp - 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431d12
mov eax, 0x8000ffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433610
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d84b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x4ef93c
mov dword [esi + 8], 0x4ef938
cmp byte [esi + 0x28], 0
mov dword [ebp - 4], 2
je 0x433666
cmp dword [0x52fe14], 0
je 0x433666
mov byte [esi + 0x28], 0
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.ole32.dll_RevokeDragDrop]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0xcc]
push edi
call ebx
cmp dword [esi + 0xbc], 0
jne 0x433691
lea ecx, [esi + 8]
call fcn.004349c0
mov dword [ebp - 0x10], 1
test eax, eax
je 0x433698
mov dword [ebp - 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x10], 0
jne 0x4337ba
mov ecx, dword [0x52fe2c]
push 0x34
call fcn.00409d20
mov ecx, dword [0x52fe14]
push eax
push 0x4ef960
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x433786
push edi
call ebx
cmp dword [esi + 0xbc], 0
jle 0x43376b
mov edi, dword [esi + 0xbc]
mov eax, dword [esi + 0xc8]
dec edi
lea ecx, [edi*8]
mov ebx, dword [eax + ecx]
add eax, ecx
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbc]
lea edx, [edi + 1]
cmp edx, eax
jge 0x433758
mov ecx, dword [esi + 0xc8]
sub eax, edi
dec eax
imul eax, dword [esi + 0xb8]
lea ecx, [ecx + edi*8]
push eax
lea edx, [ecx + 8]
push edx
push ecx
call fcn.004c9f70
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xc8]
push eax
lea eax, [edx + ecx*8 - 8]
push 0
push eax
call fcn.004c9b50
add esp, 0x18
dec dword [esi + 0xbc]
cmp dword [esi + 0xbc], 0
jg 0x4336e2
lea edi, [esi + 0xcc]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4337ba
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
cmp dword [esi + 0xbc], 0
jne 0x4337aa
lea ecx, [esi + 8]
call fcn.004349c0
test eax, eax
jne 0x4337aa
xor ebx, ebx
jmp 0x4337af
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x433780
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.004351a0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0xc8]
xor edi, edi
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4337ea
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi + 0xc8], edi
mov ecx, ebx
mov dword [esi + 0xc0], edi
mov dword [esi + 0xbc], edi
mov byte [ebp - 4], 0
call fcn.00435360
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00405c30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4347f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
add ecx, 0x11
sub esp, 0x4d8
cmp ecx, 0x12c
jl 0x434811
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
push ebx
push esi
push edi
xor ebx, ebx
push 0x2b0
lea edx, [ebp - 0x4d4]
push ebx
push edx
mov dword [ebp - 0x4d8], ebx
call fcn.004c9b50
mov esi, dword [ebp + 0xc]
push 0x5c
push esi
call fcn.004ca94c
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x434846
mov edi, esi
jmp 0x434849
add edi, 2
mov eax, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x434854
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
sar eax, 1
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 8]
cmp eax, 0x12c
jle 0x434885
mov eax, 0x12c
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x10]
cmp eax, dword [ebx]
jle 0x43488e
mov dword [ebx], eax
mov eax, dword [0x52fe30]
cmp byte [eax + 0x1128e], 0
mov esi, dword [ebp + 0x14]
je 0x4348e2
mov edx, dword [ebp + 0xc]
push 0xd01
push 0x2b4
lea ecx, [ebp - 0x4d8]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4348e2
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [ebp + 8]
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [0x52fe30]
movzx eax, byte [ecx + 0x1128e]
neg eax
sbb eax, eax
and eax, 0x12
add eax, esi
mov esi, dword [ebp + 0x18]
mov ecx, dword [esi]
lea edx, [ecx + 1]
add ecx, 0x10
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x18], eax
add eax, ecx
cmp eax, 0x12c
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x12c
jg 0x434921
mov dword [ebp - 0x10], eax
push 0x104
push edi
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434943
push 0
push 0x18820
sub eax, edx
lea ecx, [ebp - 0x18]
push ecx
sar eax, 1
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x224]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextExW]
mov eax, dword [ebp - 0xc]
inc eax
cmp dword [esi], eax
jge 0x434985
cmp eax, 0x12c
jl 0x434983
mov eax, 0x12c
mov dword [esi], eax
mov eax, dword [ebp - 0x4d8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x434999
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x434a60
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [ebp + 8]
push esi
mov esi, eax
mov dword [ebp - 4], esi
test eax, eax
je 0x434bea
push ebx
mov dword [ebp + 8], 1
mov ebx, 0x5c
push edi
jmp 0x434a90
cmp word [esi], 0
je 0x434be8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push 0x4eff5c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx ecx, word [esi]
mov edx, 0xff
cmp dx, cx
jae 0x434ad1
mov ecx, edx
jmp 0x434adc
movzx ecx, cx
test ecx, ecx
jle 0x434b5a
add esi, 2
mov edi, ecx
mov cl, byte [esi]
movzx edx, cl
cmp edx, ebx
ja case.0x434af1.1
movzx edx, byte [edx + 0x434c08]
jmp dword [edx*4 + 0x434bf0]
mov byte [ebp + eax - 0x208], 0x2e
jmp 0x434b50
mov byte [ebp + eax - 0x208], bl
inc eax
mov byte [ebp + eax - 0x208], 0x6e
jmp 0x434b50
mov byte [ebp + eax - 0x208], bl
inc eax
mov byte [ebp + eax - 0x208], 0x72
jmp 0x434b50
mov byte [ebp + eax - 0x208], bl
inc eax
mov byte [ebp + eax - 0x208], 0x74
jmp 0x434b50
mov byte [ebp + eax - 0x208], bl
inc eax
mov byte [ebp + eax - 0x208], bl
jmp 0x434b50
mov byte [ebp + eax - 0x208], cl
inc eax
inc esi
sub edi, 1
jne 0x434ae1
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov byte [ebp + eax - 0x208], 0xa
mov byte [ebp + eax - 0x207], 0
test edi, edi
je 0x434bc8
push 0x200
lea eax, [ebp - 0x608]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x608]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434ba0
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 8]
push edx
add eax, eax
push eax
lea ecx, [ebp - 0x608]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x434bd5
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, word [esi]
inc dword [ebp + 8]
add esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x434a90
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret