joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d85
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad7c]
sub esi, dword [0x41ed88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402ee3
push dword [0x41ed84]
call fcn.00402d6e
push ebx
push ebx
push dword [0x41ed88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad78], esi
mov dword [0x40acec], ebx
mov ebp, 0x412d78
mov eax, dword [0x41ed80]
sub eax, dword [0x41ed84]
mov edi, 0x4000
cmp eax, edi
jg 0x402dfa
mov edi, eax
push edi
mov esi, 0x41ad80
push esi
call fcn.00402d3c
test eax, eax
je 0x402ef5
add dword [0x41ed84], edi
mov dword [0x412d08], esi
mov dword [0x412d0c], edi
cmp dword [0x423bcc], ebx
je 0x402e51
cmp dword [0x423ca0], ebx
jne 0x402e51
mov eax, dword [0x41ad78]
sub eax, dword [0x41ad7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed88]
mov dword [0x40acec], eax
call fcn.00402c9d
pop ecx
mov ecx, 0x412cf0
mov dword [0x412d10], ebp
mov dword [0x412d14], 0x8000
call fcn.00406067
test eax, eax
jl 0x402efa
mov esi, dword [0x412d10]
sub esi, ebp
je 0x402eaf
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402eff
cmp esi, dword [esp + 0x10]
jne 0x402eff
add dword [0x41ed88], esi
cmp dword [0x412d0c], ebx
jne 0x402e20
jmp 0x402ebb
cmp dword [0x412d0c], ebx
jne 0x402efa
cmp edi, ebx
je 0x402efa
mov eax, dword [0x41ad7c]
mov ecx, eax
sub ecx, dword [0x41ed88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de4
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c9d
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402eed
push 0xfffffffffffffffd
pop eax
jmp 0x402eed
push 0xfffffffffffffffe
jmp 0x402efc
Function at 0x402f03
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f2f
mov ecx, dword [0x423c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41ad7c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d85
cmp eax, edi
jl 0x403028
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403024
cmp dword [ebp - 4], esi
jne 0x403024
push dword [ebp + 8]
add dword [0x41ad7c], esi
call fcn.00402d85
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403027
cmp dword [ebp + 0x10], edi
jne 0x402ff3
cmp dword [ebp + 8], edi
jle 0x40301f
mov esi, 0x41ad80
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa3
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403024
cmp edi, dword [ebp - 4]
jne 0x403024
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fef
cmp dword [ebp + 0x14], edi
jne 0x402fef
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad7c], eax
cmp dword [ebp + 8], 0
jg 0x402f96
jmp 0x40301f
push 0xfffffffffffffffe
jmp 0x403026
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402ffe
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403024
mov eax, dword [ebp - 4]
add dword [0x41ad7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403027
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40547e
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405612
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405615
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405644
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405688
test edi, edi
jne 0x40564f
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405682

Function at 0x40568c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4056fd
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4056ec
cmp dword [ebp + 0x14], 1
je 0x4056ee
cmp dword [ebp + 0x14], 2
je 0x4056ee
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405946
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.004057a5
push esi
call fcn.00405584
mov edi, eax
test edi, edi
jne 0x405967
xor eax, eax
jmp 0x4059bf
push edi
call fcn.004057c7
test byte [0x423c28], 0x80
je 0x405980
mov al, byte [edi]
test al, al
je 0x405963
cmp al, 0x5c
je 0x405963
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059a0
push esi
call fcn.00405861
test eax, eax
je 0x40599a
test byte [eax], 0x10
je 0x4059c4
push esi
call fcn.0040591f
push esi
call ebx
cmp eax, edi
jg 0x40598b
push esi
call fcn.004058f2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059be
Function at 0x405c74
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405888
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c98
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dd1
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
je 0x405cdc
push 1
push 0
push esi
call fcn.00405615
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dd7
cmp eax, edi
jg 0x405dd7
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dd7
cmp eax, edi
jg 0x405dd7
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a1e
push 4
push 0xc0000000
push esi
call fcn.00405615
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405dd1
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 0x405dca
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dca
cmp edi, dword [esp + 0x18]
jne 0x405dca
push str._Rename__r_n
push esi
call fcn.004059c8
test eax, eax
jne 0x405dde
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057a5
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.004055d1
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4075f8
add eax, 0xa
push eax
call fcn.004059c8
test eax, eax
je 0x405d95
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e05
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405dfa
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d97
Function at 0x405e0d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405946
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x405e42
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x405fd4
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e5d
test eax, eax
je 0x405f7f
test cl, 2
je 0x405f7f
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.004057a5
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405e80
push str..
push esi
call edi
jmp 0x405e86
push ebx
call fcn.0040591f
cmp byte [ebx], 0
jne 0x405e94
cmp byte [0x422358], 0x5c
jne 0x405e9c
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405f74
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405543
cmp byte [eax], 0
je 0x405edf
cmp byte [ebp - 0x18], 0
je 0x405edf
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405ef5
mov al, byte [esi + 1]
test al, al
je 0x405f53
cmp al, 0x2e
jne 0x405ef5
cmp byte [esi + 2], 0
je 0x405f53
push esi
push edi
call fcn.004057a5
test byte [ebp - 0x148], 0x10
je 0x405f1a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f53
push dword [ebp + 0xc]
push ebx
call fcn.00405e0d
jmp 0x405f53
push ebx
call fcn.004055f5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f4b
test byte [ebp + 0xc], 4
je 0x405f43
push ebx
push 0xfffffffffffffff1
call fcn.00404849
push 0
push ebx
call fcn.00405c74
jmp 0x405f53
inc dword [0x423c88]
jmp 0x405f53
push ebx
push 0xfffffffffffffff2
call fcn.00404849
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ec1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f7e
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405fd3
cmp dword [ebp - 8], esi
je 0x405fc3
push ebx
call fcn.00405861
test eax, eax
je 0x405fd3
push ebx
call fcn.004058f2
push ebx
call fcn.004055f5
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405fcb
test byte [ebp + 0xc], 4
je 0x405fc3
push ebx
push 0xfffffffffffffff1
call fcn.00404849
push esi
push ebx
call fcn.00405c74
jmp 0x405fd3
inc dword [0x423c88]
jmp 0x405fd3
push ebx
push 0xffffffffffffffe5
call fcn.00404849
pop esi
pop ebx
leave
ret 8
Function at 0x405fd9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x406014
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fed
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x405fe8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406041
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 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406022
not eax
pop ebp
ret 0xc
Function at 0x402784
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4028a0
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 0x402938
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402918
xor eax, eax
push ebp
push 0x402911
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 0x402954
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 0x402918
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 0x40425c
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 0x404418
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4042bd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404434
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40432f
xor eax, eax
push ebp
push 0x404328
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.004040b4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404311
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404454
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 0x40432f
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 0x404410
cmp byte [ebp - 0xd], 0
jne 0x404371
cmp byte [ebp - 0x12], 0
je 0x404410
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40438a
dec ebx
cmp byte [ebx], 0x2e
je 0x404399
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404389
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404410
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4043c6
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 0x404410
cmp byte [ebp - 0xd], 0
je 0x404410
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 0x404410
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 0x406acc
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 0x406b05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403548
jmp 0x406b0e
mov eax, ebx
mov edx, esi
call fcn.004034b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406b18
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 0x406b39
mov al, byte [esp]
jmp 0x406b3b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4091d0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x409216
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00409134
mov eax, dword [ebp - 4]
call fcn.00403880
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40921d
lea eax, [ebp - 4]
call fcn.00403460
ret

Function at 0x4094c4
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.00406538
add esp, 0x104
pop ebx
ret

Function at 0x409608
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 0x409729
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
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 0x409713
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x409661
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x409713
cmp dword [ebp - 0xc], 0
jne 0x409676
mov eax, dword [ebp - 4]
call fcn.00403460
mov bl, 1
jmp 0x409713
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403548
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.0040388c
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x40962d
test eax, eax
jne 0x409713
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4096bd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x409713
jmp 0x4096bd
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x4096d0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x4096ba
cmp dword [ebp - 8], 7
jne 0x4096df
cmp dword [ebp - 0xc], 0
je 0x4096df
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403960
cmp dword [ebp - 8], 7
jne 0x409706
cmp dword [ebp - 0xc], 0
je 0x409706
lea eax, [ebp - 0x10]
call fcn.0040388c
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004034b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409730
lea eax, [ebp - 0x10]
call fcn.00403460
ret
Function at 0x409ff4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e63c
mov eax, esi
mov edx, 8
test al, 1
je 0x40a010
shr eax, 1
xor eax, 0xedb88320
jmp 0x40a012
shr eax, 1
dec edx
jne 0x40a003
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409ffc
pop esi
ret

Function at 0x40a028
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e638], 0
jne 0x40a04b
call fcn.00409ff4
push 1
push 0x40e638
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40a077
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40e63c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40a051
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba08
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40ba10
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40bafa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004094f0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x40bb10
call fcn.0040b900
push 0
mov eax, dword [ebp - 4]
call fcn.00403880
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40bac8
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40ba2a
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040b6bc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00406300
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409998
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040b68c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40582c]
call fcn.004072b4
call fcn.00402f30
jmp 0x40ba2a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004034b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb01
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403484
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403484
ret

Function at 0x40bb4c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d4d0]
cmp dword [eax], 2
jne 0x40bbba
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40bb72
call fcn.0040bb20
jmp 0x40bbcc
lea eax, [esp + 8]
push eax
push 0x40bbd0
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 0x40bbba
call fcn.0040bb20
jmp 0x40bbcc
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x40bbcc
call fcn.0040bb20
add esp, 0x14
ret