joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4249b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48253e
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x4a9d30]
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
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edx, str.stdout
mov byte [ebp - 0x1f8], 0
mov eax, dword [esi + 0x40]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x424a12
test cl, cl
je 0x424a0e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x424a12
add eax, 2
add edx, 2
test cl, cl
jne 0x4249f2
xor eax, eax
jmp 0x424a17
sbb eax, eax
or eax, 1
test eax, eax
je 0x424bd6
lea ecx, [ebp - 0x64]
call fcn.004204c0
push esi
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0
call fcn.004256d0
push 0
push 0x485760
push 0x485b04
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00425ed0
lea eax, [ebp - 0x1f4]
xor edi, edi
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x424b0f
mov ecx, dword [ebx + 8]
mov edi, 1
cmp dword [ebp - 0x1d4], ecx
jne 0x424b08
push 0x1000
lea ecx, [ebp - 0x210]
call fcn.004244b0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x210]
call fcn.00424700
test al, al
je 0x424af9
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00424560
test al, al
je 0x424af9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x210]
call fcn.00424550
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0
call fcn.004257d0
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004204e0
mov al, 1
jmp 0x424bfe
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 1
call fcn.00424550
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x64]
call fcn.00420650
test eax, eax
je 0x424b56
push dword [ebx + 8]
lea ecx, [ebp - 0x64]
push dword [ebx + 4]
call fcn.00420b00
mov edx, dword [ebp - 0x1f8]
mov ecx, 1
cmp eax, dword [ebx + 8]
movzx edx, dl
mov ebx, edx
mov dword [ebp - 0x1f8], edx
cmove ebx, ecx
lea ecx, [ebp - 0x64]
call fcn.00420540
jmp 0x424b88
test edi, edi
je 0x424b82
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x1f4
call edi
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x64]
call fcn.00420650
test eax, eax
jne 0x424ba8
inc esi
cmp esi, 6
jl 0x424b62
mov ebx, dword [ebp - 0x1f8]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0
call fcn.004257d0
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004204e0
jmp 0x424bfc
push dword [ebx + 8]
lea ecx, [ebp - 0x64]
push dword [ebx + 4]
call fcn.00420b00
mov edx, dword [ebp - 0x1f8]
cmp eax, dword [ebx + 8]
movzx ecx, dl
mov edx, 1
cmove ecx, edx
mov bl, cl
lea ecx, [ebp - 0x64]
call fcn.00420540
jmp 0x424b88
call fcn.00455651
add eax, 0x20
push eax
push 1
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004559c4
mov ebx, dword [ebp - 0x1f8]
dec eax
add esp, 0x10
neg eax
sbb al, al
and bl, al
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.004530e4
mov esp, ebp
pop ebp
ret 4
Function at 0x4260b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4825c3
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4a9d30]
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
mov edi, ecx
mov esi, dword [ebp + 8]
xor bl, bl
mov edx, str.stdout
mov eax, dword [esi + 0x40]
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x426110
test cl, cl
je 0x42610c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x426110
add eax, 2
add edx, 2
test cl, cl
jne 0x4260f0
xor eax, eax
jmp 0x426115
sbb eax, eax
or eax, 1
test eax, eax
je 0x426195
lea ecx, [ebp - 0x64]
call fcn.004204c0
push dword [esi + 0x40]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0
call fcn.00425710
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.00420650
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x426182
push dword [edi + 0x45]
lea ecx, [ebp - 0x64]
push dword [edi + 0x40]
call fcn.00420b00
cmp eax, dword [edi + 0x45]
mov ecx, 1
movzx ebx, bl
cmove ebx, ecx
lea ecx, [ebp - 0x64]
call fcn.00420540
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004204e0
mov al, bl
jmp 0x4261bd
call fcn.00455651
add eax, 0x20
push eax
push 1
push dword [edi + 0x45]
push dword [edi + 0x40]
call fcn.004559c4
mov edx, 1
movzx ecx, bl
add esp, 0x10
cmp eax, edx
cmove ecx, edx
mov al, cl
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.004530e4
mov esp, ebp
pop ebp
ret 4

Function at 0x427040
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xd]
mov eax, dword [edi + 4]
lea ebx, [edi + 8]
mov dword [esi], ebx
mov dword [edi + 0x11], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0
push dword [edi]
mov dword [edi + 0x15], eax
mov byte [ebx], 1
call fcn.00456e83
add esp, 0xc
mov dword [edi + 9], eax
cmp eax, 0xffffffff
jne 0x42707d
pop edi
pop esi
mov byte [ebx], 0
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x428bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482933
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4a9d30]
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 ecx, [ebp - 0xb0]
push str.http:__online.xebra.com_xebraonlinehelp_
call fcn.00425710
cmp dword [esi + 0x45], 0
mov dword [ebp - 4], 0
je 0x428c48
push str.index.html_
lea ecx, [ebp - 0xb0]
call fcn.00426480
push esi
lea ecx, [ebp - 0xb0]
call fcn.00426430
push str..htm
lea ecx, [ebp - 0xb0]
call fcn.00426480
push 5
push 0
push 0
push dword [ebp - 0x70]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x428cc6
lea ecx, [ebp - 0x60]
call fcn.004257c0
push str.The_Xebra_system_online_help_at_
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00426480
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x60]
call fcn.00426430
push str.could_not_be_loaded._r_n_r_n
lea ecx, [ebp - 0x60]
call fcn.00426480
push str.In_order_to_view_the_online_help_you_must_have_internet_access_and_a_default_browser.
lea ecx, [ebp - 0x60]
call fcn.00426480
push 0x2040
push str.Unable_to_open_default_browser
push dword [ebp - 0x20]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.004257d0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.004257d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530e4
mov esp, ebp
pop ebp
ret 4
Function at 0x42c8b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 1
jne 0x42c8d2
push edi
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
ret 4
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x42d040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x42d058
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x42eac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
mov esi, ecx
push 0
push 0xe
push dword [esi + 0x155]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42eaf4
push dword [ebp + 8]
inc eax
push eax
push 0xd
push dword [esi + 0x155]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
pop esi
mov byte [eax], 0
pop ebp
ret 4
Function at 0x4396d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x90], 1
jne 0x439768
cmp dword [ebp + 8], 1
jne 0x439754
mov eax, dword [esi + 0xc]
test eax, eax
je 0x439731
mov ecx, dword [esi]
push eax
call fcn.004289f0
cmp eax, 0xffffffff
je 0x439731
push dword [esi + 0xc]
mov ecx, dword [esi]
call fcn.004289f0
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x28]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x439731
cmp dword [eax + 0xa8], 1
jne 0x439731
push 0
push 0xf120
push 0x112
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
ret 8
push 0
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
ret 8

Function at 0x439770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 4], 0x100
mov edi, ecx
jne 0x4397ce
mov eax, dword [eax + 8]
xor esi, esi
mov dword [ebp + 8], eax
cmp dword [edi + 0x6c], esi
jle 0x4397ce
xor ebx, ebx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, 0x10000
je 0x4397c5
mov ecx, dword [edi + 0x68]
movzx eax, word [ecx + ebx + 2]
cmp dword [ebp + 8], eax
jne 0x4397c5
movzx eax, word [ecx + ebx + 4]
push 0
push eax
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_GetMenuState]
test al, 3
je 0x4397d7
inc esi
add ebx, 6
cmp esi, dword [edi + 0x6c]
jl 0x439793
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, dword [edi + 0x68]
lea ecx, [esi + esi*2]
push 0
movzx eax, word [eax + ecx*2 + 4]
push eax
push 0x111
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x441850
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x441868
push 1
push dword [ecx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x443d60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x443d78
push 1
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x4444c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x4444d8
push 1
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x445de0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x63], 0
je 0x445e2d
mov eax, dword [ebx + 0x7b]
test eax, eax
je 0x445df9
push eax
call fcn.00453d8e
add esp, 4
push esi
push 0
push 0
push 0xe
push dword [ebx + 0x63]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
lea ecx, [esi + 2]
push ecx
push 1
call fcn.00453d4e
add esp, 8
mov dword [ebx + 0x7b], eax
push eax
lea eax, [esi + 1]
push eax
push 0xd
push dword [ebx + 0x63]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebx
ret

Function at 0x4473e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
jne 0x4473f5
cmp dword [esi + 0x125], eax
jne 0x447444
cmp dword [esi + 0x93], eax
je 0x447444
cmp dword [esi + 0x9b], 9
mov dword [esi + 0x93], eax
jne 0x44743d
test eax, eax
je 0x44742f
mov eax, dword [esi + 0xf5]
test eax, eax
je 0x44742f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00444bf0
pop esi
pop ebp
ret 4
push 1
push dword [esi + 0xf5]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00444bf0
pop esi
pop ebp
ret 4

Function at 0x4476d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x4476e8
push 1
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x44ad60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4839db
mov eax, dword fs:[0]
push eax
sub esp, 0xc20
mov eax, dword [0x4a9d30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc28], eax
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jns 0x44adc6
xor eax, eax
jmp 0x44aed1
lea eax, [ebp - 0xc1c]
push eax
push 0x17
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x44ae0b
lea eax, [ebp - 0xc1c]
push eax
push 2
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x44ae0b
push 0x2030
push str.Programs_Path_Error
push str.Could_not_create_start_menu_items.
push esi
call fcn.0040d6c0
add esp, 0x10
jmp 0x44aec0
lea eax, [ebp - 0xbc8]
push eax
push dword [ebp - 0xc1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0xc2c]
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x3f8]
push str._s_s
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0xc18]
push eax
call fcn.00425710
lea eax, [ebp - 0xc18]
mov dword [ebp - 4], 0
push eax
call fcn.00420620
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc18]
call fcn.004257d0
push ebx
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x7e0]
push str._s_s.lnk
push eax
call fcn.00453cca
push dword [ebp - 0xc28]
lea eax, [ebp - 0x7e0]
push ebx
push eax
push dword [ebp - 0xc24]
call fcn.0044aef0
mov eax, dword [ebp - 0xc20]
add esp, 0x20
push dword [ebp - 0xc1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530e4
mov esp, ebp
pop ebp
ret
Function at 0x44d190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x44d19c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0044d1b0
Function at 0x459693
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x478c17
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00457cbf
mov dword [ebp - 0x14], eax
cmp dword [0x4b099c], esi
jne 0x478d0a
push 0x800
push esi
push 0x499a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x478c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x478dea
push esi
push esi
push 0x499a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x478dea
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478dea
push eax
call ebx
push 0x499a5c
push edi
mov dword [0x4b099c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b09a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b09a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b09ac], eax
test eax, eax
je 0x478d07
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b09a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x478d2f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x478d22
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x478d44
push 4
pop eax
jmp 0x478dec
cmp dword [ebp - 0x14], esi
je 0x478d44
push dword [0x4b099c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x478d29
mov eax, dword [0x4b09a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x478da2
cmp dword [0x4b09ac], edi
je 0x478da2
push eax
call ebx
push dword [0x4b09ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x478da2
test eax, eax
je 0x478da2
call ecx
test eax, eax
je 0x478d97
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x478d97
test byte [ebp - 8], 1
jne 0x478da2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x478dd2
mov eax, dword [0x4b09a0]
cmp eax, edi
je 0x478dcf
push eax
call ebx
test eax, eax
je 0x478dcf
call eax
mov esi, eax
test esi, esi
je 0x478dcf
mov eax, dword [0x4b09a4]
cmp eax, edi
je 0x478dcf
push eax
call ebx
test eax, eax
je 0x478dcf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b099c]
call ebx
test eax, eax
je 0x478dea
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x478dec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004530e4
mov esp, ebp
pop ebp
ret
Function at 0x4011e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401234
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401230
lea ebx, [ebx]
cmp esi, eax
jae 0x401234
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401220
cmp esi, eax
jb 0x40123a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4028b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x10]
mov edx, 1
cmp edi, edx
jbe 0x4028e0
mov ecx, edx
push ebx
mov ebx, eax
shl ebx, 0x18
shr eax, 8
add ebx, eax
xor ebx, dword [esi + ecx*4]
inc edx
movzx ecx, dx
mov eax, ebx
cmp ecx, edi
jb 0x4028c8
pop ebx
pop edi
pop esi
ret

Function at 0x4037e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x30
mov eax, dword [0x44baf8]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
movzx ecx, byte [esi + 0x10]
push ecx
lea edx, [esp + 0x20]
push str._c:_
push edx
call fcn.00426085
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.004255c8
add esp, 0x30
ret

Function at 0x4037ee
Capabilities:
Get disk size

Disassembly:
sub esp, 0x30
mov eax, dword [0x44baf8]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
movzx ecx, byte [esi + 0x10]
push ecx
lea edx, [esp + 0x20]
push str._c:_
push edx
call fcn.00426085
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.004255c8
add esp, 0x30
ret
Function at 0x403840
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x418
mov eax, dword [0x44baf8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 8]
push eax
push 8
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 5
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403969
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x403969
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403969
push ebp
xor ebp, ebp
xor esi, esi
cmp dword [esp + 0x20], ebx
jbe 0x403944
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [esp + 0x28]
lea ecx, [ecx]
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
test eax, eax
jne 0x40393e
inc esi
add edi, 8
cmp esi, dword [esp + 0x24]
jb 0x403900
mov eax, dword [esp + 0x14]
pop edi
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebp
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004255c8
add esp, 0x418
ret
mov ebp, 1
pop edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebp
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004255c8
add esp, 0x418
ret
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004255c8
add esp, 0x418
ret

Function at 0x403b30
Capabilities:
Check os version

Disassembly:
cmp dword [0x44d004], 0
push esi
mov esi, 1
jne 0x403b5a
push 0x44cf70
mov dword [0x44d004], esi
mov dword [0x44cf70], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [0x44cf74]
or al, 0xff
cmp ecx, 4
jne 0x403b8f
mov ecx, dword [0x44cf78]
cmp ecx, 0xa
jne 0x403b7e
cmp dword [0x44cf80], esi
jne 0x403bd8
mov al, 0x10
pop esi
ret
cmp ecx, 0x5a
jne 0x403bce
cmp dword [0x44cf80], esi
jne 0x403bd8
mov al, 0x11
pop esi
ret
cmp ecx, 5
jne 0x403bb3
mov ecx, dword [0x44cf78]
test ecx, ecx
jne 0x403ba2
mov al, 0x13
pop esi
ret
cmp ecx, esi
jne 0x403baa
mov al, 0x14
pop esi
ret
cmp ecx, 2
jne 0x403bce
mov al, 0x15
pop esi
ret
cmp ecx, 6
jne 0x403bce
mov ecx, dword [0x44cf78]
test ecx, ecx
jne 0x403bc6
mov al, 0x16
pop esi
ret
cmp ecx, esi
jne 0x403bce
mov al, 0x17
pop esi
ret
cmp dword [0x44cf80], esi
jne 0x403bd8
mov al, 0x12
pop esi
ret