joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474194
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 0x47433f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x474320
mov dl, 1
mov eax, dword [0x41b6dc]
call fcn.004035ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404538
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47430f
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.00461f70
test al, al
je 0x474302
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, 0x474350
lea eax, [ebp - 0x254]
call fcn.0040a1ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x474302
xor eax, eax
push ebp
push 0x4742fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x474388
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4742e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047a8
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 0x4742e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474302
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x474205
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004206ec
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 0x474346
lea eax, [ebp - 0x260]
call fcn.00404538
ret

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

Disassembly:
push ecx
mov eax, dword [0x55abc8]
cmp byte [eax + 0xa5], 0
jne 0x474ce5
cmp dword [0x55abe0], 0
jne 0x474ca6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x474c30
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x55abe0], eax
cmp dword [0x55abdc], 0
jne 0x474cc1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x55abdc], eax
cmp dword [0x55abe4], 0
jne 0x474ce5
push esp
push 0
push 0
push 0x474bd4
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x55abe4], eax
pop edx
ret
Function at 0x474ddc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x474df3
add esp, 0xfffffff0
call fcn.00403988
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426e7c
mov eax, dword [0x5591f4]
cmp word [eax + 2], 0
jne 0x474e1b
mov eax, dword [0x5591f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004764b4
mov eax, dword [0x559314]
cmp word [eax + 2], 0
jne 0x474e35
mov eax, dword [0x559314]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004766ac
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.004035ec
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.004035ec
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], 0xff000018
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 [0x429334]
call fcn.004308f8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x474fbc
mov eax, dword [0x55908c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430cc8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x476c5c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x55908c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
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.0040db30
test eax, eax
je 0x474f2a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409bcc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040db58
test eax, eax
je 0x474f3e
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, pe_nt_image_headers32
call fcn.004047a8
mov eax, dword [0x558ea4]
cmp byte [eax], 0
jne 0x474f72
mov eax, ebx
call fcn.004750e4
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.00476e38
mov eax, ebx
call fcn.004777fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474fb2
call fcn.004039e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475364
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x55abc8]
cmp dword [eax + 0x30], 0
je 0x47540e
cmp dword [ebx + 0x94], 0
jne 0x475408
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4752f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475408
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 0x4753ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475408
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.0041da60
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4753dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x475f70
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 0x475fa5
push pe_nt_image_headers32
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.00404628
jmp 0x475fb2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040458c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x477014
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477055
mov eax, esi
call fcn.0045d63c
test al, al
je 0x477055
mov eax, dword [ebx + 0x84]
call fcn.0045d338
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477055
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045d338
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x47803c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a648]
call fcn.00405218
xor eax, eax
push ebp
push 0x478180
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55521c], 0
jne 0x47808f
mov ecx, dword [0x558ec4]
mov dl, 1
mov eax, dword [0x408208]
call fcn.0040cddc
call fcn.00403eb4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040300c
mov eax, ebx
call fcn.00404e40
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x478190
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040650c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e50
test eax, eax
jle 0x478127
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x478120
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047c0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004047a8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409140
test eax, eax
jne 0x478120
mov ebx, 0x15
jmp 0x47812c
mov ebx, 0x10
jmp 0x47812c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x55521c]
call fcn.00477f94
mov eax, dword [ebp - 8]
call fcn.00477f94
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478187
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040455c
lea eax, [ebp - 0x10]
mov edx, dword [0x41a648]
call fcn.004052e8
ret
Function at 0x4cd07c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4cd099
add esp, 0xfffffff0
call fcn.00403988
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4cd235
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004c3888
test al, al
jne 0x4cd0d6
mov ecx, 0x4cd268
mov dl, 1
mov eax, dword [0x4b7f84]
call fcn.0040cd20
call fcn.00403eb4
xor eax, eax
push ebp
push 0x4cd102
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004c2334
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004c2220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cd122
mov eax, dword [ebp - 0x10]
mov edx, 0x4cd2a4
call fcn.00404f68
je 0x4cd13f
mov eax, esi
mov edx, 0x4cd2a4
call fcn.00404f68
jne 0x4cd163
mov eax, edi
mov edx, 0x4cd2b4
call fcn.00404f68
je 0x4cd163
mov ecx, 0x4cd28c
mov dl, 1
mov eax, dword [0x4b822c]
call fcn.0040cd20
call fcn.00403eb4
mov eax, edi
xor edx, edx
call fcn.00404f68
jne 0x4cd190
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404f68
je 0x4cd190
mov ecx, 0x4cd28c
mov dl, 1
mov eax, dword [0x4b822c]
call fcn.0040cd20
call fcn.00403eb4
mov eax, dword [ebp - 0x10]
mov edx, 0x4cd2f4
call fcn.00404f68
jne 0x4cd1c3
mov eax, edi
mov edx, 0x4cd300
call fcn.00404f68
je 0x4cd1c3
mov ecx, 0x4cd28c
mov dl, 1
mov eax, dword [0x4b822c]
call fcn.0040cd20
call fcn.00403eb4
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004cb16c
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404c80
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404c80
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404c80
lea eax, [ebx + 8]
call fcn.00404c44
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x4cd34c]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd23c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c5c
ret
Function at 0x4ceb30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4ceb4d
add esp, 0xfffffff0
call fcn.00403988
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4cece8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004c3888
test al, al
jne 0x4ceb8a
mov ecx, 0x4ced1c
mov dl, 1
mov eax, dword [0x4b7f84]
call fcn.0040cd20
call fcn.00403eb4
xor eax, eax
push ebp
push 0x4cebb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004c2334
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004c2220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cebd6
mov eax, edi
xor edx, edx
call fcn.00404f68
jne 0x4cec03
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404f68
je 0x4cec03
mov ecx, 0x4ced40
mov dl, 1
mov eax, dword [0x4b822c]
call fcn.0040cd20
call fcn.00403eb4
mov eax, dword [ebp - 0x10]
mov edx, 0x4ced58
call fcn.00404f68
jne 0x4cec36
mov eax, edi
mov edx, 0x4ced64
call fcn.00404f68
je 0x4cec36
mov ecx, 0x4ced40
mov dl, 1
mov eax, dword [0x4b822c]
call fcn.0040cd20
call fcn.00403eb4
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004cb16c
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404c80
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404c80
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404c80
lea eax, [ebx + 8]
call fcn.00404c44
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.004035ec
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.004035ec
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.004035ec
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x4cedb0]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4bafa8]
call fcn.004ca3c4
mov dword [ebx + 0x3c], eax
mov ax, word [0x4cedb4]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cecef
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404c5c
ret
Function at 0x4d1744
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4d1766
add esp, 0xfffffff0
call fcn.00403988
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4d18d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004c3888
test al, al
jne 0x4d17a3
mov ecx, 0x4d1904
mov dl, 1
mov eax, dword [0x4b7f84]
call fcn.0040cd20
call fcn.00403eb4
push dword [0x555b54]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x555b54]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f20
mov eax, dword [ebp - 0xc]
call fcn.004c4360
test al, al
jne 0x4d1875
push dword [0x555b50]
push dword [ebp + 8]
push dword [0x555b50]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404f20
mov eax, dword [ebp - 0x14]
call fcn.004c4360
test al, al
jne 0x4d1875
push dword [0x555b54]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x555b54]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404f20
mov eax, dword [ebp - 0x18]
call fcn.004c4478
test al, al
jne 0x4d1875
push dword [0x555b50]
push edi
push dword [0x555b50]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404f20
mov eax, dword [ebp - 0x20]
call fcn.004c4478
test al, al
jne 0x4d1875
mov ecx, 0x4d1904
mov dl, 1
mov eax, dword [0x4b7f84]
call fcn.0040cd20
call fcn.00403eb4
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004cb16c
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404c80
lea eax, [ebx + 8]
call fcn.00404c44
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00404c80
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00404c80
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4d1920]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d18d8
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404c5c
ret

Function at 0x5063d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50644f
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x506436
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004047a8
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408f9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506456
lea eax, [ebp - 0x104]
call fcn.00404538
ret
Function at 0x513664
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 0x51377a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x513740
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040300c
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.004049f8
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 0x513709
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0xb
lea eax, [ebp - 0x44]
push eax
push 0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x558fa0]
call fcn.00406ab0
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x512bf4]
call fcn.005132c8
call fcn.00403eb4
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x64], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x58]
push eax
mov edx, dword [ebp - 0x2c]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0x28]
mov eax, esi
call fcn.00404a58
lea eax, [ebx + 0x5c]
push eax
mov edx, dword [ebp - 0x10]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404a58
jmp 0x51375a
xor eax, eax
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x58]
call fcn.00404538
lea eax, [ebx + 0x5c]
call fcn.00404538
xor eax, eax
mov dword [ebx + 0x64], eax
lea eax, [ebx + 0x3c]
mov edx, esi
call fcn.0040458c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513781
lea eax, [ebp - 0x48]
call fcn.00404538
ret
Function at 0x513978
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 0x513aa3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39], 0
jne 0x513ada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.004047f8
test eax, eax
jle 0x5139ad
mov ebx, 3
jmp 0x5139af
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x5139bf
call fcn.0040cd00
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.004049f8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.004049f8
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004049f8
push eax
call sub.wininet.dll_InternetOpenA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x70], esi
test esi, esi
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0051346c
xor eax, eax
push ebp
push 0x513a7e
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 + 0x54]
call fcn.004049f8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
call fcn.004049f8
push eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x60]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.004049f8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
push eax
call sub.wininet.dll_InternetConnectA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], ebx
test ebx, ebx
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0051346c
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 0x513ada
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
test eax, eax
je 0x513ab3
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x513acb
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x527b5c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 4], 6
jae 0x527b7a
xor eax, eax
jmp 0x527b7c
mov al, 1
add esp, 0x94
ret
Function at 0x52ab3c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x52ab6a
mov eax, ebx
call fcn.0052b5f0
cmp dword [ebx + 0x40], 0
je 0x52ab63
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x52abdb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x52abcd
cmp dword [ebx + 8], 0
je 0x52ab8c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x52ab9e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x52abcd
cmp dword [ebx + 8], 0
je 0x52ab7f
cmp eax, 3
je 0x52abb1
dec eax
jne 0x52ab7f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x52ab7f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x52ab7f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x52abf9
cmp dword [ebx + 0x14], 0xcc
je 0x52abf9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0052ac04
pop ebx
ret

Function at 0x53b39c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x556c00]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x556c00]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x556c00]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x556c00]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x556784]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x53b3c7
add esp, 0xc
pop edi
pop esi
pop ebx
ret