joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed820
Capabilities:
Create directory

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov al, byte [ebp]
test al, al
je 0x4ed85d
cmp al, 0x5c
jne 0x4ed867
cmp byte [ebp + 1], 0x5c
jne 0x4ed867
lea eax, [ebp + 2]
push 0x5c
push eax
call fcn.005e7280
add esp, 8
test eax, eax
je 0x4ed85d
inc eax
push 0x5c
push eax
call fcn.005e7280
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4ed86b
mov eax, 3
pop ebp
pop ecx
ret 4
mov dword [esp + 0xc], ebp
push esi
mov eax, ebp
push edi
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ed874
sub eax, edx
lea ecx, [eax + ebp + 1]
cmp ebp, ecx
mov dword [esp + 0xc], ecx
mov esi, ebp
je 0x4ed92d
push ebx
mov bl, byte [esi]
cmp bl, 0x5c
je 0x4ed89b
test bl, bl
jne 0x4ed8e7
cmp esi, dword [esp + 0x18]
jbe 0x4ed8e7
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x4ed8e7
cmp al, 0x5c
je 0x4ed8e7
xor edi, edi
push edi
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x4ed8c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x35
mov byte [esi], bl
je 0x4ed8f6
cmp edi, 0x7b
je 0x4ed912
cmp edi, 5
je 0x4ed91a
test edi, edi
je 0x4ed8e3
cmp edi, 0xb7
jne 0x4ed92c
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ecx
jne 0x4ed890
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
push ebp
push str.Could_not_create_directory__s_nNetwork_path_not_found_
push 7
push 4
call fcn.004edf50
add esp, 0x10
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
push ebp
push str.Could_not_create_directory__s_nInvalid_directory_name_
jmp 0x4ed920
push ebp
push str.Could_not_create_directory__s_nAccess_denied_
push 3
push 4
call fcn.004edf50
add esp, 0x10
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4

Function at 0x4ed940
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, ecx
push esi
call edi
cmp eax, 1
jne 0x4ed957
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ed979
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call edi
dec eax
neg eax
sbb eax, eax
and eax, 5
pop edi
pop esi
ret

Function at 0x4ed980
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
xor eax, eax
cmp ecx, 0x63bb40
push edi
mov edi, 0x63ba40
je 0x4ed996
mov edi, 0x63bb40
test ecx, ecx
je 0x4ed9c6
push ebx
mov ebx, edi
mov esi, ecx
sub ebx, ecx
mov al, byte [esi]
mov byte [ebx + esi], al
inc esi
test al, al
jne 0x4ed9a1
mov eax, ecx
lea esi, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ed9b1
sub eax, esi
cmp byte [edi + eax - 1], 0x5c
je 0x4ed9c6
mov byte [edi + eax], 0x5c
inc eax
push edx
add eax, edi
push 0x5f7e8c
push eax
mov byte [eax], 0
call fcn.005e6246
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push edi
call esi
cmp eax, 1
jne 0x4ed9ed
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4eda0f
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call esi
dec eax
neg eax
sbb eax, eax
and eax, 5
pop edi
pop esi
ret
Function at 0x4edb00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 8
xor eax, eax
test ecx, ecx
push ebx
mov dword [esp + 8], edx
je 0x4edb42
mov eax, 0x63b940
mov edx, ecx
sub eax, ecx
mov bl, byte [edx]
mov byte [eax + edx], bl
inc edx
test bl, bl
jne 0x4edb17
mov eax, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4edb26
sub eax, edx
mov dl, byte [eax + 0x63b93f]
mov cl, 0x5c
cmp dl, cl
je 0x4edb42
mov byte [eax + 0x63b940], cl
inc eax
push 0x60e8c8
lea eax, [eax + 0x63b940]
push 0x5f7e8c
push eax
mov byte [eax], 0
call fcn.005e6246
add esp, 0xc
mov ecx, 0x140
call fcn.004dc530
mov ebx, eax
push ebx
push 0x63b940
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x4edb93
mov ecx, ebx
call fcn.004dc6a0
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, 0x60e808
mov esi, ebp
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4edbd6
mov edi, 0x60e8c4
mov esi, ebp
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4edbd6
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebp
call dword [esp + 0x18]
cmp eax, 1
jne 0x4edc3d
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x4edc3d
jmp 0x4edbf0
mov edi, 0x60e808
mov esi, ebp
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4edc2c
mov edi, 0x60e8c4
mov esi, ebp
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4edc2c
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 0x4edc3d
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4edbf0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, ebx
call fcn.004dc6a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x4edc60
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 0x4edc79
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 0x4edc8e
cmp eax, 5
jne 0x4edcd4
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004ea010
mov ecx, dword [esp + 0xc]
push ecx
mov edx, 0x4edad0
call fcn.004edb00
mov eax, dword [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x4edcc5
mov ecx, dword [esp + 0xc]
xor esi, esi
call fcn.004dc6a0
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret
call ebx
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.004dc6a0
mov eax, esi
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4edf00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x63c444]
test eax, eax
push edi
mov edi, ecx
jne 0x4edf42
mov ecx, dword [0x63b484]
test ecx, ecx
mov eax, 1
mov dword [0x63c444], eax
je 0x4edf25
mov dword [0x63b810], eax
test edi, edi
je 0x4edf3c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push eax
push ecx
mov ebx, edx
call fcn.004edea0
pop ebx
push edi
call fcn.005e6e89
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 + 0x62b228]
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 + 0x62b228]
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 0x4fd2f0
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 0x4fd30e
mov eax, 1
pop esi
ret 4
xor eax, eax
dec esi
cmp esi, 9
ja case.0x4fd31a.2
jmp dword [esi*4 + 0x4fd3e0]
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 0x4fd35b
test al, al
je 0x4fd354
mov dl, byte [ecx + 1]
mov bl, byte [esi + 1]
mov al, dl
cmp dl, bl
jne 0x4fd35b
add ecx, 2
add esi, 2
test al, al
jne 0x4fd330
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.00425850
pop esi
ret 4
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.0050c280
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.00529430
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.0052ad00
mov edx, dword [edx]
mov ecx, dword [ecx + 0x1c]
pop esi
mov dword [esp + 4], edx
jmp fcn.0050d4d0
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.005297d0
mov edx, dword [edx]
mov eax, dword [edx]
mov dword [ecx + 0x1c], eax
pop esi
ret 4
Function at 0x505300
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x158
call fcn.005e6090
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x5053f1
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 0x50534a
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.005e6246
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 0x5053f1
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 0x5053fd
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 0x505420
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x505444
push esi
push 0x5054f0
mov dword [esi + 0x18], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x505444
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 0x505460
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 0x5054dc
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 0x5054b2
push esi
push 0x5054f0
mov dword [esi + 0x18], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x18], ebp
je 0x5054d9
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x5054d9
lea edx, [esp + 0x10]
push edx
push ebx
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x5054d9
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 0x505510
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 0x505575
cmp eax, 0xffffffff
je 0x505575
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 0x5056d0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x804
call fcn.005e6090
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
jne 0x5056f2
pop esi
xor eax, eax
pop ebp
add esp, 0x804
ret
mov eax, dword [0x63b4e4]
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.005e6246
add esp, 0x10
mov ecx, 0x3c
call fcn.004dc530
cmp eax, esi
je 0x50572e
mov ecx, eax
call fcn.00501e30
mov ebx, eax
jmp 0x505730
xor ebx, ebx
push esi
mov ecx, ebx
call fcn.00501370
push ebx
mov ecx, ebp
call fcn.00505580
mov ecx, 0x3c
call fcn.004dc530
cmp eax, esi
je 0x505759
mov ecx, eax
call fcn.00501e30
mov edi, eax
jmp 0x50575b
xor edi, edi
mov ecx, 0x3c
call fcn.004dc530
cmp eax, esi
je 0x505772
mov ecx, eax
call fcn.00501e30
mov esi, eax
lea edx, [esp + 0x14]
push edx
push edi
call fcn.005014b0
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.00501370
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push 1
call dword [edx + 0x14]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5057ad
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x50]
jmp 0x5057af
xor eax, eax
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x5057c3
mov edx, dword [ecx]
push 0
push 0
push 0
push esi
push eax
call dword [edx + 0x6c]
mov ecx, esi
call fcn.005011e0
mov ecx, edi
call fcn.005011e0
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 0x505834
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x50581c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x505824
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 0x506060
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.00517cd0
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.00517e70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10

Function at 0x5069f0
Capabilities:
Connect to http server

Disassembly:
cmp dword [0x62ca50], 1
push esi
push 0
push 0
mov esi, ecx
push 3
jne 0x506a1c
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 0x506a34
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 0x506a6f
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 0x506a66
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 0x506a80
Capabilities:
Send data
Send http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 1
mov eax, 0x4200000
jne 0x506a93
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 0x602d94
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x506acc
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 0x506aec
mov ecx, edi
push ebx
lea ebx, [ecx + 1]
jmp 0x506ae0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x506ae0
sub ecx, ebx
pop ebx
jmp 0x506aee
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 0x506b15
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 0x506b90
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 0x506bde
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 0x506bd5
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 0x507470
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 0x507579
jmp 0x5074b4
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5075f8
lea ecx, [eax + 1]
call fcn.004dc4c0
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 0x5075ad
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5075f8
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.004dc4c0
test edi, edi
mov ebp, eax
je 0x50752b
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.004dc6a0
mov ecx, ebx
call fcn.004dc6a0
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 0x5074b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, ebp
call fcn.004dc6a0
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x5075ce
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.004dc6a0
mov ecx, ebp
call fcn.004dc6a0
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x5075dd
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 0x50760c
mov byte [esi + ebp], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x507620
Capabilities:
Parse url

Disassembly:
mov eax, 0x40
call fcn.005e6090
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.004dc4c0
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.004dc6a0
mov edx, edi
mov ecx, esi
call fcn.004ea010
mov ecx, edi
call fcn.004dc6a0
mov esi, dword [esi]
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5076e0
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 0x507708
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 0x507718
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x507733
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x507733
xor edx, edx
cmp eax, 4
setne dl
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x50774c
mov edx, dword [esp + 0x24]
test edx, edx
je 0x50774c
push eax
lea ecx, [ebx + 0x18]
call fcn.004ea050
mov ax, word [esp + 0x2c]
mov word [ebx + 0x30], ax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x50776e
mov edx, dword [esp + 0x30]
test edx, edx
je 0x50776e
push eax
lea ecx, [ebx + 0x1c]
call fcn.004ea050
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x507787
mov edx, dword [esp + 0x38]
test edx, edx
je 0x507787
push eax
lea ecx, [ebx + 0x20]
call fcn.004ea050
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5077ef
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5077ef
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + eax + 1]
call fcn.004dc4c0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
push ecx
push eax
mov dword [ebx + 0x24], eax
call fcn.005e7550
mov eax, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x5077e2
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x5077e2
mov edx, dword [ebx + 0x24]
mov esi, dword [esp + 0x44]
push eax
push ecx
add edx, esi
push edx
call fcn.005e7550
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