joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4573e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45741c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4573fd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45740c
or bl, 4
test esi, 0x20000000
je 0x457417
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45da38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45da4a
add esp, 0xfffffff0
call fcn.00403cf8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00428ac0
mov eax, dword [0x4eee1c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45dddc
mov eax, dword [0x4eee38]
mov dword [eax + 4], ebx
mov dword [eax], 0x45dde8
mov eax, ebx
call fcn.0045ddf4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45a2bc
push eax
push 0
push 0
mov eax, dword [0x4ef110]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42abdc]
call fcn.0042c2f0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42abdc]
call fcn.0042c2f0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42abdc]
call fcn.0042c2f0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045e214
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45e0f0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45e0f0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45e0f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45db87
call fcn.00403d50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ded4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e07f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45e060
mov dl, 1
mov eax, dword [0x41bac4]
call fcn.0040395c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45e04f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044b984
test al, al
je 0x45e042
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45e090
lea eax, [ebp - 0x254]
call fcn.0040a3f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45e042
xor eax, eax
push ebp
push 0x45e03b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45e0c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45e024
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404a48
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45e024
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e042
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45df45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420b28
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e086
lea eax, [ebp - 0x260]
call fcn.004047e0
ret

Function at 0x45e9b4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4f0c38]
cmp byte [eax + 0xa5], 0
jne 0x45ea25
cmp dword [0x4f0c50], 0
jne 0x45e9e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45e970
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f0c50], eax
cmp dword [0x4f0c4c], 0
jne 0x45ea01
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f0c4c], eax
cmp dword [0x4f0c54], 0
jne 0x45ea25
push esp
push 0
push 0
push 0x45e914
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4f0c54], eax
pop edx
ret
Function at 0x45eb1c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45eb33
add esp, 0xfffffff0
call fcn.00403cf8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00428ac0
mov eax, dword [0x4ef0f4]
cmp word [eax + 2], 0
jne 0x45eb5b
mov eax, dword [0x4ef0f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460150
mov eax, dword [0x4ef25c]
cmp word [eax + 2], 0
jne 0x45eb75
mov eax, dword [0x4ef25c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460348
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b2b0]
call fcn.0040395c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42b65c]
call fcn.00432b48
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45ecfc
mov eax, dword [0x4eeeec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00432f18
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4608c8
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4eeeec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e29c
test eax, eax
je 0x45ec6a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409d38
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e2c4
test eax, eax
je 0x45ec7e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00404a48
mov eax, dword [0x4eec34]
cmp byte [eax], 0
jne 0x45ecb2
mov eax, ebx
call fcn.0045ee24
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00460aa4
mov eax, ebx
call fcn.00461454
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ecf2
call fcn.00403d50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f098
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f0c38]
cmp dword [eax + 0x30], 0
je 0x45f142
cmp dword [ebx + 0x94], 0
jne 0x45f13c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f028
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f13c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45f102
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f13c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e1b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f111
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45fc20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45fc55
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048d0
jmp 0x45fc62
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404834
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460c80
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460cc1
mov eax, esi
call fcn.00447104
test al, al
je 0x460cc1
mov eax, dword [ebx + 0x84]
call fcn.00446e00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460cc1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446e00
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x477c9c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x477d30
push 0
mov eax, ebx
call fcn.00404c90
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x477d0b
mov eax, esi
call fcn.00404a98
inc eax
push eax
mov eax, esi
call fcn.00404c90
push eax
push 1
push 0
mov eax, edi
call fcn.00404c90
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x477d26
mov ecx, dword [0x4eeee4]
mov dl, 1
mov eax, dword [0x477838]
call fcn.0040d5ec
call fcn.00404224
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x477d4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.004047e0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404c90
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x477df3
xor eax, eax
push ebp
push 0x477dec
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404e1c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404c90
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404c90
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x477dce
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00404e1c
jmp 0x477dd5
mov eax, ebx
call fcn.004047e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477df3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491a9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x491c1d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ee3c8], 0
jne 0x491bfa
push 0x4f0d84
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x491bf3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ee3c8], 0
jne 0x491bdb
mov dword [ebp - 4], 0x100
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e1c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c90
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0040911c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x491c34
call fcn.0040a470
mov eax, dword [ebp - 0xc]
call fcn.00404c90
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x491b5c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e1c
jmp 0x491b93
lea eax, [ebp - 8]
mov edx, 0x491c54
call fcn.00404878
xor eax, eax
push ebp
push 0x491b89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00477dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x491b93
mov eax, dword [ebp - 8]
call fcn.00404c90
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4ee3c8], eax
cmp dword [0x4ee3c8], 0
jne 0x491bc6
mov ecx, dword [0x4ef0b0]
mov dl, 1
mov eax, dword [0x408500]
call fcn.0040d5ec
call fcn.00404224
push 0x491c60
mov eax, dword [0x4ee3c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0d9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491bfa
push 0x4f0d84
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491c24
lea eax, [ebp - 0x18]
call fcn.004047e0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404804
ret
Function at 0x49e5d4
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x49e60f
cmp dword [ebx + 0x5c], 0
je 0x49e60f
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.00496c0c
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x49e75a
cmp dword [ebx + 0x7c], 0
jne 0x49e635
mov dl, 1
mov eax, dword [0x41b51c]
call fcn.0040395c
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x49e733
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x49e760]
push eax
mov al, byte [0x49e764]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4ef0dc]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x48db30]
call fcn.0048f99c
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x49e72c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00496c0c
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.00496c0c
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x494650]
call fcn.004062fc
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x49e6ff
mov edx, dword [0x4ef398]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x49e710
cmp eax, 0x1007
jne 0x49e70c
mov byte [ebx + 0x74], 0x18
jmp 0x49e710
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e75a
mov eax, dword [ebp - 4]
call fcn.0040398c
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00496c0c
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d3cfc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d3e10
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4d3dd6
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403204
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 1
mov eax, esi
call fcn.00404c90
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlA
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffd
sub eax, 2
jb 0x4d3d9f
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0xb
lea eax, [ebp - 0x44]
push eax
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x4eedac]
call fcn.00406fbc
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x408500]
call fcn.0040d56c
call fcn.00404224
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x58], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x4c]
push eax
mov edx, dword [ebp - 0x2c]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0x28]
mov eax, esi
call fcn.00404cf0
lea eax, [ebx + 0x50]
push eax
mov edx, dword [ebp - 0x10]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404cf0
jmp 0x4d3df0
xor eax, eax
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x4c]
call fcn.004047e0
lea eax, [ebx + 0x50]
call fcn.004047e0
xor eax, eax
mov dword [ebx + 0x58], eax
lea eax, [ebx + 0x3c]
mov edx, esi
call fcn.00404834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3e17
lea eax, [ebp - 0x48]
call fcn.004047e0
ret
Function at 0x4d3fa4
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
test dl, dl
je 0x4d40ca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39], 0
jne 0x4d4101
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00404a98
test eax, eax
jle 0x4d3fd9
mov ebx, 3
jmp 0x4d3fdb
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x4d3feb
call fcn.0040d4d4
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
call fcn.00404c90
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00404c90
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00404c90
push eax
call sub.wininet.dll_InternetOpenA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x64], esi
test esi, esi
setne dl
xor dl, 1
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.004d3b14
xor eax, eax
push ebp
push 0x4d40aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.00404c90
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00404c90
push eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00404c90
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
push eax
call sub.wininet.dll_InternetConnectA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], ebx
test ebx, ebx
setne dl
xor dl, 1
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.004d3b14
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4101
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4d40da
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x4d40f2
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d4108
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d4279
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
mov edi, ebx
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x4d41e7
cmp dword [ebp - 0x10], 0x12c
jb 0x4d41e7
cmp dword [ebp - 0x10], 0x1f4
je 0x4d41e7
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x1000
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404e1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
call fcn.00404ce8
push eax
push 0x14
push edi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x4d41e7
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404e1c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x34]
push eax
push 2
mov ecx, 0x4d4290
mov dl, 1
mov eax, dword [0x408500]
call fcn.0040d56c
call fcn.00404224
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
mov edi, ebx
push edi
call sub.wininet.dll_InternetQueryDataAvailable
mov edx, eax
cmp edx, 1
sbb edx, edx
neg edx
mov cl, 1
mov eax, esi
call fcn.004d3b14
cmp dword [ebp - 8], 0
jbe 0x4d425d
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404e1c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
call fcn.00404ce8
push eax
push edi
call sub.wininet.dll_InternetReadFile
mov edx, eax
cmp edx, 1
sbb edx, edx
neg edx
mov cl, 1
mov eax, esi
call fcn.004d3b14
lea eax, [ebp - 0x1c]
call fcn.00404ce8
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 8], 0
jne 0x4d41ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4280
lea eax, [ebp - 0x1c]
call fcn.004047e0
ret