joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40330c], eax
mov eax, dword [ebp + 4]
mov dword [0x403159], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403159]
mov dword [ebp - 0x48], eax
mov eax, 0x402291
mov dword [ebp - 0x54], eax
mov ecx, 0x403206
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403159]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403358], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403358]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x5b149d
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [fcn.005b10c4]
push eax
call dword [fcn.005b1008]
test eax, eax
jne 0x5b14c0
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push 0x5b11cc
push 0
call dword [fcn.005b1004]
test eax, eax
jne 0x5b14e0
push dword [ebp - 4]
call dword [fcn.005b1054]
jmp 0x5b14bc
mov eax, dword [ebp - 0xc]
push esi
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [section..text]
test eax, eax
jne 0x5b1515
xor esi, esi
push dword [ebp - 4]
call dword [fcn.005b1054]
mov eax, esi
pop esi
leave
ret

Function at 0x5b1528
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [fcn.005b10c4]
push eax
call dword [fcn.005b1008]
test eax, eax
jne 0x5b1549
leave
ret
push esi
lea eax, [ebp - 0xc]
push eax
push 0x5b11cc
xor esi, esi
push esi
call dword [fcn.005b1004]
test eax, eax
jne 0x5b156e
push dword [ebp - 4]
call dword [fcn.005b1054]
xor eax, eax
pop esi
leave
ret
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [section..text]
test eax, eax
jne 0x5b15a7
push dword [ebp - 4]
call dword [fcn.005b1054]
mov eax, esi
jmp 0x5b156b
xor esi, esi
inc esi
jmp 0x5b159a

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3e123730
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x607612a5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c77
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ca8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401ca4
cmp esi, eax
jae 0x401ca8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401c94
cmp esi, eax
jb 0x401cae
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4022a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460688
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
test ebx, ebx
je 0x4022d8
cmp word [ebx], 0
jne 0x4022f4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
cmp ax, 0x20
je 0x402303
cmp ax, 9
jne 0x402308
add ebx, 2
jmp 0x4022f4
movzx eax, word [ebx]
mov esi, ebx
xor ecx, ecx
nop
cmp ax, 0x22
jne 0x40231f
xor eax, eax
test ecx, ecx
sete al
mov ecx, eax
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40233b
test ecx, ecx
jne 0x402310
cmp ax, 0x20
je 0x40233b
cmp ax, 9
jne 0x402310
mov edx, dword [0x474db4]
mov eax, dword [edx]
mov dword [esp + 0x18], ebx
sub ebx, esi
push 2
sar ebx, 1
push ebx
mov ecx, 0x474db4
call eax
test eax, eax
je 0x40243f
test ebx, ebx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
jl 0x402444
cmp ebx, dword [edi - 8]
jg 0x402444
mov dword [edi - 0xc], ebx
add ebx, ebx
push ebx
push esi
push ebx
push edi
mov word [ebx + edi], 0
call fcn.0041094b
add esp, 0x10
mov dword [esp + 0x28], 0
mov eax, dword [edi - 0xc]
cmp eax, 2
jl 0x4023ee
test eax, eax
jl 0x402444
movzx ecx, word [edi]
cmp cx, 0x22
jne 0x4023ee
lea ecx, [eax - 1]
test ecx, ecx
jl 0x402444
cmp ecx, eax
jg 0x402444
movzx eax, word [edi + ecx*2]
cmp ax, 0x22
jne 0x4023ee
lea ecx, [esp + 0x14]
push ecx
xor eax, eax
call fcn.004028e0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x14]
add eax, 0xffffffff
push ecx
call fcn.004028e0
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x14]
call fcn.00402cd0
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40241e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
cmp word [ecx], 0
jne 0x4022f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004018e0
push 0x80070057
call fcn.00401a00
int3
Function at 0x406ce0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45b970
push 0
push 0
call fcn.004134aa
mov edx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [edx], eax
je 0x406d09
xor eax, eax
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406d18
mov eax, 1
pop ecx
ret 4

Function at 0x409dc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45fe95
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [esp + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x10
mov dword [edi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov ecx, 1
mov byte [esp + 0x14], cl
lea esi, [edi + 0x30]
mov dword [edi + 0x28], ecx
mov byte [edi + 0x2c], al
push 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.004063c0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x409f50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45fe5a
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [edi + 0x30]
push eax
call fcn.00410615
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x14]
add esp, 4
push eax
push ebx
mov ecx, esi
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x4685b0]
mov eax, dword [esi + 0xc]
push eax
call fcn.00410615
add esp, 4
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040a170
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40a960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x460013
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [esi], al
lea edi, [ebx + 4]
lea eax, [esi + 4]
call fcn.00407f10
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x10], ecx
mov byte [esp + 0x14], 1
mov edx, dword [ebx + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
lea edi, [ebx + 0x1c]
lea eax, [esi + 0x1c]
call fcn.00407f10
mov cl, byte [ebx + 0x28]
mov byte [esi + 0x28], cl
mov edx, dword [ebx + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0x38]
mov dword [esi + 0x38], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x40fc07
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x472100]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040fb46
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413cc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40fc56
cmp dword [ebp - 0x1c], 5
jb 0x40fc6e
jmp 0x40fc6a
cmp dword [ebp - 0x10], 1
jne 0x40fc6e
cmp dword [ebp - 0x1c], 4
ja 0x40fc6a
jne 0x40fc6e
cmp dword [ebp - 0x18], 0
jbe 0x40fc6e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46131c
call fcn.0040f9f9
test eax, eax
jge 0x40fc8f
mov byte [0x475e08], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410ae1
add ebp, 0x78
leave
ret

Function at 0x4108b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4108dd
call fcn.00415cd6
mov dword [eax], esi
call fcn.00415cc3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00411143
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4108b9
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41090c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415ce9
pop ecx
call fcn.00415cc3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x410933
test al, 1
je 0x410933
test byte [esp + 0xc], 2
je 0x410933
call fcn.00415cd6
mov dword [eax], 5
call fcn.00415cc3
mov dword [eax], 0xd
jmp 0x410903
xor eax, eax
pop esi
ret

Function at 0x410ae1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472100]
jne 0x410aeb
repz ret
jmp fcn.00417aed
Function at 0x41c4c8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x472af8]
je 0x41c4e3
inc edi
cmp edi, 0x17
jb 0x41c4d4
cmp edi, 0x17
jae 0x41c663
push ebp
push 3
call fcn.004212b0
cmp eax, 1
pop ecx
je 0x41c62f
push 3
call fcn.004212b0
test eax, eax
pop ecx
jne 0x41c517
cmp dword [0x4720f0], 1
je 0x41c62f
cmp ebx, 0xfc
je 0x41c662
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x475528
push ebp
call fcn.00416fc9
add esp, 0xc
test eax, eax
je 0x41c54d
push esi
push esi
push esi
push esi
push esi
call fcn.00411047
add esp, 0x14
push 0x104
mov esi, 0x475541
push esi
push 0
mov byte [0x475645], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c591
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00416fc9
add esp, 0xc
test eax, eax
je 0x41c591
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00411047
add esp, 0x14
push esi
call fcn.00413f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41c5d6
push esi
call fcn.00413f40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47583c
push 0x462c9c
sub ecx, eax
push ecx
push eax
call fcn.004197ae
add esp, 0x14
test eax, eax
je 0x41c5d6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00411047
add esp, 0x14
jmp 0x41c5d8
xor esi, esi
push 0x462c98
push ebx
push ebp
call fcn.0041973d
add esp, 0xc
test eax, eax
je 0x41c5f8
push esi
push esi
push esi
push esi
push esi
call fcn.00411047
add esp, 0x14
push dword [edi*8 + 0x472afc]
push ebx
push ebp
call fcn.0041973d
add esp, 0xc
test eax, eax
je 0x41c61a
push esi
push esi
push esi
push esi
push esi
call fcn.00411047
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004210f3
add esp, 0xc
jmp 0x41c662
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41c662
cmp ebp, 0xffffffff
je 0x41c662
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x472afc]
push dword [esi]
call fcn.00413f40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4210f3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004166b2
xor ebx, ebx
cmp dword [0x475b90], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4211c9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4212a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4212a9
push eax
call fcn.00416644
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x475b90], eax
call esi
push eax
call fcn.00416644
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x475b94], eax
call esi
push eax
call fcn.00416644
mov dword [0x475b98], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00417e44
test eax, eax
pop ecx
pop ecx
je 0x421197
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411047
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4211c9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416644
cmp eax, ebx
pop ecx
mov dword [0x475ba0], eax
je 0x4211c9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416644
pop ecx
mov dword [0x475b9c], eax
mov eax, dword [0x475b9c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42124e
cmp dword [0x475ba0], ecx
je 0x42124e
push eax
call fcn.004166bb
push dword [0x475ba0]
mov esi, eax
call fcn.004166bb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42124e
cmp edi, ebx
je 0x42124e
call esi
cmp eax, ebx
je 0x42121b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42121b
test byte [ebp - 0x18], 1
jne 0x42124e
lea eax, [ebp - 0x10]
push eax
call fcn.00417e7b
test eax, eax
pop ecx
je 0x421236
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411047
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x421245
or dword [ebp + 0x10], 0x200000
jmp 0x421289
or dword [ebp + 0x10], 0x40000
jmp 0x421289
mov eax, dword [0x475b94]
cmp eax, dword [ebp - 8]
je 0x421289
push eax
call fcn.004166bb
cmp eax, ebx
pop ecx
je 0x421289
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421289
mov eax, dword [0x475b98]
cmp eax, dword [ebp - 8]
je 0x421289
push eax
call fcn.004166bb
cmp eax, ebx
pop ecx
je 0x421289
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475b90]
call fcn.004166bb
cmp eax, ebx
pop ecx
je 0x4212a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4212ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425070
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x463b00]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x463b00]
mov dword [edx + 8], ecx
ret
Function at 0x4250c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x4250cf
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x4251b7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x463b00]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x4250e0
pop ebp
test edi, edi
je 0x4251dc
jmp 0x4251c0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x463b00]
add ecx, 1
sub edi, 1
jne 0x4251c0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x426230
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x78]
test ecx, ecx
push edi
je 0x426278
mov eax, dword [esi + 0x80]
mov edi, dword [esi + 0x7c]
cmp eax, edi
jae 0x4262b5
sub edi, eax
cmp edi, edx
jbe 0x42624e
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.00415850
mov edx, dword [esi + 0x6c]
add dword [esi + 0x80], edi
add dword [esi + 0x68], edi
add esp, 0xc
mov eax, edi
mov ecx, ebx
call fcn.004250c0
mov dword [esi + 0x6c], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4262ae
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4262b5
mov edi, dword [esp + 4]
mov edx, dword [esi + 0x6c]
add dword [esi + 0x68], edi
mov eax, edi
mov ecx, ebx
call fcn.004250c0
mov dword [esi + 0x6c], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x427550
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, eax
push edi
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x427576
mov eax, 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x427588
mov ebp, 1
test al, 2
je 0x42758f
or ebp, 2
test al, 4
je 0x427596
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x4275a0
or ebp, 0x10
test al, 0x20
je 0x4275a7
or ebp, 0x20
test ecx, ecx
je 0x4275b3
or ebp, 0x40000000
jmp 0x4275b9
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x4275c9
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x18], eax
jbe 0x427674
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
cmp word [esp + 0x14], 0x54ad
jne 0x427674
mov eax, dword [esp + 0x20]
lea edx, [eax + 0x34]
cmp dword [esp + 0x18], edx
jbe 0x427674
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x42766e
cmp eax, 0x454e
je 0x42766e
cmp eax, 0x454c
je 0x42766e
cmp eax, 0x4550
jne 0x427674
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x42767e
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x42768c
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov ebx, dword [esp + 0x68]
test ebx, ebx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
je 0x427704
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.0045d390
mov dword [ebx], eax
push 0
mov edx, edi
sub edx, 0xd53e8000
mov eax, esi
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.0045d390
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [ebx + 4], eax
call fcn.0045d390
mov dword [ebx + 8], eax
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x427731
push esi
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004260d0
movzx edx, word [esp + 0x24]
movzx eax, word [esp + 0x28]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [ebx], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret