joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de61e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51c390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 2
mov eax, dword [esi + 0x44]
push eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x3c], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x48]
push eax
call fcn.004c78e1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x30]
add esp, 4
push ecx
push ebx
lea ecx, [esi + 0x28]
mov dword [esi + 0x28], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x34]
push eax
call fcn.004c78e1
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], bl
mov edx, dword [esi + 0x1c]
add esp, 4
push edx
push ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0x14], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x20]
push eax
call fcn.004c78e1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 8]
add esp, 4
push eax
push ebx
mov ecx, esi
mov dword [esi], 0x4f0210
call dword [0x4f0214]
mov ecx, dword [esi + 0xc]
push ecx
call fcn.004c78e1
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 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 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de592
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51c390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x30]
push eax
call fcn.004c78e1
mov eax, dword [esi + 0x1c]
add esp, 4
push eax
push ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0x14], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x20]
push eax
call fcn.004c78e1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
add esp, 4
mov dword [esi], 0x4f0388
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
push ecx
push ebx
mov ecx, esi
call dword [0x4f038c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 8]
push edx
push ebx
mov ecx, esi
mov dword [esi], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0xc]
push eax
call fcn.004c78e1
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 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 4
Function at 0x4099d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de3ed
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x51c390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 9
mov eax, dword [esi + 0x120]
push eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0x118]
mov dword [esi + 0x118], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x124]
push eax
call fcn.004c78e1
add esp, 4
lea ecx, [esi + 0xf0]
push ecx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov byte [ebp - 4], 8
call fcn.00409c20
lea edx, [esi + 0xc8]
push edx
mov byte [ebp - 4], 7
call fcn.00409c20
lea eax, [esi + 0xa0]
push eax
mov byte [ebp - 4], 6
call fcn.00409c20
lea ecx, [esi + 0x78]
push ecx
mov byte [ebp - 4], 5
call fcn.00409c20
lea edi, [esi + 0x64]
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4f052c
mov byte [ebp - 4], 0xa
mov edx, dword [edi + 8]
push edx
push ebx
mov ecx, edi
call dword [0x4f0530]
mov byte [ebp - 4], 4
mov eax, dword [edi + 8]
push eax
push ebx
mov ecx, edi
mov dword [edi], 0x4f0210
call dword [0x4f0214]
mov eax, dword [edi + 0xc]
push eax
call fcn.004c78e1
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x58]
add esp, 4
push ecx
push ebx
lea ecx, [esi + 0x50]
mov dword [esi + 0x50], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x5c]
push eax
call fcn.004c78e1
lea edi, [esi + 0x3c]
add esp, 4
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4f0520
mov byte [ebp - 4], 0xb
mov edx, dword [edi + 8]
push edx
push ebx
mov ecx, edi
call dword [0x4f0524]
mov byte [ebp - 4], 2
mov eax, dword [edi + 8]
push eax
push ebx
mov ecx, edi
mov dword [edi], 0x4f0210
call dword [0x4f0214]
mov eax, dword [edi + 0xc]
push eax
call fcn.004c78e1
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x30]
add esp, 4
push ecx
push ebx
lea ecx, [esi + 0x28]
mov dword [esi + 0x28], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x34]
push eax
call fcn.004c78e1
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], bl
mov edx, dword [esi + 0x1c]
add esp, 4
push edx
push ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0x14], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x20]
push eax
call fcn.004c78e1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 8]
add esp, 4
push eax
push ebx
mov ecx, esi
mov dword [esi], 0x4f0210
call dword [0x4f0214]
mov ecx, dword [esi + 0xc]
push ecx
call fcn.004c78e1
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 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 4
Function at 0x40bae0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0288
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51c390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 2
mov eax, dword [esi + 0x44]
push eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x3c], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x48]
push eax
call fcn.004c78e1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x30]
add esp, 4
push ecx
push ebx
lea ecx, [esi + 0x28]
mov dword [esi + 0x28], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x34]
push eax
call fcn.004c78e1
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], bl
mov edx, dword [esi + 0x1c]
add esp, 4
push edx
push ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0x14], 0x4f0210
call dword [0x4f0214]
mov eax, dword [esi + 0x20]
push eax
call fcn.004c78e1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
add esp, 4
mov dword [esi], 0x4f03ac
mov dword [ebp - 4], 3
mov eax, dword [esi + 8]
push eax
push ebx
mov ecx, esi
call dword [0x4f03b0]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 8]
push ecx
push ebx
mov ecx, esi
mov dword [esi], 0x4f0210
call dword [0x4f0214]
mov edx, dword [esi + 0xc]
push edx
call fcn.004c78e1
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 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 4
Function at 0x401e30
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
mov eax, dword [0x43944c]
test eax, eax
je 0x401e3e
xor eax, eax
pop ecx
ret
lea eax, [esp]
push eax
push 4
push 0
push 0x4036c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401e5c
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov dword [0x43944c], eax
pop ecx
ret

Function at 0x4020b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov eax, 0xffff
cmp cx, 8
push ebx
mov dword [esp + 4], eax
jb 0x4020fe
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
and esi, eax
shr esi, 3
xor ebx, ebx
and eax, 0xff
mov bl, byte [edx]
add ecx, 0xfff8
xor eax, ebx
xor ebx, ebx
mov bl, byte [esp + 9]
mov ax, word [eax*2 + 0x4268d0]
xor ax, bx
inc edx
dec esi
mov dword [esp + 8], eax
jne 0x4020d1
pop esi
jmp 0x402102
mov edx, dword [esp + 0xc]
test cx, cx
je 0x40214f
xor eax, eax
add ecx, 0xffff
mov ah, byte [edx]
and ecx, 0xffff
mov dword [esp + 0xc], eax
inc ecx
mov dl, byte [esp + 0xc]
mov bl, byte [esp + 4]
xor dl, bl
test dl, 1
je 0x40213e
mov ax, word [esp + 4]
shr ax, 1
xor eax, 0x8408
mov dword [esp + 4], eax
jmp 0x402147
shr word [esp + 4], 1
mov eax, dword [esp + 4]
shr word [esp + 0xc], 1
dec ecx
jne 0x40211c
not eax
pop ebx
pop ecx
ret
Function at 0x402ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ecx, ecx
push ebp
mov ch, byte [eax + 1]
mov dl, byte [eax]
push esi
push edi
mov edi, ecx
and edx, 0xff
mov esi, dword [esp + 0x18]
or edi, edx
lea ebp, [eax + 2]
lea eax, [edi*8]
push eax
push ebp
call fcn.004020b0
mov ebx, eax
lea eax, [edi + 2]
add esp, 8
xor edx, edx
test eax, eax
jbe 0x402b3d
mov ecx, edx
sub ecx, edi
jne 0x402b16
mov cl, bl
jmp 0x402b24
cmp ecx, 1
jne 0x402b21
xor ecx, ecx
mov cl, bh
jmp 0x402b24
mov cl, byte [edx + ebp]
cmp cl, 0x7e
je 0x402b2e
cmp cl, 0x7d
jne 0x402b35
mov byte [esi], 0x7d
inc esi
xor cl, 0x20
mov byte [esi], cl
inc esi
inc edx
cmp edx, eax
jb 0x402b0c
mov ecx, dword [esp + 0x18]
mov byte [esi], 0x7e
sub esi, ecx
mov ecx, dword [esp + 0x1c]
inc esi
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
ret

Function at 0x402f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
mov edi, 1
mov ebp, 0x14
mov eax, edi
and eax, 0x80000001
jns 0x402f3c
dec eax
or eax, 0xfffffffe
inc eax
xor ecx, ecx
mov byte [esp + 0x2c], al
test al, al
mov eax, dword [esp + 0x2c]
sete cl
shl ecx, 2
and eax, 0xff
mov esi, dword [esp + ecx + 0x10]
lea edx, [esp + ecx + 0x10]
shl eax, 2
mov dword [esp + eax + 0x18], esi
mov esi, dword [esp + ecx + 0x20]
mov ecx, dword [esp + ecx + 0x18]
mov dword [esp + eax + 0x10], esi
xor ecx, esi
lea esi, [esp + eax + 0x20]
lea eax, [esp + 0x30]
push esi
push eax
push edx
mov dword [esp + 0x3c], ecx
call fcn.00402e80
mov ecx, dword [esi]
add esp, 0xc
mov dword [ebx], ecx
inc edi
add ebx, 4
dec ebp
jne 0x402f2e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x403310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
mov al, 0x37
push esi
mov esi, dword [esp + 0x30]
mov byte [esp + 5], al
mov byte [esp + 0xd], al
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 8]
push esi
push ecx
mov byte [esp + 0x10], 0x26
mov byte [esp + 0x12], 0x75
mov byte [esp + 0x13], 0x16
mov byte [esp + 0x14], 0x31
mov byte [esp + 0x15], 0x66
mov byte [esp + 0x16], 0x49
mov byte [esp + 0x17], 0x62
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x1a], 0x17
mov byte [esp + 0x1b], 0x38
mov byte [esp + 0x1c], 0x60
mov byte [esp + 0x1d], 0x59
mov byte [esp + 0x1e], 0x67
mov byte [esp + 0x1f], 7
call fcn.00402fa0
lea edx, [esp + 0x2c]
add esi, 8
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00402fa0
mov ecx, dword [esp + 0x4c]
push 0x10
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00403100
add esp, 0x24
pop esi
add esp, 0x28
ret
Function at 0x403610
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x439450]
push 4
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea ecx, [esp]
push 0x439470
push ecx
mov ecx, dword [0x439450]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403677
mov eax, dword [0x439450]
lea edx, [esp]
push 1
push edx
push 0x439470
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp]
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x403820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x430360
push 0x8e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4038ca
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4038ca
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4038ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4038ca
mov eax, dword [esi]
add esi, 4
cmp eax, 0x3a98
mov dword [0x4ae7b8], eax
jge 0x4038ca
mov ecx, eax
shl ecx, 5
add ecx, 4
cmp ecx, edi
jne 0x4038ca
push ebx
xor ebx, ebx
test eax, eax
jle 0x4038c1
xor edi, edi
lea edx, [edi + 0x473e34]
push 0x10
push edx
push esi
call fcn.00403200
lea eax, [edi + 0x4394b4]
add esi, 0x10
push 0x10
push eax
push esi
call fcn.00403200
mov eax, dword [0x4ae7b8]
add esp, 0x18
add esi, 0x10
inc ebx
add edi, 0x10
cmp ebx, eax
jl 0x40388d
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x418350
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040be20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41841b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41841b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4183ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4183d9
or bh, 8
and edi, 0x8000000
je 0x4183f4
mov eax, dword [0x4b1fbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41841b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4187f0
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 0x41881b
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 0x41883f
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 0x41885a
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 0x41d208
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 0x41d24a
call fcn.0042194a
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 0x41d24a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d241
xor eax, eax
jmp 0x41d252
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d258
pop edi
pop esi
pop ebx
ret 4

Function at 0x422109
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422137
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422155
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042206f
jmp 0x422155
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422155
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042206f
test edi, edi
mov eax, edi
jne 0x42213f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
mov dword [0x408a00], eax
push ebx
push ebp
push esi
push edi
call fcn.00401f00
test ax, ax
je 0x401166
cmp ax, 3
je 0x401166
cmp ax, 4
je 0x401166
cmp ax, 2
jne 0x401158
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push str.psw2_mutex_name
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x401111
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4010a0
push esi
push str.psw2_notifyicon
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40116f
push esi
push esi
push 0x403
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.004019d0
mov ebp, eax
test ebp, ebp
jne 0x4010af
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
call fcn.004019d0
mov ebp, eax
test ebp, ebp
je 0x40116f
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
test eax, eax
je 0x4010f1
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
test eax, eax
jne 0x4010d2
test ebp, ebp
je 0x401158
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push 0
push str.psw2_notifyicon
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401145
push 0
push 0
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push eax
call fcn.00401ab0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x401d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68c
push ebx
push ebp
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0x40
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
push esi
push ebx
push 0
call ebp
test eax, eax
jne 0x401da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401edd
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, esi
push esi
push 0x40
call edi
mov ebx, eax
push esi
push ebx
push 0
call ebp
test eax, eax
je 0x401da9
test ebx, ebx
jne 0x401d8b
mov esi, 1
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor ebp, ebp
lea ecx, [esp + 0x2c]
push ebp
push ebp
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
xor edx, edx
cmp word [esp + 0x6a0], bp
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], si
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], eax
jne 0x401e90
mov edi, dword [esp + 0x6a4]
cmp edi, ebp
je 0x401e90
mov esi, dword [esp + 0x6a8]
cmp esi, ebp
je 0x401e90
push ebx
call fcn.00402340
add esp, 4
cmp eax, ebp
je 0x401e7c
push str.CAP2LAK.EXE
push eax
call fcn.004022e0
add esp, 8
cmp eax, ebp
je 0x401e7c
push str.CAP2SWK.EXE
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push edi
push ebx
lea ecx, [esp + 0x90]
push str._s__D_s__P_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x401ea7
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
push ebx
lea edx, [esp + 0x88]
push str._s__L
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
push ebp
push 0x200
lea edx, [esp + 0x24]
push ebp
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68c
ret