joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5149d4
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x514bff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405684
mov eax, 0x104
call fcn.00402fc8
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x104
call fcn.00403cb4
mov eax, 0x104
call fcn.00402fc8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x104
call fcn.00403cb4
xor edx, edx
push ebp
push 0x514b9d
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x104
call sub.kernel32.dll_GetTempPathA
call fcn.00497a24
xor esi, esi
add al, 0xf8
sub al, 3
jb 0x514ac5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0x514c10
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
movzx eax, di
push eax
call sub.kernel32.dll_SetErrorMode
push 0x514c20
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
test edi, edi
je 0x514ac3
push 0x104
mov eax, dword [ebp - 0xc]
push eax
push ebx
call edi
mov esi, eax
cmp esi, 0x104
jle 0x514ac5
lea edx, [esi + 2]
lea eax, [ebp - 0xc]
call fcn.00402ffc
lea edx, [esi + 2]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
call fcn.00403cb4
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call edi
mov esi, eax
jmp 0x514ac5
xor esi, esi
test esi, esi
jne 0x514b27
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040588c
mov eax, dword [ebp - 0x10]
call fcn.0040c820
test al, al
jne 0x514b18
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, 0x514c38
call fcn.00512810
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405938
cmp dword [ebp - 4], 0
je 0x514b27
push 0x104
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b74
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
jmp 0x514b27
mov ecx, 0x104
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0040ce38
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040588c
mov eax, ebx
call fcn.00402fe4
mov eax, dword [ebp - 0xc]
call fcn.00402fe4
mov eax, dword [ebp - 4]
test eax, eax
je 0x514b4d
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x514b64
lea eax, [ebp - 4]
mov edx, 0x514c68
call fcn.0040597c
mov eax, dword [ebp - 4]
call fcn.0040c820
test al, al
jne 0x514b88
mov ecx, 0x514c74
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
jmp 0x514b93
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004056d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x514bd1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514c06
lea eax, [ebp - 0x18]
call fcn.00405684
lea eax, [ebp - 0x14]
call fcn.00405ebc
lea eax, [ebp - 0x10]
call fcn.00405684
lea eax, [ebp - 4]
call fcn.00405684
ret
Function at 0x514cdc
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x514efe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405ebc
mov eax, 0x208
call fcn.00402fc8
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x208
call fcn.00403cb4
mov eax, 0x208
call fcn.00402fc8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x208
call fcn.00403cb4
xor edx, edx
push ebp
push 0x514ea4
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x104
call sub.kernel32.dll_GetTempPathW
call fcn.00497a24
xor esi, esi
add al, 0xf8
sub al, 3
jb 0x514dd4
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0x514f0c
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
movzx eax, di
push eax
call sub.kernel32.dll_SetErrorMode
push 0x514f1c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
test edi, edi
je 0x514dd2
push 0x104
mov eax, dword [ebp - 0xc]
push eax
push ebx
call edi
mov esi, eax
cmp esi, 0x104
jle 0x514dd4
lea eax, [esi + 2]
mov edx, eax
add edx, edx
lea eax, [ebp - 0xc]
call fcn.00402ffc
lea eax, [esi + 2]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
call fcn.00403cb4
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call edi
mov esi, eax
jmp 0x514dd4
xor esi, esi
test esi, esi
jne 0x514e31
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00406028
mov eax, dword [ebp - 0x10]
call fcn.0047ff08
test al, al
jne 0x514e22
lea ecx, [ebp - 4]
xor edx, edx
mov eax, 0x514f34
call fcn.00512810
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004061e8
je 0x514e31
push 0x104
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
jmp 0x514e31
mov ecx, 0x104
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00496dc4
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00406028
mov eax, ebx
call fcn.00402fe4
mov eax, dword [ebp - 0xc]
call fcn.00402fe4
mov eax, dword [ebp - 4]
call fcn.004060c4
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x514e6b
lea eax, [ebp - 4]
mov edx, 0x514f60
call fcn.004060d0
mov eax, dword [ebp - 4]
call fcn.0047ff08
test al, al
jne 0x514e8f
mov ecx, 0x514f6c
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
jmp 0x514e9a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x514ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514f05
lea eax, [ebp - 0x14]
call fcn.00405684
lea eax, [ebp - 0x10]
call fcn.00405ebc
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x51530c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x515386
call sub.user32.dll_EmptyClipboard
test eax, eax
jne 0x515330
call sub.user32.dll_CloseClipboard
jmp 0x515386
mov eax, esi
call fcn.004060b4
call fcn.00496e20
inc eax
add eax, eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov edi, eax
push edi
call sub.kernel32.dll_GlobalLock
mov ebp, eax
mov eax, esi
call fcn.004060b4
mov edx, eax
mov eax, ebp
call fcn.00496e14
push edi
call sub.kernel32.dll_GlobalUnlock
push edi
push 0xd
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x51537d
call sub.user32.dll_CloseClipboard
jmp 0x515386
call sub.user32.dll_CloseClipboard
test eax, eax
mov bl, 1
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x515464
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5154db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.005178b0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004061e8
je 0x5154ae
push 1
push 0
mov eax, ebx
call fcn.004060b4
push eax
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x5154c5
push 1
push 0
push 0
mov eax, ebx
call fcn.004060b4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5154e2
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x5155cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5155d4
push ecx
push ebx
xor eax, eax
push ebp
push 0x5158d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x67d324], 0
jne 0x515898
mov byte [0x67d324], 1
lea eax, [ebp - 0xc]
call fcn.00405684
xor eax, eax
push ebp
push 0x515753
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x70]
xor eax, eax
call fcn.00403490
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 4]
call fcn.0040cbac
lea eax, [ebp - 0xc]
mov ecx, 0x5158e4
mov edx, dword [ebp - 4]
call fcn.004059c0
mov eax, dword [ebp - 0xc]
call fcn.0040c7fc
test al, al
je 0x515659
mov eax, dword [ebp - 0xc]
call fcn.00405b74
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41c994]
call fcn.0042231c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
mov edx, 0x5158fc
call fcn.0040571c
mov ebx, 1
lea eax, [ebp - 0x10]
mov edx, 0x515910
call fcn.0040597c
dec ebx
jne 0x515682
lea eax, [ebp - 0x10]
mov edx, 0x515968
call fcn.0040597c
movzx eax, byte [0x515974]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x515980
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00403490
push dword [ebp - 0x7c]
push 0x515980
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00405a34
mov ecx, dword [ebp - 0x78]
mov edx, 0x51598c
mov eax, dword [ebp - 0x10]
call fcn.00411b60
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x10]
call fcn.0040571c
push dword [ebp - 0x10]
push 0x51599c
push dword [ebp - 4]
push 0x5158e4
push 0x515980
push 0x5159ac
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00405a34
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x515729
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x10]
call fcn.00405b74
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x18]
call fcn.00422068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51575a
lea eax, [ebp - 0x18]
call fcn.004124a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5158d7
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.004056a8
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.004056a8
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004056a8
ret
Function at 0x51774c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x517800
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, esi
call fcn.004060b4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
test ebx, ebx
jle 0x5177e1
mov eax, ebx
add eax, eax
call fcn.00402fc8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5177da
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.004060b4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406028
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.0040bcac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5177ea
mov eax, dword [ebp - 4]
call fcn.00402fe4
ret
mov eax, edi
mov edx, esi
call fcn.00405ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517807
lea eax, [ebp - 8]
call fcn.00405ebc
ret

Function at 0x517b0c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x517b89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405dfc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x517b67
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405dfc
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004056d8
jmp 0x517b73
mov eax, ebx
mov edx, 0x517ba0
call fcn.004056d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517b90
lea eax, [ebp - 4]
call fcn.00405684
ret

Function at 0x517ba8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x517c25
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406434
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004060b4
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x517c03
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406434
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405ef8
jmp 0x517c0f
mov eax, ebx
mov edx, 0x517c38
call fcn.00405ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517c2c
lea eax, [ebp - 4]
call fcn.00405ebc
ret
Function at 0x517c48
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x517cc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x64
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405dfc
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.00405bcc
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x517c96
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405dfc
jmp 0x517c9d
mov eax, ebx
call fcn.00405684
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0040bc58
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004056d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517cce
lea eax, [ebp - 8]
call fcn.00405684
ret

Function at 0x517cd4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x517d53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x64
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406434
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
call fcn.004060b4
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x517d22
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406434
jmp 0x517d29
mov eax, ebx
call fcn.00405ebc
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0040bcac
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00405ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517d5a
lea eax, [ebp - 8]
call fcn.00405ebc
ret
Function at 0x5198fc
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x519915
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
jne 0x519925
mov bl, 1
jmp 0x519a12
mov eax, dword [0x6922b0]
cmp dword [eax], 2
jne 0x519939
mov eax, dword [0x690918]
cmp dword [eax], 4
jg 0x51996d
mov eax, dword [0x6922b0]
cmp dword [eax], 1
jne 0x5199fc
mov eax, dword [0x690918]
cmp dword [eax], 4
jg 0x51996d
mov eax, dword [0x690918]
cmp dword [eax], 4
jne 0x5199fc
mov eax, dword [0x69183c]
cmp dword [eax], 0
jle 0x5199fc
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x5199b4
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x519a08
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x519a08
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51a0b4
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45c33c]
call fcn.004761fc
mov esi, eax
test bl, bl
je 0x51a0f9
push 0x31
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.004764d0
push 0x32
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.00476514
mov eax, 0x4001
jmp 0x51a11e
push 0xb
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.004764d0
push 0xc
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.00476514
mov eax, 0x4000
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x51a154
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x51a146
mov edx, eax
mov eax, esi
call fcn.00476558
mov byte [esi + 0x42], 1
mov eax, esi
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x51a129
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45c33c]
call fcn.004761fc
mov esi, eax
test bl, bl
je 0x51a0f9
push 0x31
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.004764d0
push 0x32
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.00476514
mov eax, 0x4001
jmp 0x51a11e
push 0xb
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.004764d0
push 0xc
call sub.user32.dll_GetSystemMetrics
mov edx, eax
mov eax, esi
call fcn.00476514
mov eax, 0x4000
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x51a154
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x51a146
mov edx, eax
mov eax, esi
call fcn.00476558
mov byte [esi + 0x42], 1
mov eax, esi
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x51a8a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x51a908
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405904
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040c430
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a90f
lea eax, [ebp - 0xc]
call fcn.00405684
ret
Function at 0x526ec4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x526ede
add esp, 0xfffffff0
call fcn.00404aac
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405b64
xor eax, eax
push ebp
push 0x5270cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [edi + 4], 0
lea eax, [edi + 8]
mov edx, dword [ebp - 4]
call fcn.004056d8
lea eax, [edi + 0x50]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x526f4b
push 0x5270fc
push dword [ebp - 4]
push 0x527130
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405a34
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
push 0x527134
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [edi + 0x48], esi
test esi, esi
je 0x526f9d
push 0x527140
push esi
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [edi + 0x4c], ebx
test ebx, ebx
jne 0x526fb8
mov eax, dword [edi + 0x48]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
mov dword [edi + 0x48], eax
call sub.wsock32.dll_WSACleanup
mov ecx, 0x52715c
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
jmp 0x526fb8
call sub.wsock32.dll_WSACleanup
mov ecx, 0x527188
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
lea eax, [edi + 0xc]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403cb4
mov dword [edi + 0xc], 0x3c
mov eax, pe_nt_image_headers32
call fcn.00402f78
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], pe_nt_image_headers32
mov eax, 0x80
call fcn.00402f78
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0x80
mov eax, 0x80
call fcn.00402f78
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 0x80
mov eax, 0x800
call fcn.00402f78
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0x800
mov eax, 0x800
call fcn.00402f78
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 0x800
mov esi, dword [edi + 8]
test esi, esi
je 0x52703e
sub esi, 4
mov esi, dword [esi]
lea eax, [edi + 0xc]
push eax
push 0x80000000
push esi
mov eax, dword [edi + 8]
call fcn.00405b74
push eax
call dword [edi + 0x4c]
test eax, eax
jne 0x5270a9
mov eax, dword [edi + 0x1c]
call fcn.00402fe4
mov eax, dword [edi + 0x28]
call fcn.00402fe4
mov eax, dword [edi + 0x30]
call fcn.00402fe4
mov eax, dword [edi + 0x38]
call fcn.00402fe4
mov eax, dword [edi + 0x40]
call fcn.00402fe4
mov eax, dword [edi + 0x48]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
mov dword [edi + 0x48], eax
call sub.wsock32.dll_WSACleanup
mov ecx, 0x5271ac
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
mov byte [edi + 4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5270d2
lea eax, [ebp - 0xc]
call fcn.00405684
lea eax, [ebp - 4]
call fcn.00405684
ret
Function at 0x527574
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
test dl, dl
je 0x527582
add esp, 0xfffffff0
call fcn.00404aac
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x41bf94]
call fcn.00404718
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5275bd
mov ecx, 0x5275f0
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
mov byte [esi + 0x1a5], 0
mov byte [esi + 0x1a4], 0
mov eax, esi
test bl, bl
je 0x5275e0
call fcn.00404b04
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x527624
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x38], eax
mov ecx, 0xc
lea eax, [ebp - 0x34]
mov edx, dword [0x4010e4]
call fcn.004064c8
xor eax, eax
push ebp
push 0x527777
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x1a5], 0
jne 0x527741
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x1a5], 1
mov dl, 1
mov eax, dword [0x41bf94]
call fcn.00404718
mov edx, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
add eax, 8
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5276b3
mov ecx, 0x527790
mov dl, 1
mov eax, dword [0x40a7f8]
call fcn.004106cc
call fcn.00404ffc
xor ebx, ebx
lea esi, [ebp - 0x34]
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.00491a38
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.004056d8
inc ebx
add esi, 4
cmp ebx, 0xc
jne 0x5276b8
mov ebx, 0xc
lea edi, [ebp - 0x34]
call fcn.004d9cdc
cmp byte [eax + 0x81f], 0
je 0x5276fa
lea eax, [ebp - 4]
mov edx, 0x5277cc
call fcn.0040571c
jmp 0x527704
lea eax, [ebp - 4]
mov edx, dword [edi]
call fcn.0040571c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x527420]
call fcn.0052749c
mov esi, eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041e8e0
lea edx, [ebp - 0x40]
mov eax, esi
call fcn.0052754c
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x5273ac]
call fcn.00527d20
add edi, 4
dec ebx
jne 0x5276dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52777e
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004056a8
lea eax, [ebp - 0x34]
mov ecx, 0xc
mov edx, dword [0x4010e4]
call fcn.004065b4
lea eax, [ebp - 4]
call fcn.00405684
ret