joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4edb20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 8
xor eax, eax
test ecx, ecx
push ebx
mov dword [esp + 8], edx
je 0x4edb62
mov eax, 0x676040
mov edx, ecx
sub eax, ecx
mov bl, byte [edx]
mov byte [eax + edx], bl
inc edx
test bl, bl
jne 0x4edb37
mov eax, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4edb46
sub eax, edx
mov dl, byte [eax + 0x67603f]
mov cl, 0x5c
cmp dl, cl
je 0x4edb62
mov byte [eax + 0x676040], cl
inc eax
push 0x6328e8
lea eax, [eax + 0x676040]
push 0x61beac
push eax
mov byte [eax], 0
call fcn.006097c6
add esp, 0xc
mov ecx, 0x140
call fcn.004dc5a0
mov ebx, eax
push ebx
push 0x676040
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x4edbb3
mov ecx, ebx
call fcn.004dc710
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
add esp, 8
ret 4
movzx edx, byte [ebx]
push ebp
push esi
shr edx, 4
push edi
and edx, 1
lea ebp, [ebx + 0x2c]
mov edi, 0x632828
mov esi, ebp
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4edbf6
mov edi, 0x6328e4
mov esi, ebp
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4edbf6
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebp
call dword [esp + 0x18]
cmp eax, 1
jne 0x4edc5d
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x4edc5d
jmp 0x4edc10
mov edi, 0x632828
mov esi, ebp
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4edc4c
mov edi, 0x6328e4
mov esi, ebp
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4edc4c
movzx edx, byte [ebx]
mov eax, dword [esp + 0x1c]
shr edx, 4
and edx, 1
push eax
mov ecx, ebp
call dword [esp + 0x18]
test eax, eax
je 0x4edc5d
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4edc10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, ebx
call fcn.004dc710
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x4edc80
Capabilities:
Delete directory

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, ecx
push esi
call edi
cmp eax, 1
jne 0x4edc99
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x91
je 0x4edcae
cmp eax, 5
jne 0x4edcf4
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004ea050
mov ecx, dword [esp + 0xc]
push ecx
mov edx, 0x519350
call fcn.004edb20
mov eax, dword [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x4edce5
mov ecx, dword [esp + 0xc]
xor esi, esi
call fcn.004dc710
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret
call ebx
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.004dc710
mov eax, esi
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4edf20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x676b44]
test eax, eax
push edi
mov edi, ecx
jne 0x4edf62
mov ecx, dword [0x675b84]
test ecx, ecx
mov eax, 1
mov dword [0x676b44], eax
je 0x4edf45
mov dword [0x675f10], eax
test edi, edi
je 0x4edf5c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push eax
push ecx
mov ebx, edx
call fcn.004edec0
pop ebx
push edi
call fcn.0060a3f9
pop edi
ret 8

Function at 0x4f1780
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, edx
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 4], ebx
je 0x4f17d3
push esi
push edi
mov esi, eax
mov al, byte [ecx]
movzx eax, al
movzx edx, bh
xor edx, eax
xor eax, eax
mov ah, bl
inc ecx
xor ax, word [edx*2 + 0x662228]
mov edx, dword [esp + 0xc]
movzx edi, dh
inc ecx
mov ebx, eax
mov al, byte [ecx - 1]
movzx eax, al
xor edi, eax
xor eax, eax
mov ah, dl
xor ax, word [edi*2 + 0x662228]
dec esi
mov dword [esp + 0xc], eax
jne 0x4f1795
pop edi
pop esi
movzx ecx, word [esp + 4]
movzx eax, bx
shl eax, 0x10
add eax, ecx
pop ebx
pop ecx
ret

Function at 0x4fd3a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx + 8]
push esi
mov esi, dword [ecx + 0xc]
shl esi, 0x15
sar esi, 0x1b
cmp eax, esi
je 0x4fd3be
mov eax, 1
pop esi
ret 4
xor eax, eax
dec esi
cmp esi, 9
ja case.0x4fd3ca.2
jmp dword [esi*4 + 0x4fd490]
mov ecx, dword [ecx + 0x1c]
mov esi, dword [edx]
add ecx, 4
push ebx
lea ebx, [ebx]
mov dl, byte [ecx]
mov bl, byte [esi]
mov al, dl
cmp dl, bl
jne 0x4fd40b
test al, al
je 0x4fd404
mov dl, byte [ecx + 1]
mov bl, byte [esi + 1]
mov al, dl
cmp dl, bl
jne 0x4fd40b
add ecx, 2
add esi, 2
test al, al
jne 0x4fd3e0
pop ebx
xor eax, eax
pop esi
ret 4
sbb eax, eax
pop ebx
sbb eax, 0xffffffff
pop esi
ret 4
mov esi, dword [ecx + 0x1c]
mov ecx, edx
call fcn.00417a20
push eax
mov ecx, esi
call fcn.00425900
pop esi
ret 4
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.0050c310
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.00529490
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.0052ad60
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.0050d560
mov eax, dword [ecx + 0x1c]
mov ecx, dword [edx]
mov eax, dword [eax]
sub eax, dword [ecx]
pop esi
ret 4
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.00529830
mov edx, dword [edx]
mov eax, dword [edx]
mov dword [ecx + 0x1c], eax
pop esi
ret 4
Function at 0x505380
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x158
call fcn.00609610
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x505471
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x16c]
test eax, eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], 1
pop edi
je 0x5053ca
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x164]
mov edx, dword [esp + 0x160]
dec eax
neg eax
sbb eax, eax
xor ecx, ecx
mov dword [esp + 4], ecx
and eax, 5
mov dword [esp + 8], ecx
push edx
mov word [esp + 0x4c], ax
mov eax, dword [esi]
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x64]
push str.__s___s
push ecx
call fcn.006097c6
add esp, 0x10
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x505471
mov edx, dword [esi + 4]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x14], 0x103
je 0x50547d
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
xor eax, eax
pop esi
add esp, 0x158
ret 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
mov eax, 1
pop esi
add esp, 0x158
ret 0xc

Function at 0x5054a0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x5054c4
push esi
push 0x505570
mov dword [esi + 0x18], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x5054c4
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
ret 0xc

Function at 0x5054e0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 0x14]
jne 0x50555c
mov ebx, dword [esi + 0x28]
xor ebp, ebp
cmp edi, ebp
mov dword [esi + 0x18], edi
mov dword [esp + 0x10], 0x64
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jne 0x505532
push esi
push 0x505570
mov dword [esi + 0x18], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x18], ebp
je 0x505559
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x505559
lea edx, [esp + 0x10]
push edx
push ebx
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x505559
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov dword [esi + 0x18], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
Function at 0x505590
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
push 0
push 0x100
push 0
push 4
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
mov esi, ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x24], eax
je 0x5055f5
cmp eax, 0xffffffff
je 0x5055f5
push 0x100
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x20], eax
pop esi
mov eax, ecx
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x505750
Capabilities:
Terminate process

Disassembly:
mov eax, 0x804
call fcn.00609610
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
jne 0x505772
pop esi
xor eax, eax
pop ebp
add esp, 0x804
ret
mov eax, dword [0x675be4]
push ebx
push edi
push eax
push str.http:__127.0.0.1
lea ecx, [esp + 0x1c]
push str._s:_s
push ecx
mov dword [esp + 0x20], esi
call fcn.006097c6
add esp, 0x10
mov ecx, 0x3c
call fcn.004dc5a0
cmp eax, esi
je 0x5057ae
mov ecx, eax
call fcn.00501ee0
mov ebx, eax
jmp 0x5057b0
xor ebx, ebx
push esi
mov ecx, ebx
call fcn.00501420
push ebx
mov ecx, ebp
call fcn.00505600
mov ecx, 0x3c
call fcn.004dc5a0
cmp eax, esi
je 0x5057d9
mov ecx, eax
call fcn.00501ee0
mov edi, eax
jmp 0x5057db
xor edi, edi
mov ecx, 0x3c
call fcn.004dc5a0
cmp eax, esi
je 0x5057f2
mov ecx, eax
call fcn.00501ee0
mov esi, eax
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00501560
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
add esp, 8
push 1
call dword [eax + 0x14]
push 0
mov ecx, esi
call fcn.00501420
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push 1
call dword [edx + 0x14]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x50582d
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x50]
jmp 0x50582f
xor eax, eax
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x505843
mov edx, dword [ecx]
push 0
push 0
push 0
push esi
push eax
call dword [edx + 0x6c]
mov ecx, esi
call fcn.00501290
mov ecx, edi
call fcn.00501290
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov ecx, dword [ebp + 0x14]
push ecx
xor edi, edi
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x5058b4
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x50589c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x5058a4
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], edi
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x804
ret
Function at 0x5060f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x78]
push eax
push edi
push ebx
call fcn.00517cf0
movsx ebp, word [edi]
movsx ecx, word [edi + 2]
movsx edx, word [ebx + 0x1c]
movsx edi, word [ebx + 0x1e]
mov esi, dword [esi + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0xc]
add ebp, dword [eax + 0xc]
mov dword [esp + 0x10], ebp
add ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
add edi, dword [eax + 0x10]
mov dword [esp + 0x1c], edi
add edx, dword [eax + 0x10]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x1c]
mov cx, word [ecx]
sub cx, dx
movzx edx, cx
push 0
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x1c]
mov cx, word [eax]
mov eax, dword [esp + 0x34]
push 0
push 0xffffffffffffffff
sub cx, di
push 0
movzx edx, cx
push 0
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov ecx, esi
call fcn.00517e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10

Function at 0x506a80
Capabilities:
Connect to http server

Disassembly:
cmp dword [0x663a50], 1
push esi
push 0
push 0
mov esi, ecx
push 3
jne 0x506aac
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
jmp 0x506ac4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push str._::1_
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x506aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x506af6
mov edx, dword [esi]
push str.Internet_Connect_nfailure_
push esi
call dword [edx + 0x48]
add esp, 8
pop esi
ret 0x10
mov eax, 1
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x506b10
Capabilities:
Send data
Send http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 1
mov eax, 0x4200000
jne 0x506b23
mov eax, 0x4a00000
mov ecx, dword [esi + 0xc]
push 0
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push eax
push 0x626db4
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x506b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, 1
pop esi
ret 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x506b7c
mov ecx, edi
push ebx
lea ebx, [ecx + 1]
jmp 0x506b70
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x506b70
sub ecx, ebx
pop ebx
jmp 0x506b7e
xor ecx, ecx
push 0
push 0
push ecx
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
pop edi
jne 0x506ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x506c20
Capabilities:
Send data

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x506c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x506c65
mov edx, dword [eax]
push str.HTTP_Data_nPosting_failure_
push eax
call dword [edx + 0x48]
add esp, 8
pop esi
ret 8
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x507500
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
mov ecx, dword [esp + 0x30]
push esi
mov dword [eax], esi
push esi
lea edx, [esp + 0x18]
mov dword [ecx], esi
mov eax, dword [edi + 0x10]
push edx
push eax
mov dword [esp + 0x24], edi
xor ebp, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x507609
jmp 0x507544
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x507688
lea ecx, [eax + 1]
call fcn.004dc530
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
mov eax, dword [edi + 0x10]
push edx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x50763d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x507688
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
add esi, ecx
mov edi, ebp
lea ecx, [esi + 1]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
call fcn.004dc530
test edi, edi
mov ebp, eax
je 0x5075bb
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
call fcn.004dc710
mov ecx, ebx
call fcn.004dc710
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
push 0
push 0
lea eax, [esp + 0x18]
push eax
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x507540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, ebp
call fcn.004dc710
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x50765e
mov edi, eax
mov edx, dword [edi]
push str.No_HTTP_Response_
push edi
call dword [edx + 0x48]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, ebx
call fcn.004dc710
mov ecx, ebp
call fcn.004dc710
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x50766d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8
mov edi, dword [edi + 0x4c]
mov edx, dword [edi]
push str.Failed_to_Read_nHTTP_Response_
push edi
call dword [edx + 0x48]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
test ebp, ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [eax], ebp
mov dword [ecx], esi
je 0x50769c
mov byte [esi + ebp], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x5076b0
Capabilities:
Parse url

Disassembly:
mov eax, 0x40
call fcn.00609610
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
mov edx, dword [esi]
xor eax, eax
push edi
mov ebx, ecx
push eax
mov ecx, 0xf
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov ebp, 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebp
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov ecx, dword [esp + 0x10]
inc ecx
call fcn.004dc530
mov ecx, dword [esi]
mov edi, eax
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov edx, dword [esp + 0x10]
mov byte [edi + edx], 0
mov ecx, dword [esi]
call fcn.004dc710
mov edx, edi
mov ecx, esi
call fcn.004ea050
mov ecx, edi
call fcn.004dc710
mov esi, dword [esi]
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x507770
lea ecx, [esp + 0x14]
push ecx
push 0
sub eax, edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x507798
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret 4
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5077a8
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5077c3
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5077c3
xor edx, edx
cmp eax, 4
setne dl
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5077dc
mov edx, dword [esp + 0x24]
test edx, edx
je 0x5077dc
push eax
lea ecx, [ebx + 0x18]
call fcn.004ea090
mov ax, word [esp + 0x2c]
mov word [ebx + 0x30], ax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5077fe
mov edx, dword [esp + 0x30]
test edx, edx
je 0x5077fe
push eax
lea ecx, [ebx + 0x1c]
call fcn.004ea090
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x507817
mov edx, dword [esp + 0x38]
test edx, edx
je 0x507817
push eax
lea ecx, [ebx + 0x20]
call fcn.004ea090
mov eax, dword [esp + 0x44]
test eax, eax
je 0x50787f
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x50787f
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + eax + 1]
call fcn.004dc530
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
push ecx
push eax
mov dword [ebx + 0x24], eax
call fcn.0060aac0
mov eax, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x507872
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x507872
mov edx, dword [ebx + 0x24]
mov esi, dword [esp + 0x44]
push eax
push ecx
add edx, esi
push edx
call fcn.0060aac0
mov eax, dword [esp + 0x58]
add esp, 0xc
mov ecx, dword [ebx + 0x24]
mov edx, dword [esp + 0x44]
add ecx, eax
mov byte [ecx + edx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4
Function at 0x512c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x14]
push esi
mov esi, ecx
test esi, esi
push edi
mov edi, dword [esp + 0x14]
je 0x512cc1
mov eax, dword [esi + 0xc]
shl eax, 0x1a
sar eax, 0x1a
cmp eax, 0xd
je 0x512d39
cmp eax, 2
je 0x512d39
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x512ca3
mov esi, ecx
cmp dword [edi], 0
jg 0x512cce
mov dword [edi], 1
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xc]
and eax, 0x3f
cmp al, 0xb
jne 0x512d86
mov edx, dword [ecx]
call dword [edx + 0x78]
cmp eax, 1
jne 0x512d86
push eax
push 0x10
mov ecx, 0x675c98
call fcn.004e1e00
mov ebx, eax
test ebx, ebx
je 0x512d76
mov eax, dword [ebp + 0x14]
movsx ecx, word [eax + 0x18]
mov edx, dword [0x759708]
shl ecx, 4
mov ecx, dword [ecx + edx]
call fcn.00417490
lea ecx, [ebx + 0xc]
mov edx, eax
mov dword [ebx], 0x61cbb4
call fcn.004ea050
push ebx
lea ecx, [edi + 0x10]
call fcn.004e61c0
mov eax, dword [ebp + 0x14]
jmp 0x512dcd
mov eax, dword [esi + 0xc]
and eax, 0x3f
cmp al, 0xd
jne 0x512d53
mov edi, dword [esp + 0x14]
mov dword [edi + 0x4c], 1
jmp 0x512cc8
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x512d6b
xor ecx, ecx
mov cl, byte [esi + 0xbc]
shr ecx, 5
and ecx, 1
mov dword [edi + 0x4c], ecx
movsx edx, word [esi + 0x44]
mov dword [edi], edx
jmp 0x512cc3
xor ebx, ebx
push ebx
lea ecx, [edi + 0x10]
call fcn.004e61c0
mov eax, dword [ebp + 0x14]
jmp 0x512dcd
cmp word [ebp + 0x58], 0
je 0x512db6
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x512db6
movsx ecx, word [ebp + 0x18]
mov edx, dword [0x759708]
mov ebx, dword [eax + 0x68]
shl ecx, 4
mov ecx, dword [ecx + edx]
push 1
call fcn.00417490
push eax
mov ecx, ebx
call fcn.004f2de0
mov ecx, dword [edi]
xor eax, eax
mov ax, word [0x7323e8]
lea edx, [edi + 0x10]
push eax
push ecx
mov ecx, esi
push edx
call fcn.004eaf30
mov ecx, dword [edi]
mov dword [edi + 0x1c], eax
xor eax, eax
mov ax, word [0x7323f8]
lea edx, [edi + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004eaf30
mov ecx, dword [edi]
mov dword [edi + 0x2c], eax
xor eax, eax
mov ax, word [0x7323fc]
lea edx, [edi + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004eaf30
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, edi
call fcn.0055c9f0
pop edi
pop esi
pop ebp
pop ebx
ret 8