joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe48c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a360
xor eax, eax
push ebp
push 0x4fe5e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x230]
call fcn.0040a2ec
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
call fcn.0040a3fc
mov eax, dword [ebp - 0x230]
call fcn.004fb8b0
test al, al
je 0x4fe5ae
test bl, bl
je 0x4fe526
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push 7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd8]
call fcn.0040a3fc
jmp 0x4fe543
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd8]
call fcn.0040a3fc
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0x200
lea eax, [ebp - 0x22c]
push eax
push ebx
call sub.user32.dll_GetClassNameW
mov eax, 0x4fe5fc
call fcn.00407270
push eax
lea eax, [ebp - 0x22c]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
jne 0x4fe582
mov esi, ebx
mov eax, dword [0x557774]
mov eax, dword [eax]
call fcn.004cbf80
call sub.kernel32.dll_GetTickCount_1
test esi, esi
jne 0x4fe5a0
sub eax, edi
cmp eax, 0x1b58
jbe 0x4fe54c
test esi, esi
je 0x4fe5ae
mov eax, dword [ebp - 0x2c]
push eax
push esi
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe5e9
lea eax, [ebp - 0x230]
call fcn.0040a2ec
lea eax, [ebp - 0x28]
mov edx, dword [0x4012a8]
mov ecx, 2
call fcn.00408000
lea eax, [ebp - 4]
call fcn.0040a2ec
ret

Function at 0x4ff654
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004071cc
xor eax, eax
push ebp
push 0x4ff6a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407270
push eax
push 0x4ff6b0
push ebx
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff6ab
lea eax, [ebp - 4]
call fcn.004071d4
ret
Function at 0x4ffffc
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
mov eax, dword [ebp - 8]
call fcn.004071cc
xor eax, eax
push ebp
push 0x50008a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x500063
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407270
push eax
mov eax, dword [ebp - 4]
call fcn.00407270
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50006f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500091
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071dc
ret

Function at 0x500678
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404cac
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x104
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], 1
mov eax, 0x104
call fcn.004165dc
mov ebx, eax
xor eax, eax
push ebp
push 0x5006ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x208
call fcn.00404cac
push 0xffffffffffffffff
push esi
push ebx
mov eax, dword [ebp - 0x38]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x5006e9
mov dword [ebp - 4], ebx
jmp 0x5006f1
mov eax, 0x500710
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500706
ret
Function at 0x500714
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
xor eax, eax
push ebp
push 0x500833
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov eax, dword [ebp - 0xc]
call fcn.004042ec
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov esi, eax
test esi, esi
je 0x500792
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 4]
call fcn.00407390
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004078a4
jne 0x500792
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.00407390
mov eax, ebx
call fcn.00404308
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x500810
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.wininet.dll_FindNextUrlCacheEntryW
call sub.kernel32.dll_GetLastError_1
mov edi, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x500808
mov eax, dword [ebp - 0xc]
call fcn.004042ec
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
call sub.wininet.dll_FindNextUrlCacheEntryW
test eax, eax
je 0x500801
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 4]
call fcn.00407390
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004078a4
jne 0x500801
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.00407390
jmp 0x500810
mov eax, ebx
call fcn.00404308
cmp edi, 0x103
jne 0x5007a1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50083a
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004071dc
lea eax, [ebp - 4]
call fcn.004071d4
ret
Function at 0x500bec
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x500d66
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x500c43
mov eax, dword [ebp - 0x10]
mov edx, 0x500d84
call fcn.004071e4
jmp 0x500d45
xor eax, eax
push ebp
push 0x500d3e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x500c79
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00406ce4
push 0x104
mov eax, dword [ebp - 4]
call fcn.00406bb4
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 4]
call fcn.00406bb4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
je 0x500cea
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004073e8
mov eax, dword [esi]
call fcn.00407270
call fcn.00416128
mov edx, eax
mov eax, esi
call fcn.00407548
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1b0], eax
push dword [ebp - 0x1b0]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1b8]
mov ecx, 0
call fcn.00406980
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 8]
call fcn.004073e8
mov byte [ebp - 0x11], 1
jmp 0x500d2b
call sub.wsock32.dll_WSAGetLastError
sub eax, 0x2734
je 0x500d1e
sub eax, 0xe
je 0x500d0f
sub eax, 0x2b
jne 0x500d2b
mov eax, dword [ebp - 0x10]
mov edx, 0x500dc8
call fcn.004071e4
jmp 0x500d2b
mov eax, dword [ebp - 0x10]
mov edx, 0x500df8
call fcn.004071e4
jmp 0x500d2b
mov eax, dword [ebp - 0x10]
mov edx, 0x500e1c
call fcn.004071e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500d45
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500d6d
lea eax, [ebp - 0x1b8]
call fcn.004066ac
lea eax, [ebp - 4]
call fcn.004066ac
ret

Function at 0x500e3c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x500ec1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407238
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407238
push 0x500edc
push dword [ebp - 4]
push 0x500f0c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407784
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407270
push eax
push 0x500f1c
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500ec8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004071dc
ret
Function at 0x502b10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x502b50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 7
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x502b5a
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x503f44
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
mov eax, dword [ebp - 8]
call fcn.004071cc
mov eax, dword [ebp - 0xc]
call fcn.004071cc
xor eax, eax
push ebp
push 0x504073
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00407270
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.00407270
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.00482638
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00407270
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x504058
xor eax, eax
push ebp
push 0x504051
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x504031
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x504035
xor eax, eax
jmp 0x504037
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504058
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50407a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004071dc
ret
Function at 0x504084
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
mov eax, dword [ebp - 8]
call fcn.004071cc
mov eax, dword [ebp - 0xc]
call fcn.004071cc
mov eax, dword [ebp + 0xc]
call fcn.004071cc
xor eax, eax
push ebp
push 0x5041ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00407270
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x504204
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00407270
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5041cb
xor edx, edx
push ebp
push 0x5041c4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00407270
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407270
push eax
movzx eax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectW
test eax, eax
je 0x5041ad
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5041a4
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x5041a8
xor eax, eax
jmp 0x5041aa
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5041cb
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5041f5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004071dc
lea eax, [ebp + 0xc]
call fcn.004071d4
ret
Function at 0x504214
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
mov eax, dword [ebp - 8]
call fcn.004071cc
xor eax, eax
push ebp
push 0x50432e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x14
mov dword [ebp - 0x24], 0x14
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x3c], 4
mov eax, dword [ebp - 8]
call fcn.00407270
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 2
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00407270
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x504313
xor eax, eax
push ebp
push 0x50430c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x4b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x5042ec
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x5042f0
xor eax, eax
jmp 0x5042f2
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504313
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504335
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071dc
ret

Function at 0x504340
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x504408
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x50440c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x504408
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5043ff
xor eax, eax
push ebp
push 0x5043f8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5043ff
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x505d8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0x105
mov eax, dword [ebp - 0x24]
call fcn.004042ec
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x505be1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
je 0x505bcb
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00407390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505be8
mov eax, dword [ebp - 0x14]
call fcn.00404308
ret

Function at 0x50b2d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov bl, 2
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x14
call fcn.00404cac
push 0x14
lea eax, [ebp - 0x14]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
je 0x50b30f
cmp word [ebp - 0x14], 0x31
jne 0x50b30d
mov bl, 1
jmp 0x50b30f
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50d8b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.004a57dc
test al, al
je 0x50d96f
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x50d94d
cmp word [esi + 0x67a], 0
je 0x50d901
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x67c]
call dword [esi + 0x678]
movzx eax, byte [esi + 0x670]
or al, byte [ebp - 9]
jne 0x50d924
cmp dword [ebp - 4], 0
jbe 0x50d920
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x50d924
xor ebx, ebx
jmp 0x50d926
mov bl, 1
test bl, bl
jne 0x50d96f
mov eax, dword [0x557774]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x50d96f
mov eax, dword [0x557774]
mov eax, dword [eax]
call fcn.004cbf80
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x50d96f
cmp byte [esi + 0x610], 0
jne 0x50d96f
mov edx, 0xfffffdf3
mov eax, esi
call fcn.004d4928
cmp eax, 4
jne 0x50d8de
mov byte [esi + 0x670], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5176c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
xor eax, eax
push ebp
push 0x517721
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00407270
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
je 0x517709
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 5
jne 0x51770b
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517728
lea eax, [ebp - 4]
call fcn.004071d4
ret

Function at 0x517730
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004071cc
xor eax, eax
push ebp
push 0x517794
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call fcn.00407270
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov edx, ebx
lea eax, [ebp - 0x28]
call fcn.0041659c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51779b
lea eax, [ebp - 4]
call fcn.004071d4
ret

Function at 0x51a30c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004071cc
xor eax, eax
push ebp
push 0x51a408
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xc]
call fcn.0051717c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051298c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0051bbfc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0051291c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0051bc78
lea eax, [ebx + 0x50]
call fcn.004066ac
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a40f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004071dc
ret
Function at 0x51a418
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004071cc
xor eax, eax
push ebp
push 0x51a524
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xa]
call fcn.0051717c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x51a4e7
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051298c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0051bbfc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0051291c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0051bc78
jmp 0x51a4f9
xor edx, edx
mov eax, ebx
call fcn.0051bbfc
xor edx, edx
mov eax, ebx
call fcn.0051bc78
lea eax, [ebx + 0x50]
call fcn.004066ac
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a52b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004071dc
ret