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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48ebb8]
cmp dword [eax + 0x30], 0
je 0x45f77e
cmp dword [ebx + 0x94], 0
jne 0x45f778
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f664
call fcn.00406628
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f778
push 3
mov eax, dword [esp + 4]
push eax
call fcn.00406788
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call fcn.00406798
test al, 8
je 0x45f73e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f778
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414278
push eax
call fcn.00406990
dec esi
cmp esi, 0xffffffff
jne 0x45f74d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4602e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x460315
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call fcn.004067b0
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404120
jmp 0x460322
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404084
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461404
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461445
mov eax, esi
call fcn.00447ad4
test al, al
je 0x461445
mov eax, dword [ebx + 0x84]
call fcn.004477d0
push eax
call fcn.00406820
test eax, eax
je 0x461445
push 0
mov eax, dword [ebx + 0x84]
call fcn.004477d0
push eax
call fcn.004069c0
pop esi
pop ebx
ret

Function at 0x462588
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x462611
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48ebe0
push 0x101
call fcn.00461d44
mov ebx, eax
test ebx, ebx
je 0x4625fb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040b05c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x462628
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x48dc14]
mov dl, 1
mov eax, dword [0x461d8c]
call fcn.0040b980
call fcn.00403a4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462618
lea eax, [ebp - 0x1c]
call fcn.00404030
ret
Function at 0x462cb8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00462bdc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004034bc
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.00461ccc
mov edx, 0x462d1c
call fcn.004624d0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x462d0e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004034bc
pop esi
pop ebx
ret

Function at 0x462d40
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004044f0
push eax
call fcn.00461d0c
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402cb4
test ebx, ebx
je 0x462d8b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x462e68
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x462e99
mov ecx, dword [0x48db40]
mov dl, 1
mov eax, dword [0x461d8c]
call fcn.0040b944
call fcn.00403a4c
push 0
push 1
push 2
call fcn.00461d04
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x462ec6
mov ecx, dword [0x48dad8]
mov dl, 1
mov eax, dword [0x461d8c]
call fcn.0040b944
call fcn.00403a4c
xor eax, eax
push ebp
push 0x462f42
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004034bc
cmp byte [ebp + 8], 0
je 0x462f1e
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00462dd0
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00462cb8
jmp 0x462f38
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004627bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x462f5f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x463140
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00462a78
xor eax, eax
push ebp
push 0x4632b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x46329b
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x46318b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x463195
call fcn.00403af8
jmp 0x4632b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004160d4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x463290
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call fcn.00461cfc
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x463243
call fcn.00461d3c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x463230
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004034bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004630f8
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4632c4]
cmp dl, byte [eax + 0x28]
je 0x463297
call fcn.0040b868
jmp 0x463297
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004160f4
jmp 0x463297
cmp ecx, ebx
jge 0x46325f
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004160f4
jmp 0x463195
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004160d4
cmp edx, dword [esp + 4]
jne 0x46327f
cmp eax, dword [esp]
pop edx
pop eax
jne 0x463195
push ebp
call fcn.004630f8
pop ecx
jmp 0x463297
push ebp
call fcn.004630f8
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4632b8
mov eax, dword [ebp - 4]
call fcn.00462a84
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4632c8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4633ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00462a78
xor eax, eax
push ebp
push 0x4633cd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x463318
call fcn.00403af8
jmp 0x4633d4
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call fcn.00461cfc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4633b7
call fcn.00461d3c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4633b7
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004034bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4633b7
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b05c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x463404
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x48dc14]
mov dl, 1
mov eax, dword [0x461d8c]
call fcn.0040b980
call fcn.00403a4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4633d4
mov eax, dword [ebp - 4]
call fcn.00462a84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4633f1
lea eax, [ebp - 0x28]
call fcn.00404030
ret

Function at 0x466964
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x466992
mov eax, ebx
call fcn.00467418
cmp dword [ebx + 0x40], 0
je 0x46698b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x466a03
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4669f5
cmp dword [ebx + 8], 0
je 0x4669b4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4669c6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4669f5
cmp dword [ebx + 8], 0
je 0x4669a7
cmp eax, 3
je 0x4669d9
dec eax
jne 0x4669a7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4669a7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4669a7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x466a21
cmp dword [ebx + 0x14], 0xcc
je 0x466a21
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00466a2c
pop ebx
ret
Function at 0x47f184
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044e0
xor eax, eax
push ebp
push 0x47f269
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x47f278
mov eax, dword [ebp - 4]
call fcn.004044f0
push eax
mov eax, dword [0x48e664]
push eax
call fcn.004060c0
mov edi, eax
push edi
mov eax, dword [0x48e664]
push eax
call fcn.00406208
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406210
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x4123d4]
call fcn.00403290
mov ebx, eax
mov dl, 1
mov eax, dword [0x463bc0]
call fcn.00463e74
mov esi, eax
push edi
mov eax, dword [0x48e664]
push eax
call fcn.00406280
mov edi, eax
mov edx, edi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0xc]
push eax
call fcn.004060e0
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
call fcn.004032c0
mov eax, ebx
call fcn.004032c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f270
lea eax, [ebp - 4]
call fcn.00404030
ret

Function at 0x81e382
Capabilities:
Access peb ldr_data
Check mutex on windows
Packed with generic packer
Parse pe header

Disassembly:
pop eax
sub eax, 0x81e29c
cmp dword [eax + 0x81bdd0], 0
je 0x81e2b7
lea esp, [esp + 8]
popal
jmp 0x81e347
add dword [esp], 0x3c6e2ed7
jmp 0x81e325
call 0x81e29c
jmp 0x81e25e
inc dword [eax + 0x81bdd0]
push 0xc72e5ef8
add dword [esp], 0x394e76fa
push 0
push 0xc4139025
jmp 0x81e27a
push eax
jmp 0x81e297
push 0xf8e47117
add dword [esp], 0x79d752a
push 0xd83a67a4
add dword [esp], 0x284752d5
push 0xde9263ba
jmp 0x81e391
push 0xf5532a03
add dword [esp], 0xb2e74b8
jmp 0x81e2ef
push ebp
jmp 0x48b609
lahf
call 0x81e382
dec esi
outsd dx, dword [esi]
outsd dx, dword [esi]
bound edi, qword [ecx + 0x50]
jb 0x81e3dc
je 0x81e3d4
arpl word [eax + 0x53], si
inc ebp
and byte [ecx], dh
cmp byte cs:[esi], ch
xor byte [eax], ah
inc esp
insd dword es:[edi], dx
outsd dx, dword [esi]
add cl, ch
adc al, 1
add byte [eax], al
xchg esi, eax
add dl, byte [eax - 0x5e4afd09]
pop esi
jp 0x81e3b0
add dword [esp], 0x21ef3904
push 0xc9ab2bc3
add dword [esp], 0x36d66438
push 0xe29363b2
add dword [esp], 0x1dee7e6b
call int.007d67ad
popal
jmp 0x81e347
movzx ebx, word [eax + 0x3c]
add ebx, eax
cmp word [ebx], 0x4550
je 0x81e2e7
jmp 0x81e3ea
jp 0x81e35f
push esp
aas
movsb byte es:[edi], byte [esi]
cmp bl, byte [ebp - 0x54]
dec esi
cmp al, byte [edx]
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x81e3b8
sub eax, 0x10000
jmp 0x81e3e3
Function at 0x10001000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movaps xmm1, xmmword [str.WWWWWWWWWWWWWWWWURLDownloadToFil]
mov eax, 6
nop dword [eax]
movups xmm0, xmmword [ecx]
pxor xmm0, xmm1
paddb xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ecx + 0x10]
pxor xmm0, xmm1
paddb xmm0, xmm1
movups xmmword [ecx + 0x10], xmm0
add ecx, 0x20
sub eax, 1
jne 0x10001010
lea edx, [eax + 0xc]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor al, 0x57
add al, 0x57
mov byte [ecx - 1], al
sub edx, 1
jne 0x10001040
ret

Function at 0x10001060
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x10012004]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov edi, edx
push eax
push 0x202
xor bl, bl
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 2
push str.127.0.0.1
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push 1
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
movzx ebx, bl
mov ecx, 1
push esi
cmove ebx, ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1b4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100013d8
mov esp, ebp
pop ebp
ret
Function at 0x4018f3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4026e8
call fcn.00401b08
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x401947
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x401947
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x40195f
cmp ecx, 0x20b
je 0x40194c
mov dword [ebp - 0x1c], ebx
jmp 0x401976
cmp dword [eax + 0x400084], 0xe
jbe 0x401947
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x401970
cmp dword [eax + 0x400074], 0xe
jbe 0x401947
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x4030f0], edi
mov dword [0x4030f4], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4030e4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4030e0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4030ec], eax
call fcn.00401b04
cmp dword [section..data], ebx
jne 0x4019d3
push fcn.00401b04
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401af2
push 0x40223c
push 0x402238
call sub.msvcrt.dll__initterm
mov eax, dword [0x4030dc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4030d8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x402234
push 0x402228
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x401a5e
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x401a3e
cmp cl, 0x22
jne 0x401a2f
cmp byte [eax], 0x22
jne 0x401a47
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x401a52
cmp cl, 0x20
jbe 0x401a43
test byte [ebp - 0x54], 1
je 0x401a69
movzx ecx, word [ebp - 0x50]
jmp 0x401a6c
cmp byte [eax], 0x20
jbe 0x401a47
inc eax
mov dword [ebp - 0x20], eax
jmp 0x401a5e
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00401b60
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x401a8a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x401ac6
mov eax, esi
jmp 0x401ada
call fcn.00401b43
ret
Function at 0x402cc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfbc
push esi
push edi
lea edi, [ebp - 0xfbc]
mov ecx, 0x3ef
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x3e8
lea eax, [ebp - 0x7dc]
push eax
call fcn.00404ecc
add esp, 0x10
mov dword [ebp - 8], 0
xor ecx, ecx
mov word [ebp - 0xe], cx
mov edx, dword [0x435afc]
mov dword [ebp - 0xfbc], edx
mov eax, dword [0x435afc]
add eax, 1
mov dword [0x435afc], eax
lea ecx, [ebp - 0x7dc]
push ecx
mov edx, dword [ebp - 0xfbc]
push edx
push str.__d___s_n
push 0x3e8
lea eax, [ebp - 0xfb4]
push eax
call fcn.00404acf
add esp, 0x14
lea ecx, [ebp - 0xfb4]
push ecx
push 0x42d79c
call fcn.00404be8
add esp, 8
mov esi, esp
lea edx, [ebp - 0xfb4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, esp
call fcn.004041c0
push edx
mov ecx, ebp
push eax
lea edx, [0x402db0]
call fcn.004041e3
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b7
add esp, 0xfbc
cmp ebp, esp
call fcn.004041c0
mov esp, ebp
pop ebp
ret
Function at 0x4037b0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7fc
push esi
push edi
lea edi, [ebp - 0x7fc]
mov ecx, 0x1ff
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x800
mov dword [ebp - 0x24], 0
push 0x7d0
push 0
lea eax, [ebp - 0x7f8]
push eax
call fcn.004044d0
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp esi, esp
call fcn.004041c0
test eax, eax
je 0x40385c
mov eax, dword [ebp + 8]
push eax
push str._read_registry_failed__key:__s_n
push 0x3e8
lea ecx, [ebp - 0x7f8]
push ecx
call fcn.00404acf
add esp, 0x10
mov esi, esp
lea edx, [ebp - 0x7f8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, esp
call fcn.004041c0
mov eax, 1
jmp 0x4038db
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004041c0
test eax, eax
je 0x4038bd
mov ecx, dword [ebp + 0xc]
push ecx
push str._read_registry_failed__item:__s_n
push 0x3e8
lea edx, [ebp - 0x7f8]
push edx
call fcn.00404acf
add esp, 0x10
mov esi, esp
lea eax, [ebp - 0x7f8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, esp
call fcn.004041c0
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004041c0
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x40390c]
call fcn.004041e3
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b7
add esp, 0x7fc
cmp ebp, esp
call fcn.004041c0
mov esp, ebp
pop ebp
ret

Function at 0x4044b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4044c1
repz ret
jmp fcn.0040657e
Function at 0x40de5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.0040c91b
and dword [ebp - 0x14], 0
cmp dword [0x436868], 0
mov dword [ebp - 0x18], eax
jne 0x40df0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40dfb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40dfb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436868], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43686c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436870], eax
call edi
push eax
call esi
mov dword [0x436878], eax
test eax, eax
je 0x40df0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x436874], eax
mov eax, dword [0x436874]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40df68
cmp dword [0x436878], ecx
je 0x40df68
push eax
call esi
push dword [0x436878]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40df68
test ebx, ebx
je 0x40df68
call edi
test eax, eax
je 0x40df5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40df5f
test byte [ebp - 8], 1
jne 0x40df68
or dword [ebp + 0x10], 0x200000
jmp 0x40df9b
mov eax, dword [0x43686c]
cmp eax, dword [ebp - 0x18]
je 0x40df9b
push eax
call esi
test eax, eax
je 0x40df9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40df9b
mov eax, dword [0x436870]
cmp eax, dword [ebp - 0x18]
je 0x40df9b
push eax
call esi
test eax, eax
je 0x40df9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436868]
call esi
test eax, eax
je 0x40dfb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40dfb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b7
leave
ret