joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6b99
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4f487b
call fcn.004ba84c
sub esp, 0x25c
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
jne 0x4d6be3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
xor eax, eax
jmp 0x4d6c78
push ebx
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.004d6b57
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4d6c6a
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x4d6c6d
test byte [ebp + 8], 2
jne 0x4d6c38
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp + 8], 4
jne 0x4d6c6a
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4d6c6a
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401e40
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.004b8f56
leave
ret 8
Function at 0x4d75fa
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004ba870
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x512644]
je 0x4d7701
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x4d766a
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4d7671
cmp ebx, ebx
jne 0x4d7671
xor eax, eax
jmp 0x4d7704
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4d767e
mov byte [esi + 0x20], bl
jmp 0x4d7692
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004aeb57
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004aeb57
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004aeb57
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x4d76ed
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4d7701
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d953f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4d9591
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x4d9591
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x4d959d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004b8f56
leave
ret 8
Function at 0x4d9b03
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.004d9aec
cmp dword [esi], 0
mov ebx, eax
je 0x4d9b6f
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
call fcn.004b7226
add esp, 0xc
cmp eax, 1
pop edi
je 0x4d9b92
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.004ddae5
mov ecx, esi
call fcn.004d985a
jmp 0x4d9b92
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
call fcn.004b7188
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.004d953f
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004b8f56
leave
ret
Function at 0x4dbc50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.004cf620
test eax, eax
jne 0x4dbe40
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.004ad277
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x4dbc94
cmp edi, ebx
je 0x4dbc94
cmp edi, 0x202
jne 0x4dbded
cmp edi, 0x200
jb 0x4dbca4
cmp edi, 0x209
jbe 0x4dbcbc
cmp edi, 0xa0
jb 0x4dbded
cmp edi, 0xa9
ja 0x4dbded
call fcn.004e6a19
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004ba870
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x4dbd1a
push dword [ebp - 0x24]
call fcn.004b6aea
pop ecx
cmp edi, ebx
jne 0x4dbd2d
test byte [ebp - 0x41], 0x80
je 0x4dbd2d
mov dword [ebp - 8], 1
jmp 0x4dbd4b
and dword [ebp - 8], 0
cmp edi, ebx
je 0x4dbd4b
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4dbd4b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4dbdb7
cmp dword [ebp - 8], 0
jne 0x4dbdb7
cmp edi, 0x202
jne 0x4dbd77
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x4dbd9f
test byte [esi + 0x78], 8
jne 0x4dbda8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4dbda8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x4dbde4
push 0x12c
push 0xe000
mov ecx, esi
call fcn.004db301
jmp 0x4dbde4
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x4dbde4
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4dbdca
cmp dword [ebp - 8], 0
je 0x4dbde4
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.004d15d9
test eax, eax
pop ebx
je 0x4dbdff
cmp dword [eax + 0x64], 0
jne 0x4dbe45
cmp dword [ebp - 0x10], 0
je 0x4dbe27
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x4dbe40
mov ecx, edi
call fcn.004d159a
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4dbe05
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4dbe45
push dword [ebp + 8]
mov ecx, esi
call fcn.004d0047
jmp 0x4dbe47
xor eax, eax
inc eax
jmp 0x4dbe47
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x4dc207
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4dc38a
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
jne 0x4dc23e
xor eax, eax
jmp 0x4dc387
mov edi, dword [ebx]
add edi, 0x40
push edi
call fcn.004b6f64
mov esi, eax
test esi, esi
pop ecx
je 0x4dc237
push edi
push ebx
push esi
call fcn.004ba8d0
mov edi, dword [esi]
add esp, 0xc
add edi, esi
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x511c18]
je 0x4dc27c
inc eax
cmp eax, 4
jb 0x4dc26b
jmp 0x4dc2de
cmp dword [ebp + 0x10], 0
je 0x4dc298
cmp dword [eax*8 + 0x511c1c], 0x12
je 0x4dc2de
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], 0xffffff
jmp 0x4dc2de
lea ebx, [eax*8 + 0x511c1c]
push dword [ebx]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebx]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, ebx
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], ecx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x4dc263
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x4dc369
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.004b6aea
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4ddb47
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4ddb97
push dword [ebp + 8]
call fcn.004e8875
mov esi, eax
test esi, esi
je 0x4ddbbf
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x4ddbbf
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x4fae90
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004b8f56
leave
ret 0xc

Function at 0x4ddc68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 0x50], 0
push esi
push edi
je 0x4ddcae
push dword [ebp + 8]
call fcn.004e8875
mov esi, eax
test esi, esi
je 0x4ddd11
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4ddd11
mov edi, dword [ebp + 0x14]
lea eax, [edi*4 + 2]
push eax
call fcn.004d2f6a
mov esi, eax
xor eax, eax
test edi, edi
pop ecx
jbe 0x4ddcf3
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dl, byte [ecx]
and dl, 0xf
movzx dx, dl
add edx, 0x41
mov word [esi + eax*4], dx
movzx ecx, byte [ecx]
shr cl, 4
movzx cx, cl
add ecx, 0x41
mov word [esi + eax*4 + 2], cx
inc eax
cmp eax, edi
jb 0x4ddcc7
and word [esi + eax*4], 0
push esi
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.004ddbcf
push esi
mov edi, eax
call fcn.004d2f9a
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4e0044
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e005a
mov edi, dword [esi + 0xc]
jmp 0x4e0084
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x4e0084
call fcn.004d7f6c
call fcn.004e69f3
cmp dword [eax + 0x2038], 0
je 0x4e009c
push edi
mov ecx, ebx
call fcn.004df413
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dff63
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x4e00ba
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e00c6
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e4c51
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.004b6f80
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push esi
push edi
je 0x4e4cea
cmp dword [ebp + 8], eax
je 0x4e4cea
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov esi, eax
and eax, 0xc0000000
mov dword [ebp + 0x18], eax
and esi, 0x3e000000
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1054]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x824
call edi
test eax, eax
jne 0x4e4cfe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4e4cea
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.004d2f6a
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4e4cea
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
call edi
test eax, eax
jne 0x4e4d04
push ebx
call fcn.004d2f9a
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004b8f56
leave
ret 0x14
lea ebx, [ebp - 0x1054]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x18]
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x4e4d23
push ebx
call fcn.004d2f9a
pop ecx
test edi, edi
jne 0x4e4d2c
mov eax, dword [ebp + 0x10]
jmp 0x4e4d51
mov ax, word [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
dec eax
je 0x4e4d98
dec eax
je 0x4e4d8d
dec eax
je 0x4e4d82
dec eax
je 0x4e4d77
dec eax
je 0x4e4d6c
dec eax
je 0x4e4d61
dec eax
mov eax, dword [ebp + 0x10]
je 0x4e4d59
mov dword [eax], 0x1000
jmp 0x4e4da1
mov dword [eax], 0x1002
jmp 0x4e4da1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1006
jmp 0x4e4da1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1001
jmp 0x4e4da1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x100b
jmp 0x4e4da1
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x4e4da1
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x4e4da1
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
jmp 0x4e4cec

Function at 0x4e5215
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4e523e
call fcn.004e69f3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x4e5263
push eax
push dword [esi + 4]
call fcn.004e51a2
jmp 0x4e526f
push esi
push eax
mov ecx, 0x546b94
call fcn.004e5052
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4e5546
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x4e555a
cmp dword [esi + 0x14], 0
jne 0x4e5564
push 6
push dword [esi + 0x1c]
call fcn.004e51a2
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x4e559d
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4e558c
push eax
push dword [esi + 0x1c]
call fcn.004e51a2
cmp dword [ebp - 4], edi
je 0x4e5606
push 0
push dword [esi + 0x1c]
call fcn.004e51a2
jmp 0x4e5606
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetWriteFile]
push ebx
mov ebx, dword [ebp + 0xc]
lea edx, [eax + ebx]
cmp edx, dword [esi + 0x28]
jb 0x4e55ce
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x4e55ca
push eax
push dword [esi + 0x1c]
call fcn.004e51a2
and dword [esi + 0x2c], 0
cmp ebx, dword [esi + 0x28]
jb 0x4e55ef
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x4e5605
push eax
push dword [esi + 0x1c]
call fcn.004e51a2
jmp 0x4e5605
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x2c]
push ebx
push dword [ebp + 8]
push eax
call fcn.004ba8d0
add esp, 0xc
add dword [esi + 0x2c], ebx
pop ebx
pop edi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
jne 0x4e5685
push 0x1000
call fcn.004e4dfb
test eax, eax
je 0x4e56f1
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4e567c
push ebx
push dword [esi + 0x1c]
call fcn.004e51a2
mov eax, dword [ebp - 4]
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
push edi
mov edi, dword [ebp + 8]
jmp 0x4e56e5
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi + 0x40]
jb 0x4e56c9
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4e56b9
push ebx
push dword [esi + 0x1c]
call fcn.004e51a2
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x4e56f7
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], ebx
mov cx, word [eax]
cmp cx, 0xd
je 0x4e56d7
mov word [edi], cx
inc edi
inc edi
inc dword [esi + 0x38]
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0xa
je 0x4e56ea
dec dword [ebp + 0xc]
jne 0x4e5691
mov eax, dword [ebp + 8]
mov word [edi], bx
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, edi
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
jmp 0x4e56ed
Function at 0x4e58ed
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4f48f6
call fcn.004ba84c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004d5783
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
mov dword [esi + 0x1c], eax
call fcn.004ad22f
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.004ad30b
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.004ad30b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4e75de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004e69f3
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4e761e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x4e761e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x4e7622
xor eax, eax
jmp 0x4e769f
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.004d2f6a
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x4e7650
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4e763f
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004e721c
push edi
mov ebx, eax
call fcn.004d2f9a
test ebx, ebx
pop ecx
je 0x4e7692
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004e7464
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004e74eb
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4e76e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x4e773d
push 0x512198
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004b8f56
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x4e770c
jmp 0x4e7730