joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x100e6efc
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x37459ae4
pushfd
push eax
xor byte [ecx - 0x416a5dd8], 0x5c
sbb ecx, dword [ebx]
aaa
sub byte [edx + 0x1b5cbe95], ah
or esi, dword [edi]
xor ebx, dword [edx + 0x21183b45]
insd dword es:[edi], dx
pop ds
movsd dword es:[edi], dword [esi]
sbb dl, ch
mov ah, 4
cmp al, 0xf0
inc ecx
sbb dword [edx + eax*2 + 0x451a27a7], ebx
xchg byte [ecx + 0x67], ch
push 0xffffffffffffff87
sbb dword [edi], edx
xor byte [esi - 0x7422e023], 0xa4
or al, byte [ecx]
sbb dl, byte [edi]
add byte [ebx - 0x73], 0x5b
or eax, 0x551a1d83
mov esi, 0x2c051f61
sbb dl, byte [ebp + 0x1a1bbeb9]
inc ebp
mov esi, 0x2ad1b93
imul ebx, dword [edx + 0x6ea3b71], 6
cmc
and dword [edx + 0x4b], ecx
mov dh, 0x18
sbb dh, dh
dec esi
jg 0x100e6f05
invalid
Function at 0x405d81
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x409880
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x409870
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405dd2
xor eax, eax
jmp 0x405dff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405dfe
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405dfc
xor eax, eax
jmp 0x405dfe
call esi
pop esi
leave
ret 4

Function at 0x405e20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43fd88
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43fd88], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405e5f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e63
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x40602e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40604e
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406054
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406083
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40995c]
mov dword [ebp - 8], eax
mov eax, dword [0x409960]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060d3
test edi, edi
jne 0x406090
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060cd
Function at 0x40628d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call fcn.0040622c
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062fe
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
mov word [esi + 0x7fe], ax
pop edi
jne 0x4062fe
cmp dword [ebp + 0xc], 1
je 0x406303
cmp dword [ebp + 0xc], 2
je 0x406303
xor eax, eax
mov word [esi], ax
pop esi
leave
ret 0x14

Function at 0x4064bb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4064df
xor eax, eax
test eax, eax
je 0x4064f2
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4064f2
xor ecx, ecx
jmp 0x4064f5
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4092b0]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406634
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040602e
mov edi, eax
cmp edi, 0xffffffff
je 0x406675
test byte [esp + 0x10], 1
push esi
je 0x40665e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406666
xor eax, eax
inc eax
jmp 0x406677
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406655
test byte [esp + 0x10], 4
jne 0x406675
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40671f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43fdd0
push esi
call fcn.004063c1
push esi
call fcn.00405f57
mov edi, eax
test edi, edi
jne 0x406740
xor eax, eax
jmp 0x40679e
push edi
call fcn.004063e3
test byte [0x445aa0], 0x80
je 0x40675d
movzx eax, word [edi]
test ax, ax
je 0x40673c
cmp ax, 0x5c
je 0x40673c
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40677f
push esi
call fcn.00406494
test eax, eax
je 0x406779
test byte [eax], 0x10
je 0x4067a3
push esi
call fcn.004066ab
push esi
call ebx
cmp eax, edi
jg 0x40676a
push esi
call fcn.0040667c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40679d
Function at 0x406a1c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x4405d0], 0x55004e
mov dword [0x4405d4], 0x4c
mov edi, 0x400
mov ebp, 0x4405d0
test esi, esi
je 0x406a72
push 1
push 0
push esi
call fcn.00406054
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406b91
cmp eax, edi
jg 0x406b91
push edi
mov esi, 0x441c20
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406b91
cmp eax, edi
jg 0x406b91
push esi
push ebp
push str._ls_ls_r_n
push 0x441020
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x445a30]
push dword [eax + 0x128]
push esi
call fcn.004067a7
push 4
push 0xc0000000
push esi
call fcn.00406054
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406b91
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406b8a
push edi
push esi
push ebp
call fcn.004060d7
test eax, eax
je 0x406b8a
push str._Rename__r_n
push esi
call fcn.00405fb4
test eax, eax
jne 0x406b28
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406b5d
push 0x40998c
add eax, 0xa
push eax
call fcn.00405fb4
mov ebp, eax
test ebp, ebp
je 0x406b59
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406b4a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406b44
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406b5f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x441020
add eax, esi
push eax
call fcn.0040600a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406106
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406b96
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406bb9
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406a1c
pop ecx
pop ecx
inc dword [0x445b10]
ret 8
Function at 0x406bc2
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040671f
mov dword [ebp - 8], eax
test bl, 8
je 0x406c00
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x445b08], eax
jmp 0x406d82
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406c1b
test eax, eax
je 0x406d2e
test bl, 2
je 0x406d2e
push edi
mov esi, 0x441420
push esi
call fcn.004063c1
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406c3d
push str..
push esi
call ebx
jmp 0x406c43
push edi
call fcn.004066ab
cmp word [edi], 0
jne 0x406c53
cmp word [0x441420], 0x5c
jne 0x406c5b
push 0x4092b0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406d22
cmp word [ebp - 0x22c], 0x2e
jne 0x406ca6
cmp word [ebp - 0x22a], 0
je 0x406d05
cmp word [ebp - 0x22a], 0x2e
jne 0x406ca6
cmp word [ebp - 0x228], 0
je 0x406d05
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063c1
test byte [ebp - 0x258], 0x10
je 0x406cd1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406d05
push dword [ebp + 0xc]
push edi
call fcn.00406bc2
jmp 0x406d05
push dword [ebp - 4]
push edi
call fcn.00406634
test eax, eax
jne 0x406cfd
cmp dword [ebp - 4], eax
je 0x406cf5
push edi
push 0xfffffffffffffff1
call fcn.0040511f
push 0
push edi
call fcn.00406b96
jmp 0x406d05
inc dword [0x445b08]
jmp 0x406d05
push edi
push 0xfffffffffffffff2
call fcn.0040511f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406c7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406d2e
xor eax, eax
mov word [ebx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406d81
cmp dword [ebp - 8], esi
je 0x406d71
push edi
call fcn.00406494
test eax, eax
je 0x406d81
push edi
call fcn.0040667c
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.00406634
test eax, eax
jne 0x406d79
cmp dword [ebp - 4], esi
je 0x406d71
push edi
push 0xfffffffffffffff1
call fcn.0040511f
push esi
push edi
call fcn.00406b96
jmp 0x406d81
inc dword [0x445b08]
jmp 0x406d81
push edi
push 0xffffffffffffffe5
call fcn.0040511f
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406d88
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x442424], 0
jne 0x406dc6
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d9c
mov dword [ecx*4 + 0x442420], eax
inc ecx
cmp ecx, 0x100
jl 0x406d97
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406df3
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x442420]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406dd4
not eax
pop ebp
ret 0xc

Function at 0x406e31
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret
Function at 0x4018b0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [0x42a2e0]
mov dword [ebp - 0x18], eax
mov ax, word [0x42a2e4]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call fcn.004164c0
test eax, eax
jne 0x401910
call fcn.00416430
mov dword [ebp - 0xc], eax
jmp 0x401930
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push 0
call fcn.00416530
test eax, eax
jne 0x401930
call fcn.00416430
mov dword [ebp - 0xc], eax
nop word [eax + eax]
cmp dword [ebp - 0x10], 0
je 0x401945
push dword [ebp - 0x10]
call fcn.004164d0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401b90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 1
mov eax, str.SeRestorePrivilege
mov dl, 1
call fcn.00401a10
mov eax, str.SeTakeOwnershipPrivilege
mov dl, 1
call fcn.00401a10
mov eax, str.SeShutdownPrivilege
mov dl, 1
call fcn.00401a10
mov eax, str.SeBackupPrivilege
mov dl, 1
call fcn.00401a10
mov eax, str.SeDebugPrivilege
mov dl, 1
call fcn.00401a10
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1d
call fcn.00416420
push eax
call sub.ntdll.dll_NtSetInformationProcess
nop dword [eax + eax]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 4
push 0
push 0
mov eax, 0x42b0fc
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
push 0
push 0
push 0xd
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.advapi32.dll_RegNotifyChangeKeyValue
push dword [ebp - 0x10]
call sub.advapi32.dll_RegCloseKey
call fcn.00417260
jmp 0x401bf8

Function at 0x40bbc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4291e0]
cmp ax, 0xcb
je 0x40bcbf
cmp ax, 0xcc
je 0x40bcbf
mov edx, dword [0x4356e0]
test edx, edx
je 0x40bbf2
mov eax, dword [0x435590]
call edx
mov ebx, eax
jmp 0x40bbf7
mov ebx, 0x435594
cmp word [0x435580], 0
jle 0x40bc1a
mov eax, 0x435560
call fcn.0040be30
mov eax, ebx
call fcn.0040b790
mov eax, ebx
call fcn.0040b810
mov esi, dword [ebx]
jmp 0x40bc3d
mov edi, dword [esi + 4]
test byte [esi], 1
jne 0x40bc38
mov edx, esi
mov eax, ebx
call fcn.0040ac10
jmp 0x40bc3b
and dword [esi], 0xfffffffe
mov esi, edi
test esi, esi
jne 0x40bc20
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x435580], 0
jle 0x40bcbf
mov edx, 0x4354a0
mov eax, ebx
call fcn.0040ad60
mov esi, eax
test eax, eax
je 0x40bc92
mov eax, dword [0x435534]
mov dword [esi + 0xc], eax
cmp dword [0x435534], 0
je 0x40bc87
mov eax, dword [0x435534]
mov dword [eax + 8], esi
mov eax, dword [ebx + 0x94]
mov dword [0x435534], eax
sub word [0x435580], 1
cmp word [0x435580], 0
sete bl
mov eax, 0x435560
call fcn.0040be50
test bl, bl
je 0x40bcbf
mov eax, 0x435560
call fcn.0040be20
pop edi
pop esi
pop ebx
ret
Function at 0x4151a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00415190
push ebp
push 0x40f060
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test eax, eax
jle 0x415210
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00407e70
cmp ebx, 1
jle 0x4151fa
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.00407940
jmp 0x41521b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00405e10
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00415190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00415430
push ebp
push 0x40f060
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
nop dword [eax + eax]
lea eax, [ebx*4 + 0x435e2c]
xor edx, edx
call fcn.00405e10
mov dword [ebx*4 + 0x435e4c], 0xffffffff
add ebx, 1
cmp ebx, 7
jle 0x415470
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4154f8
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004068a0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0040fd40
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4154f8
push 4
push ebx
push esi
mov eax, 0x415300
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4153a0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00415430
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415c30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x435e90], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x435cf0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x435d00], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x435d10], eax
mov eax, dword [ebp - 0x88]
mov dword [0x435d20], eax
mov edx, 0x435d31
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402680
lea eax, [ebp - 0x80]
call fcn.004030c0
mov byte [0x435d30], al
mov eax, str.kernel32
push eax
call fcn.004010e0
mov dword [0x435ea0], eax
test eax, eax
je 0x415ccf
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x435ea0]
call fcn.00401160
mov dword [0x435e90], eax
cmp dword [0x435d00], 6
jae 0x415ceb
mov dword [0x429b90], 0
cmp dword [0x435d00], 6
jb 0x415cfe
cmp dword [0x435d10], 1
jb 0x415cfe
mov dword [0x429ba0], 2
cmp dword [0x435ea0], 0
je 0x415d26
cmp dword [0x435d00], 6
jb 0x415d26
mov eax, str.GetTimeZoneInformationForYear
push eax
push dword [0x435ea0]
call fcn.00401160
mov dword [0x42a2c0], eax
mov esp, ebp
pop ebp
ret

Function at 0x416d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
xor eax, eax
push fcn.00416ce0
push ebp
push 0x40f060
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405e10
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x84]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x416d95
mov dword [ebp - 0x10], 0xffffffff
nop dword [eax + eax]
add dword [ebp - 0x10], 1
push 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x7c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x42e56c
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov ecx, 2
call fcn.00406200
cmp ebx, dword [ebp - 0x10]
jg 0x416d58
push 0
mov ecx, 0x42e56c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
call fcn.00405f00
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x416db1
mov eax, dword [eax - 4]
push eax
push dword [ebp - 0xc]
push 7
push 0
mov eax, str.DependOnService
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00416ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret