joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f048
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4bda28
cmp dword [edi], 0
jne 0x41f0c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4bda24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ba524
mov ecx, 2
call fcn.00402934
mov edx, 0x41f020
lea eax, [esi + 5]
call fcn.0041f040
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f040
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f099
mov dword [0x4bda24], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420698
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42069e
ret

Function at 0x422c8c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422cdd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422cc4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422cb4
jmp 0x422cdd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422cc5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457dc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x457e00]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457de1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457df0
or bl, 4
test esi, 0x20000000
je 0x457dfb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457e50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00457e04
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x45e424
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45e436
add esp, 0xfffffff0
call fcn.0040393c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dfc4
mov eax, dword [0x4bc124]
mov dword [eax + 4], ebx
mov dword [eax], 0x45e7c8
mov eax, dword [0x4bc130]
mov dword [eax + 4], ebx
mov dword [eax], 0x45e7d4
mov eax, ebx
call fcn.0045e7e0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
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, 0x45aca8
push eax
push 0
push 0
mov eax, dword [0x4bc298]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fa2c]
call fcn.004211a0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fa2c]
call fcn.004211a0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fa2c]
call fcn.004211a0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045ec48
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45eb24
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45eb24
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45eb24
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e573
call fcn.00403994
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46cdcc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46cea4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bdcc4], 0
jne 0x46ce88
lea eax, [ebp - 4]
mov edx, 0x46cebc
call fcn.00404480
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404898
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46ce88
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46ce81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46ce6b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46cecc
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46ce6b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4bdcc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce88
mov eax, dword [ebp - 0xc]
call fcn.0040279c
ret
mov ebx, dword [0x4bdcc4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ceab
lea eax, [ebp - 4]
call fcn.004043e8
ret

Function at 0x47cfb8
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4bdce8], 0
jne 0x47cfdb
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47cf2c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4bdce8], eax
ret

Function at 0x47fde4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47fe6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bdcf4
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47fe57
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ab4c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x47fe84
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4bc3bc]
mov dl, 1
mov eax, dword [0x47ef48]
call fcn.0040b4a4
call fcn.00403da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fe74
lea eax, [ebp - 0x1c]
call fcn.004043e8
ret

Function at 0x480538
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0048045c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004037d4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x48059c
call fcn.0047fd2c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x48058e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004037d4
pop esi
pop ebx
ret
Function at 0x4011e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp + 4]
push edi
push eax
push str.SoftwareKingsoftFastAit4.0Professional
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4012cc
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.EnginePath
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012c1
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x11c]
cmp edx, eax
ja 0x4012c1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop esi
mov dword [esp + 4], ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x4012aa
mov byte [ecx + edx], 0x5c
mov ecx, dword [esp + 4]
mov byte [ecx + edx + 1], 0
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
pop edi
add esp, 0x110
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x110
ret

Function at 0x4012e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp + 4]
push edi
push eax
push str.SoftwareKingsoftPowerword9.0Professional
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4013cc
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.PathName
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013c1
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x11c]
cmp edx, eax
ja 0x4013c1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop esi
mov dword [esp + 4], ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x4013aa
mov byte [ecx + edx], 0x5c
mov ecx, dword [esp + 4]
mov byte [ecx + edx + 1], 0
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
pop edi
add esp, 0x110
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x110
ret
Function at 0x401450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x401476
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401476
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 2
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401769
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x401770
Capabilities:
Copy file

Disassembly:
sub esp, 0x114
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00401600
add esp, 8
test eax, eax
je 0x40187f
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00403535
add esp, 8
test eax, eax
je 0x40187f
push ebx
push esi
push edi
mov byte [eax + 1], 0
mov edi, str.plug_insxdict32.API
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401450
add esp, 4
test eax, eax
je 0x40182f
mov esi, dword [esp + 0x124]
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.004013e0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004013e0
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x401844
lea eax, [esp + 0x1c]
push 0
push eax
push esi
jmp 0x40183e
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.TrustedMode
push str.SoftwareAdobeAcrobat_Reader5.0AdobeViewer
push 0x80000001
call fcn.00401720
push 0
push str.iTrustedMode
push str.SoftwareAdobeAcrobat_Reader6.0Originals
push 0x80000001
call fcn.00401720
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, 2
add esp, 0x114
ret
Function at 0x402630
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push ebx
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x4026b3
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret
mov eax, ebx
pop ebx
add esp, 0x10c
ret
Function at 0x40bcd0
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.00404080
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40bd9b
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 0x40bd9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40bd4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40bd59
or bh, 8
and edi, 0x8000000
je 0x40bd74
mov eax, dword [0x421c3c]
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 0x40bd9b
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 0x40c170
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 0x40c19b
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 0x40c1bf
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 0x40c1da
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 0x4104f2
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 0x410534
call fcn.00414642
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410534
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41052b
xor eax, eax
jmp 0x41053c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410542
pop edi
pop esi
pop ebx
ret 4

Function at 0x414b2f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x414b5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414b7b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414a95
jmp 0x414b7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414b7b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414a95
test edi, edi
mov eax, edi
jne 0x414b65
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4054cf
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x4b3c48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40550f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4a94f8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a94fc]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004054c8
mov eax, dword [0x4a9500]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4a9504]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x4b3c48], 0xc
mov dword [ebp - 4], eax
jne 0x4055a5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x4b3c48]
cmp eax, 0xfa9
jne 0x4055c1
mov dword [0x4b31e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4055ce
mov dword [0x4b2b90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x4b31e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x4b3c48], 0x213
mov dword [ebp - 0x14], edx
jne 0x405608
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004054c2
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40554b
cmp dword [0x4b3c48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405671
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x40567a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3c48]
mov ecx, dword [0x4b2b98]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4056ea
mov edi, ecx
mov ebx, eax
cmp dword [0x4b3c48], 0x959
jne 0x4056de
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004054cf
add edi, 8
dec ebx
jne 0x40569e
pop edi
pop esi
pop ebx
leave
ret