joyce8/EMBER2024-capa huggingface dataset:
Function at 0x514ca4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004080d0
xor eax, eax
push ebp
push 0x514d22
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408b98
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x514ced
mov eax, dword [ebx + 4]
call fcn.00408b98
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514d29
lea eax, [ebp - 4]
call fcn.00407fec
ret

Function at 0x515dbc
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x515f64
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00404914
cmp word [ebx + 0xaa], 0
je 0x515e05
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x515e19
lea esi, [ebp - 0xc]
jmp 0x515e1b
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x515e28
xor edi, edi
jmp 0x515e35
mov eax, dword [ebx + 0x88]
call fcn.00408b98
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.00408b98
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.005154c0
mov eax, dword [ebp - 0x14]
call fcn.00408b98
push eax
push esi
mov eax, dword [ebx + 0x7c]
call fcn.00408b98
push eax
mov eax, dword [ebp - 4]
call fcn.00408b98
push eax
mov eax, ebx
call fcn.00515608
push eax
mov eax, ebx
call fcn.005155dc
push eax
mov eax, ebx
call fcn.00515594
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0051534c
mov eax, dword [ebp - 0x18]
call fcn.00408b98
push eax
mov eax, dword [ebx + 8]
call fcn.00408b98
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x10], 0
jne 0x515ec1
call fcn.00426e0c
xor edx, edx
push ebp
push 0x515f3a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x515eff
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x515ef5
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515f23
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515f41
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x515f74
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x515fa0
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xbc]
call dword [esi + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00408b98
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x515fc5
call fcn.00426e0c
xor eax, eax
push ebp
push 0x515ffc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x515fe5
call fcn.00426e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516003
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x516c14
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x516c1d
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
jmp 0x516c40
push 0
push 0
push 0
push 0
push 0x516da4
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x516d93
xor eax, eax
push ebp
push 0x516d8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00408b98
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 4], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x43d180]
call fcn.0044b440
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x10000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10018]
push eax
push 0x16
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpQueryInfoW
test bl, bl
je 0x516cd5
lea edx, [ebp - 0x10018]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 4], 0
je 0x516d75
xor eax, eax
push ebp
push 0x516d6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x516d50
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x516d0e
lea edx, [ebp - 0x10018]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x516d30
cmp dword [ebp - 0xc], 0
ja 0x516cfd
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.0044b714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516d57
mov eax, dword [ebp - 0x14]
call fcn.004063a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516d93
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
jmp 0x516d9d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516dd0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
push esi
push edi
jmp 0x516de6
xor eax, eax
push ebp
push 0x516eef
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
call fcn.00408b98
push eax
call sub.kernel32.dll_CreateFileW_1
mov edi, eax
cmp edi, 0xffffffff
jne 0x516e2a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516f05
push 0
push 0
push 0
push 0
push 0x516f10
call sub.wininet.dll_InternetOpenW
mov esi, eax
test esi, esi
je 0x516ee5
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.00408b98
push eax
push esi
call sub.wininet.dll_InternetOpenUrlW
mov ebx, eax
test ebx, ebx
je 0x516edd
push 0
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0x80a]
xor ecx, ecx
mov edx, 0x802
call fcn.00404f44
lea eax, [ebp - 0x80a]
xor ecx, ecx
mov edx, 0x802
call fcn.00404f44
lea eax, [ebp - 4]
push eax
push 0x802
lea eax, [ebp - 0x80a]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x80a]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x516ed1
cmp dword [ebp - 4], 0
jne 0x516e84
push edi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516efb
jmp 0x516f05
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x516f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
call fcn.004080d0
xor eax, eax
push ebp
push 0x517030
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x516f8c
xor eax, eax
push ebp
push 0x517006
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00404f44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0
lea eax, [ebp - 0x25c]
mov edx, dword [ebp + 8]
call fcn.004207bc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x516ffc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x517010
jmp 0x51701a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517037
lea eax, [ebp + 8]
call fcn.00407fec
ret
Function at 0x517040
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x517123
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x517062
push 0x64
call sub.kernel32.dll_Sleep_2
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x517097
lea eax, [ebp - 4]
mov edx, 0x517134
call fcn.00408bf0
mov eax, dword [ebp - 4]
push eax
call fcn.00516f60
xor ebx, ebx
jmp 0x517108
lea eax, [ebp - 8]
mov ecx, 0x51717c
mov edx, dword [0x52b338]
call fcn.00408ddc
mov eax, dword [ebp - 8]
call fcn.00408b98
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x5171bc
push 0x5171d4
push ebx
call sub.advapi32.dll_CreateServiceW
test eax, eax
jne 0x5170f6
lea eax, [ebp - 0xc]
mov edx, 0x517134
call fcn.00408bf0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00516f60
xor ebx, ebx
jmp 0x517108
push eax
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x517108
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51712a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040804c
ret
Function at 0x4029d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029ff
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403cdc
jmp 0x402a1d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402958
mov edi, eax
test ebx, ebx
je 0x402a1d
cmp dword [esi], 0
je 0x402a1d
dec ebx
jmp 0x402a06
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c88
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e58
xor eax, eax
push ebp
push 0x402e51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402e94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405c6c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405e28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ccd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405e44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d3f
xor eax, eax
push ebp
push 0x405d38
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405ac4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d21
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e64
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d3f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e20
cmp byte [ebp - 0xd], 0
jne 0x405d81
cmp byte [ebp - 0x12], 0
je 0x405e20
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d9a
dec ebx
cmp byte [ebx], 0x2e
je 0x405da9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d99
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e20
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405dd6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e20
cmp byte [ebp - 0xd], 0
je 0x405e20
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e20
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40644c
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x40643e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x406433
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40642e
mov eax, 0x64
jmp 0x406443
call sub.kernel32.dll_GetLastError
call fcn.00402884
xor eax, eax
jmp 0x40642e
mov eax, 0x67
jmp 0x406443

Function at 0x406454
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4064af
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x4064a1
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x406496
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x406491
mov eax, 0x65
jmp 0x4064a6
call sub.kernel32.dll_GetLastError
call fcn.00402884
xor eax, eax
jmp 0x406491
mov eax, 0x67
jmp 0x4064a6

Function at 0x4064f4
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x406537
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40652e
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x40652e
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00402894
mov al, 1
jmp 0x40652c
mov eax, 0x67
call fcn.00402884
mov al, 0xff
jmp 0x40652c

Function at 0x4065c0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4065f0
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x4065e6
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402894
or eax, 0xffffffff
jmp 0x4065e4
mov eax, 0x67
call fcn.00402884
or eax, 0xffffffff
jmp 0x4065e4

Function at 0x409504
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404038
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409518
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404038
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40953a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409700
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403cdc
add esp, 0x104
pop ebx
ret
Function at 0x40b9e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403cdc
jmp 0x40ba22
mov eax, ebx
mov edx, esi
call fcn.00403c48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba2c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba4d
mov al, byte [esp]
jmp 0x40ba4f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417ac4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x417aca
ret

Function at 0x41a308
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41a359
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41a340
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41a330
jmp 0x41a359
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41a341
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c9a8
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x42c9fc
mov eax, dword [0x4e1268]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x42c9d4
push ebx
push 0x42ca04
call fcn.00447b34
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x42c9f8
mov ecx, dword [0x4e0fec]
mov dl, 1
mov eax, dword [0x4082ac]
call fcn.0040c23c
call fcn.004036c4
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x42ca24
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor edx, edx
push ebp
push 0x42caf6
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42cac8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x42cab7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00402918
mov eax, dword [ebp - 4]
call fcn.0042c960
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cabe
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x42cb08
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42cb7a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42cb4e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403dac
jmp 0x42cb55
mov eax, ebx
call fcn.00403bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cb81
cmp dword [ebp - 8], 0
je 0x42cb71
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret
Function at 0x42cbb0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor edx, edx
push ebp
push 0x42cc52
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42cc25
mov edx, ebx
mov eax, dword [0x4174f8]
call fcn.0041bd78
test al, al
je 0x42cc15
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041bc88
call fcn.00403764
jmp 0x42cc59
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42cbe0
mov ecx, dword [0x4e1060]
mov dl, 1
mov eax, dword [0x4082ac]
call fcn.0040c23c
call fcn.004036c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cc59
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42cc60
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor eax, eax
push ebp
push 0x42ccb8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ccbf
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret

Function at 0x42ccc8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor edx, edx
push ebp
push 0x42cd1d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cd24
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret

Function at 0x42cd94
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor eax, eax
push ebp
push 0x42ce09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042c960
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0041bd4c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42cdf3
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce10
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret