joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cc91
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x487490]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x45cce0
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x45cce0
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x45ccec
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004457b0
leave
ret 8

Function at 0x45d293
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x487490]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x45d2e0
push dword [ebp + 8]
call fcn.004608cd
mov esi, eax
test esi, esi
je 0x45d308
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_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x45d308
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x468774
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004457b0
leave
ret 0xc
Function at 0x45dbec
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov edx, dword [ebp + 0xc]
mov eax, dword [0x487490]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
mov dword [ebp - 4], eax
push edi
je 0x45dd0d
cmp dword [ebp + 8], ecx
je 0x45dd0d
mov eax, dword [ebp + 0x18]
mov esi, eax
mov edi, eax
and esi, 0x2e000000
and edi, 0x40000000
test eax, 0x90000000
mov dword [ebp - 0x830], 0x824
mov dword [ebp - 0x82c], ecx
mov dword [ebp + 0x18], ecx
je 0x45dc5e
cmp dword [edx + 0x30], ecx
je 0x45dc5e
test eax, 0x2000000
je 0x45dc58
mov dword [ebp + 0x18], 1
jmp 0x45dc5e
or edi, 0x80000000
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push esi
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x45dcc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45dd0d
push dword [ebp - 0x830]
call fcn.004554b0
test eax, eax
pop ecx
mov dword [ebp - 0x834], eax
je 0x45dd0d
push esi
lea ecx, [ebp - 0x830]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x82c], 1
call ebx
test eax, eax
jne 0x45dccd
push dword [ebp - 0x834]
jmp 0x45dd07
lea ebx, [ebp - 0x828]
jmp 0x45dcd3
mov ebx, dword [ebp - 0x834]
mov esi, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp + 0x18], edi
mov dword [ebp + 8], eax
je 0x45dd2a
push 0x2100000
push edi
push edi
push dword [esi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x45dd1e
cmp dword [ebp - 0x82c], edi
je 0x45dd0d
push ebx
call fcn.004554e0
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004457b0
leave
ret 0x14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x82c], edi
je 0x45dd39
push ebx
call fcn.004554e0
pop ecx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x45dd4b
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x1000
jmp 0x45dd0f
mov cx, word [esi + 0x18]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov esi, dword [esi + 0xc]
dec esi
mov ecx, dword [ebp + 0x10]
je 0x45dda9
dec esi
je 0x45dd9e
dec esi
je 0x45dd93
dec esi
je 0x45dd88
dec esi
je 0x45dd80
dec esi
je 0x45dd78
dec esi
jne 0x45dd43
mov dword [ecx], 0x1002
jmp 0x45dd0f
mov dword [ecx], 0x1006
jmp 0x45dd0f
mov dword [ecx], 0x1001
jmp 0x45dd0f
mov dword [ecx], 0x100b
jmp 0x45dd0f
mov dword [ecx], 3
jmp 0x45dd0f
mov dword [ecx], 2
jmp 0x45dd0f
mov dword [ecx], 1
jmp 0x45dd0f
Function at 0x45e2d2
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], 0x46e7bc
jne 0x45e2fb
call fcn.00460e66
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_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x45e31e
push eax
push dword [esi + 4]
call fcn.0045e25f
push esi
push eax
mov ecx, 0x4a8680
call fcn.0045e0eb
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x45eb49
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4649f3
call fcn.00446bf0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0045b539
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [esi], 0x46e7d4
mov dword [esi + 0x1c], eax
call fcn.004014e0
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.00404b70
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00404b70
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 0x45ebc9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x464a42
call fcn.00446bf0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0045b539
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [esi], 0x46e7d4
call fcn.004014e0
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
mov ecx, 0x4a8680
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0045e0eb
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00404b70
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.0043bc81
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00404940
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004011e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
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 0x10
Function at 0x45edb4
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x464a71
call fcn.00446bf0
push ecx
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.0045ed76
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], 0x46e84c
call fcn.004014e0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x45ee1b
push eax
push dword [esi + 8]
call fcn.0045e25f
push dword [esi + 0xc]
mov ecx, 0x4a8680
push eax
call fcn.0045e0eb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x45ee3b
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x464a71
call fcn.00446bf0
push ecx
push esi
push edi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.0045ed76
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], 0x46e84c
call fcn.004014e0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x45eea3
push eax
push dword [esi + 8]
call fcn.0045e25f
push dword [esi + 0xc]
mov ecx, 0x4a8680
push eax
call fcn.0045e0eb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x1c

Function at 0x45fe9d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x487490]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x45fefb
push 0x46dd34
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00447dea
add esp, 0x10
cmp eax, 0xffffffff
je 0x45ff0f
cmp eax, esi
jae 0x45ff0f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x45ff11
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x45fec6
jmp 0x45ff12
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004457b0
leave
ret
Function at 0x45ff32
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x487490]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x46dda8
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x46dd8c
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x45ffd4
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push 0x46dd70
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4600d6
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x460084
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x46dd48
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4600d7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460079
cmp dword [ebp - 0x24], 1
jne 0x460079
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x46dd44
push eax
call fcn.0044510e
add esp, 0xc
cmp eax, 1
jne 0x460079
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4600d7
push 0x46dd38
call edi
cmp eax, ebx
je 0x4600d7
lea ecx, [ebp - 0x18]
push ecx
push 0x45ff1c
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4600d7
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4600fd
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0045fe9d
cmp eax, ebx
pop ecx
pop ecx
jne 0x4600ff
inc edi
cmp edi, esi
jl 0x4600e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004457b0
leave
ret 4
Function at 0x460584
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4647f0
call fcn.00446bf0
sub esp, 0x11c
mov eax, dword [0x487490]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x46067d
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x460651
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00404420
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00460584
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011e0
test bl, bl
jne 0x460651
or dword [ebp - 4], 0xffffffff
jmp 0x4605c2
cmp esi, 0x103
je 0x460661
cmp esi, 0x3f2
jne 0x460671
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004457b0
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x461208
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x46123d
cmp edi, dword [esi + 0xc]
jge 0x46123d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46123d
cmp edi, dword [eax + 8]
jge 0x46123d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x46123f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x461343
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x461377
jmp fcn.00452c2e
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4613e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4614e1
cmp eax, dword [edi + 0xc]
jge 0x4614e1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x461439
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4614ca
cmp dword [ebp + 0xc], ebx
je 0x4614ca
jmp 0x461463
push 0x10
call fcn.004610d4
cmp eax, ebx
je 0x46144f
mov ecx, eax
call fcn.0046133a
mov esi, eax
jmp 0x461451
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x46147a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x46148a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x46149c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00452c2e
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00444850
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4614dc
cmp ecx, dword [esi + 8]
jge 0x4614dc
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4614e2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x2e6338c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x2eb502c], 0x8088405
inc edx
mov dword [0x2eb502c], edx
mul edx
mov eax, edx
ret

Function at 0x2e68808
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x2e6a484
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x2e6a4a7
jne 0x2e6a4ae
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x2e6a4bd
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x2e6a4c5
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x2e6fc70
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x2e6fc78
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x2e6f21d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x2eae808]
xor edx, edx
call fcn.02e647ac
jne 0x2e6fd62
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x14]
mov eax, 0x2e6f234
call fcn.02e9ad18
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.02e64674
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x2eb4974]
push dword [eax]
mov eax, dword [0x2eb4b24]
push dword [eax]
push 0x2e6f240
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.02e64214
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.02e64674
mov edx, dword [ebp - 0x18]
mov eax, 0x80000001
pop ecx
call fcn.02e99d4c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.02e64140
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.02e9d4d4
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.02e64674
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx]
mov dx, 0x5c
call fcn.02ea0e74
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.02e64848
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x2eae7fc]
call fcn.02e9ad18
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.02e64674
mov ecx, dword [ebp - 0x24]
mov eax, ebx
pop edx
call fcn.02e64700
jmp 0x2e6fdb3
mov eax, ebx
mov edx, dword [0x2eae808]
call fcn.02e64540
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx]
mov dx, 0x5c
call fcn.02ea0e74
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.02e64848
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [0x2eae7fc]
call fcn.02e9ad18
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.02e64674
mov ecx, dword [ebp - 0x30]
mov eax, ebx
pop edx
call fcn.02e64700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2e6f224
lea eax, [ebp - 0x34]
call fcn.02e63f4c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.02e6451c
lea eax, [ebp - 0x28]
call fcn.02e63f4c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.02e6451c
lea eax, [ebp - 0x1c]
call fcn.02e63f4c
lea eax, [ebp - 0x18]
call fcn.02e64504
lea eax, [ebp - 0x14]
call fcn.02e63f4c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.02e6451c
lea eax, [ebp - 8]
mov edx, 2
call fcn.02e63f70
ret
Function at 0x2e7002c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.02e64308
xor eax, eax
push ebp
push 0x2e6f637
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.02e64154
test eax, eax
je 0x2e70213
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.02e64154
test eax, eax
je 0x2e70213
mov eax, dword [ebp - 8]
call fcn.02e64154
cmp eax, 0x100
jle 0x2e700be
push pe_nt_image_headers32
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x2e6f418]
call fcn.02e65dc0
add esp, 4
lea eax, [ebp - 8]
call fcn.02e64324
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, pe_nt_image_headers32
call fcn.02e67270
jmp 0x2e700f9
mov eax, dword [ebp - 8]
call fcn.02e64154
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x2e6f418]
call fcn.02e65dc0
add esp, 4
mov eax, dword [ebp - 8]
call fcn.02e64154
push eax
lea eax, [ebp - 8]
call fcn.02e64324
mov edx, eax
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.02e67270
xor edi, edi
lea eax, [ebp - 0x410]
mov dword [eax], edi
inc edi
add eax, 4
cmp edi, 0x100
jne 0x2e70101
xor ebx, ebx
xor edi, edi
lea esi, [ebp - 0x410]
add ebx, dword [esi]
mov eax, dword [ebp - 8]
call fcn.02e64154
push eax
mov eax, edi
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
add ebx, eax
and ebx, 0x800000ff
jns 0x2e70145
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esi]
mov edx, dword [ebp + ebx*4 - 0x410]
mov dword [esi], edx
and eax, 0xff
mov dword [ebp + ebx*4 - 0x410], eax
inc edi
add esi, 4
cmp edi, 0x100
jne 0x2e70119
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.02e64154
dec eax
test eax, eax
jl 0x2e70213
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
inc ebx
and ebx, 0x800000ff
jns 0x2e70196
dec ebx
or ebx, 0xffffff00
inc ebx
add esi, dword [ebp + ebx*4 - 0x410]
and esi, 0x800000ff
jns 0x2e701ad
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + ebx*4 - 0x410]
mov edx, dword [ebp + esi*4 - 0x410]
mov dword [ebp + ebx*4 - 0x410], edx
and eax, 0xff
mov dword [ebp + esi*4 - 0x410], eax
mov eax, dword [ebp - 4]
call fcn.02e64324
add eax, edi
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov al, byte [eax + edi]
mov edx, dword [ebp + ebx*4 - 0x410]
add edx, dword [ebp + esi*4 - 0x410]
and edx, 0x800000ff
jns 0x2e701ff
dec edx
or edx, 0xffffff00
inc edx
xor al, byte [ebp + edx*4 - 0x410]
pop edx
mov byte [edx], al
inc edi
dec dword [ebp - 0x10]
jne 0x2e70185
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2e6f63e
lea eax, [ebp - 0xc]
mov edx, dword [0x2e6f418]
call fcn.02e65ec0
lea eax, [ebp - 8]
call fcn.02e63f4c
ret