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

Disassembly:
push 0xffffffffffffffff
push 0x492c08
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x4b994c
mov dword [esp + 0x1c], str.datadeswitch.dat
mov dword [esp + 0x24], ebp
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebp
call fcn.0042cd40
mov byte [esp + 0x30], 1
lea ecx, [ecx]
mov ebx, dword [esp + ebp*4 + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040d090
add esp, 8
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x45aa9d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45aa8c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45aa8c
call fcn.00401ec0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45aa83
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], edi
jmp 0x45aa9d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00401f30
mov edi, dword [esp + 0x14]
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45aac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
push eax
push edi
call fcn.004616ad
add esp, 8
test eax, eax
je 0x45aae8
add ebp, 1
cmp ebp, 1
jb 0x45aa30
mov esi, dword [esp + 0x24]
jmp 0x45aaed
mov esi, 1
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ab12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ab36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x45ae20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492458
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [0x4aab90]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4aab88]
mov dword [esp + 0xc], eax
mov eax, dword [0x4aab94]
mov esi, ecx
mov ecx, dword [0x4aab8c]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45aef2
cmp dword [esi + 4], eax
je 0x45aef2
lea edx, [esp + 8]
push edx
push 0x49969c
lea eax, [esp + 0x24]
push eax
call ecx
test eax, eax
mov eax, dword [esp + 8]
jl 0x45aef2
test eax, eax
je 0x45aef2
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
test esi, esi
jge 0x45af2f
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 8]
test eax, eax
je 0x45aeee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
jmp 0x45af49
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45af20
cmp dword [esi + 4], 0
je 0x45af20
push esi
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push edx
call ecx
mov esi, eax
test esi, esi
jge 0x45af2f
mov eax, dword [esp + 8]
mov dword [esp + 0x38], 0xffffffff
jmp 0x45aee2
mov esi, 0x80004005
mov dword [esp + 0x38], 0xffffffff
jmp 0x45aee2
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 8]
test eax, eax
je 0x45af47
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0045eec1
add esp, 0x34
ret
Function at 0x45d720
Capabilities:
Compute adler32 checksum

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ecx, di
shr edi, 0x10
test esi, esi
mov ebx, eax
jne 0x45d73a
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
ret
test ebx, ebx
jbe 0x45d83c
push ebp
cmp ebx, 0x15b0
mov eax, ebx
jb 0x45d752
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x45d7fb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x45d770
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x45d770
test eax, eax
je 0x45d80f
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x45d800
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x45d743
pop ebp
mov eax, edi
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
ret

Function at 0x45dd10
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x45dd17
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0045dd20
Function at 0x45dd20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x45dd52
lea esp, [esp]
test cl, 3
je 0x45dd52
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4a1fd8]
add ecx, 1
sub esi, 1
jne 0x45dd30
cmp esi, 0x20
push ebx
push edi
jb 0x45df3c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4a23d8]
xor edx, dword [ebx*4 + 0x4a27d8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4a1fd8]
add ecx, 4
xor edx, dword [eax*4 + 0x4a2bd8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4a23d8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4a27d8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4a1fd8]
add ecx, 4
xor eax, dword [edx*4 + 0x4a2bd8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4a23d8]
xor edx, dword [ebx*4 + 0x4a27d8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4a1fd8]
xor edx, dword [eax*4 + 0x4a2bd8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4a23d8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4a27d8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4a1fd8]
xor eax, dword [edx*4 + 0x4a2bd8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4a23d8]
xor edx, dword [ebx*4 + 0x4a27d8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4a1fd8]
xor edx, dword [eax*4 + 0x4a2bd8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4a23d8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4a27d8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4a1fd8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4a2bd8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4a23d8]
xor edx, dword [ebx*4 + 0x4a27d8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4a1fd8]
add ecx, 4
xor edx, dword [eax*4 + 0x4a2bd8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4a23d8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4a27d8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4a1fd8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4a2bd8]
sub edi, 1
jne 0x45dd62
cmp esi, 4
jb 0x45df89
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4a23d8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4a27d8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4a1fd8]
and eax, 0xff
xor edi, dword [eax*4 + 0x4a2bd8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x45df46
test esi, esi
pop edi
pop ebx
je 0x45dfad
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4a1fd8]
add ecx, 1
sub esi, 1
jne 0x45df90
not eax
pop esi
ret
Function at 0x45e921
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b7110]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045e860
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00463d60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45e970
cmp dword [ebp - 0x1c], 5
jb 0x45e988
jmp 0x45e984
cmp dword [ebp - 0x10], 1
jne 0x45e988
cmp dword [ebp - 0x1c], 4
ja 0x45e984
jne 0x45e988
cmp dword [ebp - 0x18], 0
jbe 0x45e988
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4996e8
call fcn.0045e72a
test eax, eax
jge 0x45e9a9
mov byte [0x4bac84], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045eec1
add ebp, 0x78
leave
ret

Function at 0x45ec28
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4b99d0], 0
push esi
jne 0x45eb9b
call fcn.0045eac6
test eax, eax
je 0x45ebde
mov eax, dword [0x4b99d0]
cmp eax, 1
jne 0x45ebbc
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45ebde
pop esi
ret
push eax
call dword [0x4b99d8]
test eax, eax
jne 0x45ec26
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45ebe2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4b99d0]
call dword [0x4b99d8]
mov edi, eax
test edi, edi
je 0x45ec09
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45ec25
lea edi, [esi + 0xff0]
push esi
push dword [0x4b99d0]
call dword [0x4b99d4]
add esi, 0x10
cmp esi, edi
jb 0x45ec0f
mov eax, esi
pop edi
pop esi
ret
jmp 0x45eb88

Function at 0x45eec1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b7110]
jne 0x45eecb
repz ret
jmp fcn.00466035

Function at 0x460241
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x46026e
call fcn.00465166
mov dword [eax], esi
call fcn.00465153
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045f72e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x46024a
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46029d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00465179
pop ecx
call fcn.00465153
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4602c4
test al, 1
je 0x4602c4
test byte [esp + 0xc], 2
je 0x4602c4
call fcn.00465166
mov dword [eax], 5
call fcn.00465153
mov dword [eax], 0xd
jmp 0x460294
xor eax, eax
pop esi
ret
Function at 0x46127b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4612b8
cmp dword [ebp + 0x14], edi
je 0x4612b8
cmp ecx, edi
jne 0x4612bf
call fcn.00465153
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045f72e
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4612d3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4612f4
cmp ebx, 0xffffffff
je 0x4612e3
push ebx
push edi
push ecx
call fcn.00463d60
add esp, 0xc
cmp esi, edi
je 0x4612a0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4612a0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x461310
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x461317
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x461408
test word [esi + 0xc], 0x10c
je 0x46136b
mov eax, dword [esi + 4]
test eax, eax
je 0x46136b
jl 0x461469
cmp ebx, eax
mov edi, ebx
jb 0x46133c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x461410
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045eed0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x461400
cmp ebx, dword [ebp - 0xc]
jb 0x4613d8
cmp dword [ebp - 0xc], 0
je 0x461395
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x46138a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x461391
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4613a0
mov eax, closesocket
cmp ebx, eax
ja 0x4613a0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46143c
push eax
push dword [ebp - 8]
push esi
call fcn.0046bf8f
pop ecx
push eax
call fcn.0046d6d8
add esp, 0xc
test eax, eax
je 0x46147b
cmp eax, 0xffffffff
je 0x461469
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x461400
push esi
call fcn.0046cff7
cmp eax, 0xffffffff
pop ecx
je 0x46146d
cmp dword [ebp - 4], 0
je 0x46143c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46131f
mov eax, dword [ebp + 0x14]
jmp 0x4612ba
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x461427
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00463d60
add esp, 0xc
call fcn.00465153
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4612b0
cmp dword [ebp + 0xc], 0xffffffff
je 0x461452
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00463d60
add esp, 0xc
call fcn.00465153
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4612b0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4612ba
or dword [esi + 0xc], 0x10
jmp 0x46146d
Function at 0x46b2d2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b7a28]
je 0x46b2ed
inc edi
cmp edi, 0x17
jb 0x46b2de
cmp edi, 0x17
jae 0x46b46d
push ebp
push 3
call fcn.00474356
cmp eax, 1
pop ecx
je 0x46b439
push 3
call fcn.00474356
test eax, eax
pop ecx
jne 0x46b321
cmp dword [0x4b7100], 1
je 0x46b439
cmp ebx, 0xfc
je 0x46b46c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ba158
push ebp
call fcn.00468670
add esp, 0xc
test eax, eax
je 0x46b357
push esi
push esi
push esi
push esi
push esi
call fcn.0045f632
add esp, 0x14
push 0x104
mov esi, 0x4ba171
push esi
push 0
mov byte [0x4ba275], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46b39b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00468670
add esp, 0xc
test eax, eax
je 0x46b39b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045f632
add esp, 0x14
push esi
call fcn.00463fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46b3e0
push esi
call fcn.00463fe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ba46c
push 0x49a864
sub ecx, eax
push ecx
push eax
call fcn.0046e629
add esp, 0x14
test eax, eax
je 0x46b3e0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045f632
add esp, 0x14
jmp 0x46b3e2
xor esi, esi
push 0x49a860
push ebx
push ebp
call fcn.0046e5b8
add esp, 0xc
test eax, eax
je 0x46b402
push esi
push esi
push esi
push esi
push esi
call fcn.0045f632
add esp, 0x14
push dword [edi*8 + 0x4b7a2c]
push ebx
push ebp
call fcn.0046e5b8
add esp, 0xc
test eax, eax
je 0x46b424
push esi
push esi
push esi
push esi
push esi
call fcn.0045f632
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00474199
add esp, 0xc
jmp 0x46b46c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46b46c
cmp ebp, 0xffffffff
je 0x46b46c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b7a2c]
push dword [esi]
call fcn.00463fe0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x474199
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00466d3c
xor ebx, ebx
cmp dword [0x4ba708], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x47426f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47434f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x47434f
push eax
call fcn.00466cce
mov dword [esp], 0x49ba70
push edi
mov dword [0x4ba708], eax
call esi
push eax
call fcn.00466cce
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ba70c], eax
call esi
push eax
call fcn.00466cce
mov dword [0x4ba710], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046935e
test eax, eax
pop ecx
pop ecx
je 0x47423d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045f632
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x47426f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00466cce
cmp eax, ebx
pop ecx
mov dword [0x4ba718], eax
je 0x47426f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00466cce
pop ecx
mov dword [0x4ba714], eax
mov eax, dword [0x4ba714]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4742f4
cmp dword [0x4ba718], ecx
je 0x4742f4
push eax
call fcn.00466d45
push dword [0x4ba718]
mov esi, eax
call fcn.00466d45
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4742f4
cmp edi, ebx
je 0x4742f4
call esi
cmp eax, ebx
je 0x4742c1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4742c1
test byte [ebp - 0x18], 1
jne 0x4742f4
lea eax, [ebp - 0x10]
push eax
call fcn.00469395
test eax, eax
pop ecx
je 0x4742dc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045f632
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4742eb
or dword [ebp + 0x10], 0x200000
jmp 0x47432f
or dword [ebp + 0x10], 0x40000
jmp 0x47432f
mov eax, dword [0x4ba70c]
cmp eax, dword [ebp - 8]
je 0x47432f
push eax
call fcn.00466d45
cmp eax, ebx
pop ecx
je 0x47432f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47432f
mov eax, dword [0x4ba710]
cmp eax, dword [ebp - 8]
je 0x47432f
push eax
call fcn.00466d45
cmp eax, ebx
pop ecx
je 0x47432f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ba708]
call fcn.00466d45
cmp eax, ebx
pop ecx
je 0x47434f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x474351
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47b260
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47b2b0
mov ax, word [esp]
cmp al, 2
jne 0x47b2aa
cmp ah, al
jne 0x47b2aa
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0045eec1
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0045eec1
add esp, 0x194
ret
Function at 0x484fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x484ff2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x485150
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x48516b
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x48519f
cmp eax, 2
jg 0x48519f
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x49ccf0]
push 2
push edx
call fcn.00460d90
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.00460d90
add esp, 0x20
xor eax, eax
ret

Function at 0x4853d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x485415
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4853fb
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.0048fa20
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00485330
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x485a80
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x485ac4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0048fa20
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004852a0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004852a0
add esp, 8
pop esi
pop ecx
ret
Function at 0x485f10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x485f76
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x485f76
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x485f3c
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x485f6c
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x485f72
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret