joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57af70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov ebx, ecx
or ebp, 0xffffffff
call fcn.0057ac30
mov eax, dword [ebx + 0x47c]
xor esi, esi
cmp eax, esi
jne 0x57b185
lea edi, [ebx + 8]
mov dword [ebx + 0x47c], 1
mov ecx, edi
call fcn.0057e850
test al, al
jne 0x57b17f
mov ecx, edi
call fcn.0057e880
mov ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], 0
call fcn.0057eda0
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jle 0x57b15f
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
jmp 0x57afe7
xor esi, esi
mov ecx, ebx
call fcn.0057c750
lea ecx, [ebx + 8]
mov dword [esp + 0x20], eax
call fcn.0057edb0
mov ebp, eax
cmp dword [ebp], 1
jne 0x57b042
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0x420
mov dword [esp + 0x2c], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x44]
jmp 0x57b080
mov eax, dword [ebp + 4]
mov dword [esp + 0x50], esi
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 0x820
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0057cdc0
lea ecx, [ebx + 8]
call fcn.0057edc0
mov eax, dword [ebp + 4]
mov ecx, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
call fcn.0057ac10
mov eax, dword [ebp]
mov dword [esp + 0x1c], esi
cmp eax, 1
jne 0x57b0c1
mov eax, dword [ebp + 0xc]
mov edi, 0x21
add eax, esi
mov dword [esp + 0x1c], eax
jmp 0x57b0c6
mov edi, 0x22
cmp dword [esp + 0x18], 1
jle 0x57b0d3
or edi, 0x80
mov ecx, ebx
call fcn.0057c750
sub eax, dword [esp + 0x20]
je 0x57b0e5
mov byte [esp + 0x12], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec ecx
cmp edx, ecx
jne 0x57b106
mov cl, byte [esp + 0x12]
or edi, 0x100
test cl, cl
je 0x57b106
or edi, 0x1000
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
sub esp, 0x20
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
mov ecx, 8
lea esi, [esp + 0x84]
mov edi, esp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0057cdc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x57afe5
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 8]
call fcn.0057e880
mov cl, byte [esp + 0x13]
mov byte [esp + 0x20], al
cmp cl, al
je 0x57b17f
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0057cd80
dec dword [ebx + 0x47c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x57b190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov ebx, ecx
or ebp, 0xffffffff
call fcn.0057ac30
mov eax, dword [ebx + 0x47c]
xor esi, esi
cmp eax, esi
jne 0x57b3b8
lea edi, [ebx + 8]
mov dword [ebx + 0x47c], 1
mov ecx, edi
call fcn.0057e850
test al, al
jne 0x57b3b2
mov ecx, edi
call fcn.0057e880
mov ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], 0
call fcn.0057ee70
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jle 0x57b392
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
jmp 0x57b207
xor esi, esi
mov ecx, ebx
call fcn.0057c750
lea ecx, [ebx + 8]
mov dword [esp + 0x20], eax
call fcn.0057edb0
mov ebp, eax
cmp dword [ebp], esi
jne 0x57b261
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0x440
mov dword [esp + 0x2c], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x44]
jmp 0x57b29f
mov eax, dword [ebp + 4]
mov dword [esp + 0x50], esi
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 0x840
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0057cdc0
lea ecx, [ebx + 8]
call fcn.0057ee80
mov eax, dword [ebp + 4]
mov ecx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0057ac10
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x57b2e5
mov ecx, dword [ebp + 0xc]
mov esi, 0x41
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x57b2ea
mov esi, 0x42
mov edi, dword [esp + 0x18]
cmp edi, 1
jle 0x57b2f9
or esi, 0x80
mov ecx, ebx
call fcn.0057c750
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
je 0x57b30f
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x14]
lea eax, [edi - 1]
cmp edx, eax
jne 0x57b32e
mov al, byte [esp + 0x12]
or esi, 0x100
test al, al
je 0x57b32e
or esi, 0x1000
mov eax, dword [ebp + 4]
sub esp, 0x20
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x84], esi
mov dword [esp + 0x90], ecx
mov ecx, 8
lea esi, [esp + 0x84]
mov edi, esp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0057cdc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x57b205
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 8]
call fcn.0057e880
mov cl, byte [esp + 0x13]
mov byte [esp + 0x20], al
cmp cl, al
je 0x57b3b2
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0057cd80
dec dword [ebx + 0x47c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x57f1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e9f81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0xc]
call fcn.00576a50
xor ebx, ebx
mov eax, 0xa1e878
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
xor eax, eax
mov dword [esi + 0x40], ebx
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
push 0x80
xor edi, edi
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], ecx
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x2c], edx
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x5c], 0xffffff
mov dword [esi + 0x64], 0x808080
call fcn.005bfd90
mov eax, dword [eax]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esi + 0x6c], eax
call fcn.005bfd90
mov ecx, dword [eax]
push 0xc0
push 0xc0
mov dword [esi + 0x74], ecx
push 0xc0
lea ecx, [esp + 0x1c]
call fcn.005bfd90
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x7c], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5bdb00
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5ea100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x14], ebx
mov eax, esi
je 0x5bdb4e
inc ecx
movsx edx, byte [eax]
shl ebp, 4
xor ebp, edx
inc eax
dec ecx
jne 0x5bdb42
mov eax, ebp
xor edx, edx
mov ecx, 0x1f
div ecx
mov eax, dword [esp + 0x10]
mov edi, dword [eax + edx*4]
cmp edi, ebx
je 0x5bdba3
cmp ebp, dword [edi]
jne 0x5bdb9c
mov eax, dword [edi + 4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x5bdb8f
cmp cl, bl
je 0x5bdb8b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x5bdb8f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x5bdb6b
xor eax, eax
jmp 0x5bdb94
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x5bdbbe
mov esi, dword [esp + 0x2c]
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x5bdb64
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x84]
cmp ecx, ebx
je 0x5bdbf4
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.005bdb00
jmp 0x5bdc37
mov esi, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x28], ebx
mov dword [esi + 0xc], 0x40
call fcn.005bd960
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x5bdc2f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x5bdc31
mov esi, dword [esp + 0x28]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0xffffffffffffffff
push 0xa8b0f0
mov dword [esp + 0x28], 1
mov dword [esi + 0xc], 0x40
call fcn.005bd960
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x5bdc2f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x5bdc31
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x5bdc50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5ea137
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x18]
xor ebx, ebx
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], ebx
call fcn.005bdb00
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x64
push edx
push esi
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.005bdd10
mov esi, dword [esp + 0x48]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x48], 2
mov dword [esi + 0xc], 0x40
call fcn.005bd960
mov edx, dword [esp + 0x38]
mov dword [esi], eax
neg eax
sbb eax, eax
mov dword [esp + 0x24], 1
and eax, edx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x48], bl
push edx
mov dword [esp + 0x3c], ebx
call fcn.005d898a
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x5dafee
Capabilities:
Get graphical window text

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

Function at 0x5dc6e3
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 0x5dc725
call fcn.005e24e2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5dc725
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5dc71c
xor eax, eax
jmp 0x5dc72d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005dc733
pop edi
pop esi
pop ebx
ret 4

Function at 0x5e2a12
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 0x5e2a40
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5e2a5e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005e2978
jmp 0x5e2a5e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5e2a5e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005e2978
test edi, edi
mov eax, edi
jne 0x5e2a48
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4123ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
lea eax, [ebp - 0x410]
push eax
mov esi, 0x104
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x618]
push eax
push 0
push 0x4906e4
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x41242e
call sub.MSVCRT.dll_rand
push eax
call sub.MSVCRT.dll_rand
push eax
push str.c:_u_u.tmp
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0043c65e
add esp, 0x14
test edi, edi
je 0x412499
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x412437
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x208]
call fcn.00411c90
mov eax, edi
mov edx, edi
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x412462
sub eax, edx
lea edi, [ebp - 0x208]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x412476
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
jmp 0x41249f
lea ecx, [ebp - 0x618]
call fcn.00444d11
pop edi
pop esi
leave
ret

Function at 0x4124a8
Capabilities:
Create directory

Disassembly:
push esi
call fcn.00410cbc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push pe_nt_image_headers32
call fcn.00444d68
pop ecx
test eax, eax
je 0x4124d0
mov ecx, eax
call fcn.00411cea
mov ecx, eax
jmp 0x4124d2
xor ecx, ecx
push esi
mov dword [0x4c2a18], ecx
call fcn.004197fc
mov ecx, 0x4c2a78
pop esi
jmp fcn.00411a7b

Function at 0x414931
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, ecx
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x414967
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x414967
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call edi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x42a9ea
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x42aafa
cmp byte [ebp + 8], 0
je 0x42aa29
xor ecx, ecx
inc ecx
mov word [ebp + 8], cx
xor ecx, ecx
push 4
mov word [ebp + 0xa], cx
lea ecx, [ebp + 8]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00429431
test byte [esi + 0xe], 0x20
je 0x42aa7c
mov eax, dword [esi + 0x49]
test eax, eax
jge 0x42aa48
neg eax
mov dword [ebp + 8], eax
jmp 0x42aa4c
and dword [ebp + 8], 0
mov eax, dword [esi + 0x61]
test eax, eax
jge 0x42aa5a
neg eax
mov dword [ebp - 4], eax
jmp 0x42aa5e
and dword [ebp - 4], 0
fild dword [ebp + 8]
fadd dword [0x4c4924]
fstp dword [0x4c4924]
fild dword [ebp - 4]
fadd dword [0x4c491c]
fstp dword [0x4c491c]
mov ecx, dword [esi + 4]
call fcn.004294a6
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x42aafa
cmp byte [esi + 0x13], 6
jb 0x42aaaa
push 2
push pe_nt_image_headers32
mov ecx, esi
call fcn.00429141
push 2
push pe_nt_image_headers32
mov ecx, esi
call fcn.00429122
mov ecx, dword [esi + 0x45]
mov eax, dword [esi + 0x49]
cmp ecx, eax
jae 0x42aad2
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aac6
fadd dword [0x48f6a0]
fadd dword [0x4c4928]
fstp dword [0x4c4928]
mov ecx, dword [esi + 0x5d]
mov eax, dword [esi + 0x61]
cmp ecx, eax
jae 0x42aafa
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aaee
fadd dword [0x48f6a0]
fadd dword [0x4c4920]
fstp dword [0x4c4920]
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x42ab18
lea eax, [esi + 0xb9]
mov ecx, dword [eax]
and dword [eax], 0
test ecx, ecx
je 0x42ab18
call fcn.0044a526
pop esi
leave
ret 4
Function at 0x42b6e6
Capabilities:
Check for time delay via gettickcount
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
push esi
push edi
je 0x42b701
push 0
call fcn.0042a9ea
lea ecx, [ebp - 0x14]
call fcn.00439633
mov ecx, dword [ebp + 8]
call fcn.00404a13
push 0
lea ecx, [ebp - 0x26]
test al, al
jne 0x42b726
push 0x4c5144
call fcn.004396a3
jmp 0x42b72d
push 0
call fcn.0043966e
mov ecx, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 1
movsw word es:[edi], word [esi]
call fcn.00404a13
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0042a9a3
cmp dword [ebx + 4], 0xffffffff
jne 0x42b774
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x42b8a7
mov si, word [ebp + 0xc]
test si, si
jbe 0x42b781
mov word [ebp - 4], si
mov ecx, 0x4c4988
call fcn.00408480
mov ecx, 0x4c4988
test al, al
jne 0x42b7a3
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov si, word [ebp + 0xc]
call fcn.00408480
test al, al
je 0x42b7b1
test si, si
jbe 0x42b7d9
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0xffff
push dword [ebx + 4]
mov dword [ebp + 0xc], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0042afe5
mov word [ebx + 0xd3], si
mov esi, dword [ebp + 8]
lea edi, [ebx + 0xc1]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ecx, dword [ebp + 8]
mov dword [ebx + 0xe8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0042665d
push dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42b865
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42b851
lea ecx, [ebx + 0xc1]
mov byte [ebx + 0x13], 3
mov byte [ebx + 0x14], 6
call fcn.0042ae3a
or byte [ebx + 0xe7], 2
jmp 0x42b89c
mov edx, dword [ebx]
xor esi, esi
inc esi
push esi
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov dword [ebx + 0xe8], esi
jmp 0x42b89c
mov byte [ebx + 0x13], 6
call esi
sub eax, dword [ebx + 0xe8]
cmp eax, 0xffffffff
jbe 0x42b879
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x42b882
mov eax, esi
push esi
push pe_nt_image_headers32
mov ecx, ebx
mov dword [ebx + 0xe8], eax
call fcn.00429141
push esi
push pe_nt_image_headers32
mov ecx, ebx
call fcn.00429122
push 1
push pe_nt_image_headers32
mov ecx, ebx
call fcn.00429122
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45005d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx eax, dx
push 5
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4500da
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x4500b6
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4500ba
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x4500d9
push esi
push dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4500d7
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x48bb88
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x30]
cmp dword [ebx], 0
je 0x48bd60
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x48bd60
dec eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x100c
je 0x48bccd
sub eax, 3
je 0x48bcab
dec eax
je 0x48bc89
dec eax
je 0x48bc67
dec eax
jne 0x48bcee
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
push 2
push 0xffffffffffffffff
push ebp
xor ebx, ebx
push eax
jmp 0x48bc00
mov edx, dword [esi + 0x2c]
mov ecx, eax
imul ecx, ecx, 0x2c
cmp dword [ecx + edx + 8], 0
je 0x48bbf5
inc ebx
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + 8]
push 2
push eax
push ebp
push ecx
call edi
cmp eax, 0xffffffff
jne 0x48bbe5
cmp byte [0x4c8208], 0
je 0x48bcee
cmp ebx, 1
mov dword [esp + 0x10], 9
mov dword [esp + 0x24], 0x4c8208
mov dword [esp + 0x14], 0x24
jle 0x48bc40
push ebx
push dword [0x4cf2e0]
call fcn.0043c727
pop ecx
jmp 0x48bc4b
push dword [0x4cf2e4]
call fcn.0043c727
pop ecx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00450a20
pop ecx
pop ecx
cmp eax, 6
jne 0x48bd5e
jmp 0x48bcee
call fcn.00429592
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 6
cmp al, 4
je 0x48bc80
or byte [ebx + 0x46], 4
jmp 0x48bd59
and byte [ebx + 0x46], 0xfb
jmp 0x48bd59
call fcn.00429592
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 0xa
cmp al, 8
je 0x48bca2
or byte [ebx + 0x46], 8
jmp 0x48bd59
and byte [ebx + 0x46], 0xf7
jmp 0x48bd59
call fcn.00429592
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 3
cmp al, 1
je 0x48bcc4
or byte [ebx + 0x46], 1
jmp 0x48bd59
and byte [ebx + 0x46], 0xfe
jmp 0x48bd59
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
inc edx
mov ecx, ebx
test ax, ax
jge 0x48bce9
call fcn.00478464
jmp 0x48bcee
call fcn.0048ceb0
call fcn.00429592
push 2
push 0xffffffffffffffff
jmp 0x48bd48
mov ecx, dword [esi + 0x2c]
mov eax, ebx
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 8]
mov ecx, dword [esp + 0x34]
dec ecx
dec ecx
je 0x48bd2c
dec ecx
je 0x48bd24
sub ecx, 4
jne 0x48bd45
test eax, eax
je 0x48bd45
mov ecx, dword [esi + 0x30]
push eax
call fcn.00406e71
jmp 0x48bd45
test eax, eax
je 0x48bd30
and dword [eax + 0x20], 0
test eax, eax
jne 0x48bd3c
mov eax, dword [esi + 0x30]
and dword [eax + 0x118], 0
jmp 0x48bd45
mov ecx, dword [esi + 0x30]
push eax
call fcn.00407822
push 2
push ebx
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
push ebp
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48bcf9
call fcn.004295a3
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20
ret 4