joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4590f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x459123
push esi
call fcn.00467460
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45911c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4591a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x459192
mov eax, dword [esi + 8]
test eax, eax
je 0x459147
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45918e
cmp eax, 2
je 0x459192
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45913a
cmp eax, 3
je 0x45916d
cmp eax, 1
jne 0x45913a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45913a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45913a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004591d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4591b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004591d0
add esp, 4
pop esi
ret

Function at 0x459a50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x459a71
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x459a71
mov eax, dword [eax + 0x44]
test eax, eax
je 0x459a71
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x475fc0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x476063
test eax, eax
jbe 0x476063
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x476063
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47600e
xor esi, esi
jmp 0x476014
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47603f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00414210
add esi, eax
push esi
mov ebx, esi
call fcn.00414210
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x476020
pop ebp
test edi, edi
pop edi
jne 0x476063
test ebx, ebx
je 0x476063
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004873e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x476185
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47629d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47629d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00498712
mov esi, eax
test esi, esi
je 0x47629d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47629d
mov ecx, esi
call fcn.00476110
cmp edi, eax
jge 0x47629d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x476223
mov dword [esp + 0x34], 1
jmp 0x47627e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47629d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00475710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x497a9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004a1c0a
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x497acc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00497adf
pop edi
pop esi
pop ebx
ret 8

Function at 0x4990b6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4990ee
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.00497126
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004970fe
jmp 0x4990fa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x49a9a2
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 0x49a9e4
call fcn.004a1c0a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49a9e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49a9db
xor eax, eax
jmp 0x49a9ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049a9f2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a213a
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 0x4a2168
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2186
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a20a0
jmp 0x4a2186
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2186
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a20a0
test edi, edi
mov eax, edi
jne 0x4a2170
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xfab7d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x104000]
push edi
jmp 0xfab7ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xfab7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfab7e0
mov eax, 1
add ebx, ebx
jne 0xfab803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xfab814
jne 0xfab833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfab833
dec eax
add ebx, ebx
jne 0xfab820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xfab7f8
add ebx, ebx
jne 0xfab82f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xfab885
xor ecx, ecx
sub eax, 3
jb 0xfab84b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xfab8ba
sar eax, 1
mov ebp, eax
jmp 0xfab856
add ebx, ebx
jne 0xfab856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfab824
inc ecx
add ebx, ebx
jne 0xfab864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfab824
add ebx, ebx
jne 0xfab871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xfab866
jne 0xfab882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xfab866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xfab8a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xfab896
jmp 0xfab7e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xfab8a4
add edi, ecx
jmp 0xfab7e6
pop esi
mov edi, esi
mov ecx, 0x3de0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xfab8c2
cmp byte [edi], 0x1e
jne 0xfab8c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xfab8c7
lea edi, [esi + 0xb8d000]
mov eax, dword [edi]
or eax, eax
je 0xfab93f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbadfbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbae0fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xfab8f4
mov ecx, edi
jns 0xfab923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbae100]
or eax, eax
je 0xfab939
mov dword [ebx], eax
add ebx, 4
jmp 0xfab911
call dword [esi + 0xbae110]
mov ebp, dword [esi + 0xbae104]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xfab973
sub esp, 0xffffff80
jmp 0x481836
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4015d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4015e7
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40161c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401618
cmp edi, eax
jae 0x40161c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40160a
cmp edi, eax
jb 0x401620
xor eax, eax
jmp 0x401629
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402fdc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00427d80
push 0x2454
push 0
push esi
call fcn.00427d80
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403060
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp + 0xc]
sar eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4030ba
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x403096
cmp eax, 4
je 0x403096
cmp eax, 1
jne 0x4030ba
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4030be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [0x44ca7c], edi
je 0x4030d4
xor eax, eax
jmp 0x40316b
push esi
push str.MetalinkFile
mov esi, 0x4a9fa8
push esi
call fcn.00424528
pop ecx
pop ecx
cmp eax, edi
je 0x4030ff
xor ecx, ecx
mov word [eax], cx
add eax, 0x1a
push eax
call fcn.00424588
pop ecx
mov dword [0x44f104], eax
mov eax, dword [0x4af75c]
sub eax, dword [0x4af758]
mov ecx, 0x2454
cdq
idiv ecx
test eax, eax
jne 0x403128
push edi
push esi
mov esi, 0x44ca80
call fcn.00402fdc
pop ecx
pop ecx
test eax, eax
je 0x40316a
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x44eed4], eax
cmp eax, edi
je 0x403167
lea eax, [ebp - 4]
push eax
push edi
push 0x44ca70
push 0x4033f8
push edi
push edi
mov dword [ebp - 4], edi
mov dword [0x4a9b70], 8
call fcn.00424488
add esp, 0x18
mov dword [0x44ca7c], eax
xor eax, eax
inc eax
pop esi
pop edi
leave
ret
Function at 0x403fef
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 0x26dc]
push ebx
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
xor ebx, ebx
inc ebx
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x404060
cmp dword [edi + 0x2480], 0
je 0x40404d
push dword [esi + 0xc]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x404051
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x404084
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404082
jmp 0x40404d
cmp dword [esi], 0
jne 0x404071
mov eax, dword [esi + 4]
test eax, eax
je 0x404071
mov dword [esi + 0x18], eax
jmp 0x40404d
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.004056e0
test eax, eax
jne 0x40404d
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x404b00
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x26dc]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x404b72
cmp dword [edi + 0x2480], 0
je 0x404b9f
push dword [esi + 0xc]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x404b60
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x404b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x404ba2
cmp dword [esi], 0
jne 0x404b83
mov eax, dword [esi + 4]
test eax, eax
je 0x404b83
mov dword [esi + 0x18], eax
jmp 0x404b9f
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.004056e0
test eax, eax
jne 0x404b9f
mov eax, ebx
call fcn.00405244
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x404e7e
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x26dc]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + ecx*4]
push edi
push 0xa
pop ecx
xor eax, eax
lea edi, [esi + 0x8044]
rep stosd dword es:[edi], eax
mov edi, 0x8000
push edi
push eax
lea ebx, [esi + 0x40]
push ebx
mov dword [esi + 0x8044], 0x28
call fcn.00427d80
mov ecx, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
add esp, 0xc
lea ebx, [esi + 0x805c]
mov dword [ebx], edi
test ecx, ecx
je 0x404ee9
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x18]
sub eax, dword [ecx + 8]
inc eax
cmp eax, edi
jle 0x404ee5
mov eax, edi
mov dword [ebx], eax
jmp 0x404f12
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5d108], 0xffffffff
jne 0x404efe
cmp dword [ecx + 0x5d10c], 0xffffffff
je 0x404f12
mov eax, dword [ecx + 0x5d108]
sub eax, dword [ecx + 0x5d118]
cmp eax, edi
jg 0x404f10
mov edi, eax
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x404f71
push esi
push edi
lea eax, [esi + 0x8044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x404f50
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x404f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x404f4c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
call fcn.00405244
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x404f3f
Function at 0x40534c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
xor esi, esi
xor ecx, ecx
cmp dx, word [eax + 0x61858]
je 0x405376
lea ecx, [eax + 0x61858]
push 0x10000000
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
mov dword [edi + 0x14], eax
cmp eax, esi
je 0x4054ef
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov esi, dword [edi + 0x20]
lea edx, [esi + 0x2348]
mov ecx, edx
mov dword [ebp - 0x14], 3
lea eax, [ecx + 2]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x4053ae
sub ecx, eax
sar ecx, 1
je 0x4053c2
mov dword [ebp - 0xc], edx
lea edx, [esi + 0x2048]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4053cd
sub ecx, ebx
sar ecx, 1
je 0x4053e1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
jne 0x40540d
lea edx, [ebx + 0x60610]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4053f8
sub ecx, dword [ebp - 8]
sar ecx, 1
je 0x40540d
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x405436
lea edx, [ebx + 0x60710]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405421
sub ecx, dword [ebp - 8]
sar ecx, 1
je 0x405436
mov dword [ebp - 0x10], edx
xor eax, eax
inc eax
cmp dword [esi + 4], eax
jne 0x405441
mov dword [ebp - 0x14], eax
push 0x4034b7
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [edi + 0x20]
movzx ecx, word [eax]
push edi
push dword [ebx + 0x26d8]
add eax, 0x2148
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 0x18], eax
test eax, eax
je 0x4054ef
add ebx, 0x60810
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405487
sub eax, edx
sar eax, 1
je 0x4054ea
mov dword [ebp - 0x24], 3
test ebx, ebx
je 0x4054b2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4054b8
and dword [ebp - 0x20], 0
jmp 0x4054d2
lea esi, [eax + eax]
mov eax, esi
call fcn.004309d0
mov eax, esp
push 3
push esi
push ebx
mov esi, eax
call fcn.00402c24
mov dword [ebp - 0x20], eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x26
push dword [edi + 0x14]
mov dword [ebp - 0x1c], 0x43e0d0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x4054f1
xor eax, eax
lea esp, [ebp - 0x2c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042396b
leave
ret 4
Function at 0x405504
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.00430920
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], 0x43e1dc
cmp dword [edi + 0x2480], ebx
je 0x405543
mov dword [ebp - 0x1010], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x1008], ax
lea eax, [ebp - 0x1006]
push ebx
push eax
mov dword [ebp - 0x100c], ebx
mov dword [ebp - 0x1020], 0x43e1f0
mov dword [ebp - 0x101c], ebx
call fcn.00427d80
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push 0x43e1f8
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
call fcn.00407242
add esp, 0x14
mov eax, 0x8400c300
cmp dword [edi + 0x62cbc], ebx
je 0x4055b0
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4055be
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x1020]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x4056cc
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x1010]
push ecx
push 2
push eax
mov dword [ebp - 0x1010], 0x3a98
call edi
push 4
lea eax, [ebp - 0x1018]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x1018], 1
call edi
push 0xa
mov dword [ebp - 0x100c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x1048], 0x28
neg ecx
or ecx, eax
push ecx
call fcn.00423851
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4056a7
push 0xa2d0
push ebx
push edi
call fcn.00427d80
add esp, 0xc
push dword [ebp - 0x100c]
mov edx, edi
push dword [ebp - 0x1014]
mov ecx, esi
call fcn.00405856
mov eax, edi
mov dword [ebp - 0x1040], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x405692
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x103c], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x1048]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x100c], eax
cmp edi, ebx
je 0x4056cc
push edi
call fcn.00423a27
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x100c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042396b
leave
ret
Function at 0x405e99
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
cmp dword [edi + 8], esi
je 0x405eba
xor eax, eax
inc eax
jmp 0x40602b
lea ebx, [edi + 0x5d128]
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push esi
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406029
mov ecx, dword [edi + 0x5d108]
mov eax, dword [edi + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x405f15
cmp eax, ecx
je 0x405f30
cmp dword [ebp - 0x14], eax
ja 0x405f30
jb 0x405f21
cmp dword [ebp - 0x18], ecx
ja 0x405f30
mov dword [edi + 0x2470], 2
jmp 0x406029
push esi
push 0x20
push 4
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x406013
cmp dword [edi + 0x26fc], esi
je 0x405eb2
lea ebx, [edi + 0x26ec]
call fcn.00406ebc
mov ebx, edi
call fcn.00406291
test eax, eax
jne 0x405eb2
cmp dword [edi + 0x2468], esi
ja 0x405f88
mov dword [edi + 0x2468], 5
push 0xa
pop ecx
cmp dword [edi + 0x2468], ecx
jbe 0x405f99
mov dword [edi + 0x2468], ecx
mov eax, dword [edi + 0x5d108]
mov ecx, dword [edi + 0x5d10c]
add eax, 0xffffffff
mov dword [edi + 0x5cfd0], eax
lea eax, [edi + 0x5cfc0]
mov dword [edi + 0x5cfc8], esi
mov dword [edi + 0x5cfcc], esi
adc ecx, 0xffffffff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
lea esi, [edi + 0x26ec]
mov dword [edi + 0x5cfd4], ecx
call fcn.00406e70
mov eax, dword [edi + 0x5d108]
mov edx, dword [edi + 0x5d10c]
mov cl, 0x20
call fcn.004396c0
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x5d108]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x405eb2
mov dword [edi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2474], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
leave
ret