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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a1f76
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a1f76
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a1f57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a2300
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a2338
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a2fb0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a2ff9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a3470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a3020
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a30a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a30a0
lea ecx, [esi + 0xc]
call fcn.004cd386
lea ecx, [esi + 0x10]
call fcn.004cd386
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a4630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a4630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a4630
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004cd3fb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004cd3fb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a7670
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xaa1c60]
xor edx, edx
cmp eax, edx
jne 0x4a7696
xor eax, eax
mov byte [eax + 0xaa1b60], al
inc eax
cmp eax, 0x100
jl 0x4a767e
mov dword [0xaa1c60], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xaa1b60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a7727
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a76fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a76c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a77a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a77f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a77da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc65e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004aeaa0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa4bb1c
call fcn.004cd13c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ae213
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cd13c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ae20c
push 0
mov ecx, eax
call fcn.004a52b0
mov dword [esi + 0xc], eax
jmp 0x4ae215
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ae215
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4cf79f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cf7d7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cd856
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cd82e
jmp 0x4cf7e3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d0e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d0ed6
call fcn.004d6c05
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d0ed6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d0ecd
xor eax, eax
jmp 0x4d0ede
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d0ee4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d7135
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d7163
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d7181
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d709b
jmp 0x4d7181
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d7181
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d709b
test edi, edi
mov eax, edi
jne 0x4d716b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x4010b7
repz ret
jmp fcn.0040130b

Function at 0x4032e1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402209
xor ebx, ebx
cmp dword [0x40b5dc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4033b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x403321
xor eax, eax
jmp 0x40347a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40331a
push eax
call fcn.004021a6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b5dc], eax
call esi
push eax
call fcn.004021a6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b5e0], eax
call esi
push eax
call fcn.004021a6
mov dword [0x40b5e4], eax
lea eax, [ebp - 8]
push eax
call fcn.004014b8
test eax, eax
pop ecx
pop ecx
je 0x403384
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402bd3
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4033b6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004021a6
cmp eax, ebx
pop ecx
mov dword [0x40b5ec], eax
je 0x4033b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021a6
pop ecx
mov dword [0x40b5e8], eax
mov eax, dword [0x40b5e8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40342f
cmp dword [0x40b5ec], esi
je 0x40342f
push eax
call fcn.00402212
pop ecx
call eax
cmp eax, ebx
je 0x4033fc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40b5ec]
call fcn.00402212
pop ecx
call eax
test eax, eax
je 0x4033fc
test byte [ebp - 0x18], 1
jne 0x40342f
lea eax, [ebp - 0xc]
push eax
call fcn.004014ef
test eax, eax
pop ecx
je 0x403417
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402bd3
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x403426
or dword [ebp + 0x10], 0x200000
jmp 0x403460
or dword [ebp + 0x10], 0x40000
jmp 0x403460
mov eax, dword [0x40b5e0]
cmp eax, esi
je 0x403460
push eax
call fcn.00402212
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403460
mov eax, dword [0x40b5e4]
cmp eax, esi
je 0x403460
push dword [ebp - 4]
push eax
call fcn.00402212
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40b5dc]
call fcn.00402212
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100030dc
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.10005860
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x572805
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00572884
jae 0x572811
xor ecx, ecx
call fcn.00572884
jae 0x57283b
xor eax, eax
call fcn.00572884
jae 0x57284c
mov al, 0x10
call fcn.00572884
adc al, al
jae 0x57282d
jne 0x572879
stosb byte es:[edi], al
jmp 0x572812
call fcn.00572890
dec ecx
loop 0x572858
mov eax, ebp
call fcn.0057288e
jmp 0x57287a
lodsb al, byte [esi]
shr eax, 1
je 0x5728a0
adc ecx, 2
mov ebp, eax
jmp 0x57287a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0057288e
cmp eax, 0x7d00
jae 0x572878
cmp eax, 0x500
jae 0x572879
cmp eax, 0x7f
ja 0x57287a
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x572812
pop ebp
ret 8
Function at 0x402c8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x410008], 0x8088405
inc edx
mov dword [ebx + 0x410008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403218
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x410018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403290
xor eax, eax
push ebp
push 0x403289
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 0x4032cc
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 0x403290
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x410018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x410018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cf8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x412044], 0
je 0x403d59
cmp word [0x412218], 0xd7b2
jne 0x403d21
cmp dword [0x412220], 0
jbe 0x403d21
mov eax, 0x412214
call dword [0x412230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x410084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x410024], 0
jne 0x403d75
push 0
push 0x41007c
push 0x410084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404858
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 0xf0019
push 0
push 0x404a88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404a88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404aa4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404964
xor eax, eax
push ebp
push 0x40495d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004046a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404942
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ac4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404942
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404964
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x404a7e
cmp byte [ebp - 0xd], 0
jne 0x4049ab
cmp byte [ebp - 0x12], 0
je 0x404a7e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4049c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4049d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4049c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404a7e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404a10
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404a7e
cmp byte [ebp - 0xd], 0
je 0x404a7e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404a7e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x404c14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404c7a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e0c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404c64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c81
lea eax, [ebp - 0x10]
call fcn.00403e74
ret

Function at 0x406ed8
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 0x406f11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f64
jmp 0x406f1a
mov eax, ebx
mov edx, esi
call fcn.00403ec8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406f24
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 0x406f45
mov al, byte [esp]
jmp 0x406f47
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4075cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407444
mov eax, dword [0x411a7c]
cmp byte [eax], 0
je 0x407648
mov eax, dword [0x4119cc]
call fcn.00402a20
call fcn.0040263c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406318
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x407690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40767e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4119ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x412660]
call fcn.00404664
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x408144
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 0x4081a8
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.004040bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406180
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081af
lea eax, [ebp - 0xc]
call fcn.00403e74
ret

Function at 0x409668
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4127b4
mov eax, esi
mov edx, 8
test al, 1
je 0x409684
shr eax, 1
xor eax, 0xedb88320
jmp 0x409686
shr eax, 1
dec edx
jne 0x409677
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409670
pop esi
ret

Function at 0x40969c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [0x4127b0], 0
jne 0x4096ba
call fcn.00409668
mov byte [0x4127b0], 1
mov eax, edi
test esi, esi
je 0x4096e6
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4127b4]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4096c0
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d704
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d787
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40d76a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040da08
mov eax, dword [ebp - 0xc]
call fcn.004042e8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d771
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x40d80c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
xor eax, eax
mov dl, byte [ebx]
sub dl, 1
jb 0x40d838
sub dl, 0x1f
je 0x40d830
sub dl, 2
je 0x40d82c
jmp 0x40d834
xor al, 1
jmp 0x40d834
test al, al
je 0x40d838
inc ebx
jmp 0x40d819
inc ebx
cmp byte [ebx], 0x20
je 0x40d837
mov eax, esi
mov edx, ebx
call fcn.00404050
pop esi
pop ebx
ret

Function at 0x40dac0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00406420
add esp, 0x104
pop ebx
ret
Function at 0x40dc04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40dcad
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40dc97
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x40dc50
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40dc97
cmp dword [ebp - 0xc], 2
jae 0x40dc62
mov eax, dword [ebp - 4]
call fcn.00403e74
mov bl, 1
jmp 0x40dc97
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 0x10]
call fcn.004043dc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00404338
push eax
push 0
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40dc97
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00403ec8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcb4
lea eax, [ebp - 0x10]
call fcn.00403e74
ret

Function at 0x40e58c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x411ad4]
cmp dword [eax], 2
jne 0x40e5fa
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e5b2
call fcn.0040e560
jmp 0x40e60c
lea eax, [esp + 8]
push eax
push 0x40e610
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x40e5fa
call fcn.0040e560
jmp 0x40e60c
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x40e60c
call fcn.0040e560
add esp, 0x14
ret

Function at 0x40e624
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
dec ebx
test ebx, ebx
jl 0x40e66a
inc ebx
xor esi, esi
test esi, esi
je 0x40e641
push 0xfa
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.004042e8
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x40e66a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40e66a
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40e66a
inc esi
dec ebx
jne 0x40e633
pop edi
pop esi
pop ebx
ret