joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x52039c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x52039c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x520386
push eax
call ebp
test ax, ax
jl 0x520394
inc esi
add edi, 4
cmp esi, 6
jb 0x520378
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00520050
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x524110
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x524170
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x524170
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x524170
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x524170
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x524180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x52b5d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52b5f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052c525
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x52b61a
test byte [esp + 8], 2
je 0x52b61a
call fcn.0052c598
mov dword [eax], 0xd
call fcn.0052c5a1
mov dword [eax], 5
jmp 0x52b5f3
xor eax, eax
ret

Function at 0x53af83
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x53b0a4
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x53b088
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x53afda
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x53afb8
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x53baec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x53bb43
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x53bb43
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x53bb43
xor eax, eax
inc eax
jmp 0x53bb45
xor eax, eax
leave
ret 0x10
Function at 0x53bb6e
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x53bbdc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x6fa294
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53bbd3
cmp dword [ebp - 0xc], 4
jne 0x53bbd3
cmp dword [ebp - 0x10], edi
je 0x53bbd3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x72a718], edi
xor eax, eax
jmp 0x53bc1b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x72a718], edi
jge 0x53bc16
lea eax, [ebp - 0x34]
push eax
mov dword [0x72a718], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x53bc16
cmp word [ebp - 0x14], 5
jb 0x53bc16
call fcn.0053bb49
test eax, eax
je 0x53bc16
emms
mov dword [0x72a718], 1
mov eax, dword [0x72a718]
pop edi
leave
ret

Function at 0x54fb0e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54fb46
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.0054db7d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054db55
jmp 0x54fb52
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x551203
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 0x551245
call fcn.005576f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x551245
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x55123c
xor eax, eax
jmp 0x55124d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00551253
pop edi
pop esi
pop ebx
ret 4

Function at 0x557c26
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 0x557c54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x557c72
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00557b8c
jmp 0x557c72
mov eax, dword [esi + 0x14]
test eax, eax
je 0x557c72
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00557b8c
test edi, edi
mov eax, edi
jne 0x557c5c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4b534dcc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x698110ba
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4c5740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7a000]
push edi
or ebp, 0xffffffff
jmp 0x4c5762
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c5769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5758
mov eax, 1
add ebx, ebx
jne 0x4c577b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c578c
jne 0x4c57ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c57ab
dec eax
add ebx, ebx
jne 0x4c5798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c5770
add ebx, ebx
jne 0x4c57a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c57fd
xor ecx, ecx
sub eax, 3
jb 0x4c57c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c5832
sar eax, 1
mov ebp, eax
jmp 0x4c57ce
add ebx, ebx
jne 0x4c57ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c579c
inc ecx
add ebx, ebx
jne 0x4c57dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c579c
add ebx, ebx
jne 0x4c57e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c57de
jne 0x4c57fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c57de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c581c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c580e
jmp 0x4c575e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c581c
add edi, ecx
jmp 0x4c575e
pop esi
mov edi, esi
mov ecx, 0x3887
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c583a
cmp byte [edi], 0x11
jne 0x4c583a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c583f
lea edi, [esi + 0xc1000]
mov eax, dword [edi]
or eax, eax
je 0x4c58b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xca1c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xca314]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c586c
mov ecx, edi
jns 0x4c589b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xca318]
or eax, eax
je 0x4c58b1
mov dword [ebx], eax
add ebx, 4
jmp 0x4c5889
call dword [esi + 0xca328]
mov ebp, dword [esi + 0xca31c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c58eb
sub esp, 0xffffff80
jmp 0x417520
Function at 0x421da0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x421dc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421db8
mov eax, 1
add ebx, ebx
jne 0x421ddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421dd0
jne 0x421dec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421dd0
xor ecx, ecx
sub eax, 3
jb 0x421e00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421e72
mov ebp, eax
add ebx, ebx
jne 0x421e0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421e18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421e3c
inc ecx
add ebx, ebx
jne 0x421e28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421e1d
jne 0x421e39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421e1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421e5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421e4d
jmp 0x421dbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421e5c
add edi, ecx
jmp 0x421dbe
pop esi
mov edi, esi
mov ecx, 0x65e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421e7a
cmp byte [edi], 0x11
jne 0x421e7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x421e7f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421eee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22280]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x222a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421eac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x222b0]
or eax, eax
je 0x421ee8
mov dword [ebx], eax
add ebx, 4
jmp 0x421ec9
call dword [esi + 0x222ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x421f1f
cmp al, 0xef
ja 0x421f12
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x421ef4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x421f01
mov ebp, dword [esi + 0x222b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x421f53
sub esp, 0xffffff80
jmp 0x4012a5
Function at 0x4037b5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
call fcn.00402e95
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x28], eax
pop esi
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov edx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x20], 0xedeb2e40
cmp dword [0x689784], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [edx + ebp]
mov eax, dword [0x6897c8]
cmove eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
cmp dword [0x689784], 0x3eb
mov dword [0x6897c8], eax
mov eax, dword [0x6897d0]
cmove eax, dword [esp + 0x20]
mov dword [0x6897d0], eax
mov eax, dword [esp + 0x18]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
xor eax, ecx
mov dword [0x6897cc], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebx, eax
mov dword [esp + 0x14], eax
mov eax, ebx
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, ebx
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
lea ebp, [ebp + 0x61c88647]
dec esi
jne 0x4037ff
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413d4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x453058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407696
mov dword [ebp - 0x14], eax
cmp dword [0x68a94c], esi
jne 0x413e42
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x413f22
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x413f22
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413f22
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x68a94c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x68a950], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x68a954], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x68a95c], eax
test eax, eax
je 0x413e3f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x68a958], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413e67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413e5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x413e7c
push 4
pop eax
jmp 0x413f24
cmp dword [ebp - 0x14], esi
je 0x413e7c
push dword [0x68a94c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x413e61
mov eax, dword [0x68a958]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x413eda
cmp dword [0x68a95c], edi
je 0x413eda
push eax
call ebx
push dword [0x68a95c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413eda
test eax, eax
je 0x413eda
call ecx
test eax, eax
je 0x413ecf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x413ecf
test byte [ebp - 8], 1
jne 0x413eda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x413f0a
mov eax, dword [0x68a950]
cmp eax, edi
je 0x413f07
push eax
call ebx
test eax, eax
je 0x413f07
call eax
mov esi, eax
test esi, esi
je 0x413f07
mov eax, dword [0x68a954]
cmp eax, edi
je 0x413f07
push eax
call ebx
test eax, eax
je 0x413f07
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x68a94c]
call ebx
test eax, eax
je 0x413f22
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x413f24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004068d0
mov esp, ebp
pop ebp
ret
Function at 0x401ac1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c090]
jne 0x401acb
repz ret
jmp fcn.00402cc8

Function at 0x40b7ed
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.00404b39
and dword [ebp - 4], 0
cmp dword [0x460ac0], 0
mov ebx, eax
jne 0x40b89e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b94f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b94f
push eax
call fcn.00404ac7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x460ac0], eax
call esi
push eax
call fcn.00404ac7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x460ac4], eax
call esi
push eax
call fcn.00404ac7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x460ac8], eax
call esi
push eax
call fcn.00404ac7
pop ecx
mov dword [0x460ad0], eax
test eax, eax
je 0x40b89e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ac7
pop ecx
mov dword [0x460acc], eax
mov eax, dword [0x460acc]
cmp eax, ebx
je 0x40b8f6
cmp dword [0x460ad0], ebx
je 0x40b8f6
push eax
call fcn.00404b42
push dword [0x460ad0]
mov esi, eax
call fcn.00404b42
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b8f6
test edi, edi
je 0x40b8f6
call esi
test eax, eax
je 0x40b8ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b8ed
test byte [ebp - 0xc], 1
jne 0x40b8f6
or dword [ebp + 0x10], 0x200000
jmp 0x40b92f
mov eax, dword [0x460ac4]
cmp eax, ebx
je 0x40b92f
push eax
call fcn.00404b42
pop ecx
test eax, eax
je 0x40b92f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b92f
mov eax, dword [0x460ac8]
cmp eax, ebx
je 0x40b92f
push eax
call fcn.00404b42
pop ecx
test eax, eax
je 0x40b92f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460ac0]
call fcn.00404b42
pop ecx
test eax, eax
je 0x40b94f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b951
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40da3b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x45c090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x1806824], 0x930
jne 0x40da70
push str.vacejazulufapesu
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1806824], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1806540], eax
jne 0x40daa7
push esi
lea eax, [ebp - 0x804]
push eax
push esi
call sub.KERNEL32.dll_VerLanguageNameW
lea eax, [ebp - 0x820]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401ac1
leave
ret
Function at 0x40dac3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40db04
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040dab4
pop ecx
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
nop
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, esi
xor byte [eax], cl
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40dad0
cmp dword [ebp + 0xc], 0x2d
pop esi
jne 0x40db1c
or dword [0x1806834], 0xffffffff
mov dword [0x1806830], 0xa62e7790
leave
ret
Function at 0x10001043
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x10001060
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x100010d2
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100010aa
xor edi, edi
mov dword [esi + 0x100], edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x104], edi
jne 0x100010cf
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x10001018
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x104], eax
jne 0x100010cf
or eax, 0xffffffff
jmp 0x100010d2
mov eax, dword [esi + 0x100]
cmp eax, 0xffffffff
jne 0x100010b9
or edi, eax
jmp 0x100010c4
xor edi, edi
cmp eax, edi
je 0x10001076
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, esi
call fcn.100010d8
mov eax, edi
jmp 0x100010d2
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x1000119d
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
inc edi
mov esi, ecx
push edi
call fcn.100015d2
mov ax, word [ebp + 0xc]
push 0
push edi
push 2
mov word [esi + 4], ax
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x100011db
mov dword [esi + 0x144], str.creating_socket
and dword [esi + 0x140], 0
jmp 0x1000124a
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
push 0xff
lea edi, [esi + 0x38]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and byte [esi + 0x137], 0
lea ebx, [esi + 0x28]
push 0x10
push 0
push ebx
call fcn.100031f7
add esp, 0xc
cmp byte [edi], 0
jne 0x10001227
mov dword [esi + 0x144], str.empty_hostname
jmp 0x100011d2
push 2
pop eax
push dword [ebp + 0xc]
mov dword [esi + 0x140], eax
mov word [ebx], ax
call sub.WS2_32.dll_htons
push dword [ebp + 8]
mov word [esi + 0x2a], ax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret 8