joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ca348
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5ca3ea
cmp dword [ebx + 0xac], 0
jne 0x5ca3e4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5ca284
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5ca3e4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5ca3aa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5ca3e4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004abda0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5ca3b9
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5ca6a4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x630148]
cmp dword [eax + 0x188], 0
je 0x5ca81e
test bl, bl
jne 0x5ca769
cmp dword [esi + 0xb4], 0
jne 0x5ca75e
mov eax, esi
call fcn.005cd720
push eax
push 0x5ca598
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5ca72f
mov eax, dword [0x630148]
cmp byte [eax + 0xeb], 0
je 0x5ca72f
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5ca710
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5ca72f
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5ca718
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5ca75e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004abda0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5ca73e
inc dword [esi + 0xb4]
jmp 0x5ca81e
cmp dword [esi + 0xb4], 0
jle 0x5ca81e
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5ca81e
cmp dword [esi + 0x58], 0
je 0x5ca7d3
mov eax, dword [0x630148]
cmp byte [eax + 0xeb], 0
je 0x5ca7d3
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5ca7b4
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5ca7d3
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5ca7bc
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5ca802
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004abda0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5ca7e2
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5bb6c0]
call fcn.0040c288
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5cb4bc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5cb519
cmp byte [ebx + 0xeb], 0
jne 0x5cb519
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409ed8
mov eax, dword [esi]
test eax, eax
je 0x5cb506
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5cb526
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a130
jmp 0x5cb526
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a130
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5cce5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5ccecd
mov eax, esi
call fcn.005297dc
test al, al
je 0x5ccecd
mov eax, dword [ebx + 0x98]
call fcn.00529408
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5ccecd
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x134]
test al, al
je 0x5ccebe
push 0
mov eax, dword [ebx + 0x98]
call fcn.00529408
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0051feb4
jmp 0x5ccecd
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005ccc68
pop esi
pop ebx
ret
Function at 0x6120f4
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x61218e
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x612113
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x6121a4
dec edx
je 0x6121d9
jmp 0x61222a
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x61222a
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_a]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x61233c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x61235b
add edx, 3
sar edx, 2
test edx, edx
jle 0x612469
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x612390
je 0x6123d3
sub ecx, 0x2b
je 0x6123c9
sub ecx, 4
je 0x6123ce
dec ecx
sub ecx, 0xa
jb 0x6123bb
jmp 0x6123d6
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x6123a2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x6123ad
jmp 0x6123d6
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x6123d6
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x6123d6
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x6123d6
mov byte [eax], 0x3e
jmp 0x6123d6
mov byte [eax], 0x3f
jmp 0x6123d6
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x612373
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x612427
cmp byte [esp + 7], 0xff
jne 0x612427
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x61245e
cmp dl, 0xff
je 0x61245e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x61236a
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x6190e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x6190f3
add esp, 0xfffffff0
call fcn.004085ec
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00407f34
mov dword [ebx + 0xc], esi
lea eax, [ebx + 4]
mov edx, 0x6191c0
call fcn.0040a130
mov eax, dword [ebx + 4]
call fcn.0040a948
push eax
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingW
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
sete al
mov byte [ebx + 0x14], al
test al, al
je 0x619154
mov eax, dword [ebx + 4]
call fcn.0040a948
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebx + 8], eax
mov edi, dword [ebx + 8]
test edi, edi
je 0x619194
push 0
push 0
push 0
push 6
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x619182
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 8], eax
jmp 0x619194
cmp byte [ebx + 0x14], 0
je 0x61918f
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
jmp 0x619194
mov eax, dword [esi]
mov dword [ebx + 0xc], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x6191ab
call fcn.00408644
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x619618
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x619772
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov dl, 1
mov eax, dword [0x4ef734]
call fcn.004f0880
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x619755
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.004f0968
mov cl, 1
mov edx, 0x619790
mov eax, dword [ebp - 8]
call fcn.004f0ac0
test al, al
je 0x619734
test bl, bl
je 0x6196dd
xor eax, eax
push ebp
push 0x6196c7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x629504]
mov eax, dword [eax]
call fcn.005cc6a0
lea eax, [ebp - 0xc]
mov edx, 0x6197f8
call fcn.0040ab5c
mov ecx, dword [ebp - 0xc]
mov edx, 0x619818
mov eax, dword [ebp - 8]
call fcn.004f1418
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61972a
xor eax, eax
push ebp
push 0x619716
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x619818
mov eax, dword [ebp - 8]
call fcn.004f1a14
test al, al
je 0x61970c
mov edx, 0x619818
mov eax, dword [ebp - 8]
call fcn.004f0fa8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61972a
mov eax, dword [ebp - 8]
call fcn.004f0938
jmp 0x61973f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [0x628ea4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61975c
mov eax, dword [ebp - 8]
call fcn.00407f64
ret

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x71ba71b2
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x536f2d2a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40345b
pop dword [ebp - 0x1c]
mov eax, 0x43f80b99
add eax, 0xbc4828c2
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x35366bfa
add dword [ebp - 0x2c], 0x191bd951
mov dword [ebp - 0x28], 0xc0f77cb8
add dword [ebp - 0x28], 0x713bcf8d
mov dword [ebp - 0x24], 0xd06676ff
sub dword [ebp - 0x24], 0x841a32d1
mov dword [ebp - 0x20], 0x9ce7ecb0
add dword [ebp - 0x20], 0x63181350
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xea5a29f4
sub eax, 0xea19e9a0
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x651d485d
add dword [ebp - 0x2c], 0xf5520f9
mov dword [ebp - 0x28], 0x873e25c9
add dword [ebp - 0x28], 0xba2e3bac
mov dword [ebp - 0x24], 0x6ef24ae7
sub dword [ebp - 0x24], 0xb82de7b
mov dword [ebp - 0x20], 0x8b730b10
sub dword [ebp - 0x20], 0x8b730b10
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xa385efa
add eax, 0xf607e156
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3622b
push 0
call eax
mov ecx, 0x61ca55c5
sub ecx, 0x61ca10b0
xor edi, edi
add edi, eax
mov esi, 0x886fc542
add esi, 0x77d0bebe
add esi, dword [ebp - 0x1c]
mov ebx, 0x59b693eb
sub ebx, 0x418ea9e6
sub dword [ebp - 0x10], eax
mov edx, dword [esi]
add dword [ebp - 0x18], 0xea237842
add edx, ebx
xor dword [ebp - 8], 0x32428d31
mov dword [edi], edx
add edi, 4
add esi, 4
loop 0x40357f
add eax, 0x10727
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x408942
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
or ecx, ebx
call fcn.0040896c
push ecx
pop ecx
sub ecx, ebx
xor dword [eax], edx
inc eax
sub ebx, 0xdb399d25
add ecx, 0x531a8d1d
cmp eax, edi
jne fcn.00408942
mov ecx, ecx
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401520
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x40
push edi
push esi
push ebx
sub esp, 0x13c
lea edi, [esp + 0x30]
mov dword [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x4015df
mov dword [esp + 8], 0x100
mov ebx, eax
mov dword [esp + 4], 0x65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4015df
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov edi, eax
test eax, eax
je 0x4015df
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub esp, 8
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4015df
lea edi, [esp + 0x2c]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub eax, 1
sub esp, 8
cmp eax, 0x103
jbe 0x4015f0
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.wallpaper.jpg
mov dword [esp + 4], 0x104
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strcat_s]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebp, eax
cmp eax, 0xffffffff
je 0x4015df
lea eax, [esp + 0x28]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4015df
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
sub esp, 0x10
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402ae0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402ae0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40505c]
test esi, esi
jle 0x401ec0
mov eax, dword [0x405060]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401dd4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401e57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401dc0
mov dword [esp], ebx
call fcn.00402720
mov edi, eax
test eax, eax
je 0x401ee7
mov eax, dword [0x405060]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402860
mov edx, dword [0x405060]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ec7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401e50
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401e60
add dword [0x40505c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x405060]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401d40
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401dde
mov eax, dword [0x405060]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401d40
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401d40
lea esi, [esi]
nop
Function at 0x4023a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405070]
sub esp, 4
test ebx, ebx
je 0x4023f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4023ee
test esi, esi
je 0x4023ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4023d0
mov dword [esp], 0x405078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402720
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402745
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402750
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402745
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x402798
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40278e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40279a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402780
xor eax, eax
pop ebx
pop esi
ret