joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403381
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4071f0
call fcn.00403534
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x408acc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40313c
cmp eax, esi
jne 0x40312f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40313f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403116
xor esi, esi
inc esi
mov eax, dword [0x408ac8]
cmp eax, esi
jne 0x403152
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x403181
mov eax, dword [0x408ac8]
test eax, eax
jne 0x40317b
mov dword [0x408ac8], esi
push 0x4011e0
push 0x4011d4
call fcn.00403078
pop ecx
pop ecx
test eax, eax
je 0x403181
jmp 0x4032a5
mov dword [0x408060], esi
mov eax, dword [0x408ac8]
cmp eax, esi
jne 0x4031a5
push 0x4011d0
push 0x4011c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x408ac8], 2
cmp dword [ebp - 0x20], ebx
jne 0x4031b2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408ad0], ebx
je 0x4031d3
push 0x408ad0
call fcn.004034a9
pop ecx
test eax, eax
je 0x4031d3
push ebx
push 2
push ebx
call dword [0x408ad0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x4032a5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x40323d
cmp cx, bx
je 0x4031f8
cmp dword [ebp - 0x1c], ebx
jne 0x40323d
movzx ecx, word [eax]
cmp cx, bx
je 0x40320d
cmp cx, 0x20
ja 0x40320d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x4031f8
test byte [ebp - 0x40], 1
je 0x403219
movzx ecx, word [ebp - 0x3c]
jmp 0x40321c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40805c], eax
cmp dword [0x408050], ebx
jne 0x403282
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x40324e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x4031e2
cmp dword [0x408060], ebx
jne 0x403290
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40805c]
jmp 0x4032b1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00403579
ret
call fcn.00403727
jmp 0x4030d9
Function at 0x403d19
Capabilities:
Get file size

Disassembly:
push 0x20
push 0x407278
call fcn.00403534
mov edi, ecx
mov dword [ebp - 0x28], edi
cmp dword [edi + 0x10], 0xffffffff
je 0x403e51
call fcn.00403a6f
test eax, eax
je 0x403e51
xor ebx, ebx
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
test byte [edi + 0xc], 0x14
mov esi, 0x200000
je 0x403d60
mov esi, 0x2d00000
cmp eax, 0xffffffff
je 0x403e41
cmp eax, esi
jbe 0x403e41
mov dword [ebp - 0x20], eax
push ebx
push ebx
push ebx
push 4
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x403e41
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x403e17
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, ebx
shr esi, 1
mov ecx, eax
sub ecx, esi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], eax
jae 0x403dc8
mov edx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp byte [edx], 0xa
jne 0x403db5
cmp dword [ebp - 0x1c], eax
jne 0x403dcd
mov dword [ebp - 0x1c], ecx
sub eax, dword [ebp - 0x1c]
mov esi, eax
push esi
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x403e10
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
je 0x403e3f
push 0
push 0
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
mov eax, dword [0x40839c]
cmp eax, ebx
je 0x403e51
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00403579
ret
Function at 0x404340
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 9
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.004060ca
cmp eax, edi
jl 0x4044d7
push dword [ebp - 0x214]
mov esi, 0x100
push dword [0x4083a0]
lea eax, [ebp - 0x20c]
push 0x401cd4
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00403fb7
add esp, 0x20
cmp eax, edi
jl 0x4044d7
test dword [0x4083a8], 4
je 0x404497
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x214], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x404464
push esi
push edi
push edi
push 0x4015c8
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.00403e96
cmp eax, edi
jl 0x4044d7
lea eax, [ebp - 0x208]
push eax
push 0x401ccc
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00403fb7
add esp, 0x1c
cmp eax, edi
jl 0x4044d7
test dword [0x4083a8], 8
je 0x4044d3
mov eax, dword [ebp - 0x218]
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x401ccc
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00403fb7
add esp, 0x1c
cmp eax, edi
jge 0x4044de
cmp eax, 0x8007007a
jne 0x4044f4
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x21c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403390
leave
ret 0x10
Function at 0x404b43
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x420], ebx
cmp byte [0x4083a5], bl
jne 0x404b84
call fcn.00404a0e
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov edi, 0xfde9
push edi
mov dword [ebp - 0x40c], eax
call esi
mov dword [ebp - 0x410], eax
cmp eax, 0x400
jbe 0x404bd5
push eax
call fcn.00405473
pop ecx
mov dword [ebp - 0x40c], eax
cmp eax, ebx
jne 0x404bd5
mov dword [ebp - 0x408], 0x8007000e
jmp 0x404c9f
push ebx
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
push ebx
push edi
call esi
mov esi, dword [ebp - 0x414]
cmp dword [esi + 0x10], 0xffffffff
je 0x404c9f
call fcn.00403a6f
test eax, eax
jne 0x404c18
mov dword [ebp - 0x408], 0x80240fff
jmp 0x404c9f
push 2
push ebx
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404c39
call fcn.0040502e
mov dword [ebp - 0x408], eax
jmp 0x404c8f
push ebx
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c2c
test dword [esi + 0xc], 8
je 0x404c6c
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [0x4087cc], ebx
je 0x404c8f
test byte [esi + 0xc], 0x14
mov eax, 0x200000
je 0x404c84
mov eax, 0x2d00000
cmp edi, eax
jbe 0x404c8f
mov ecx, esi
call fcn.00403d19
mov eax, dword [0x40839c]
cmp eax, ebx
je 0x404c9f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x404]
pop edi
cmp dword [ebp - 0x40c], eax
je 0x404ce2
push dword [ebp - 0x40c]
call fcn.004054c1
mov dword [esp], 0x401f50
push 2
lea eax, [ebp - 0x418]
push ebx
push eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 1
call fcn.004049a4
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403390
leave
ret 8
Function at 0x404cfd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
inc esi
push edi
mov edi, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0xc], esi
jne 0x404d53
test byte [edi + 0xc], 0x10
jne 0x404d65
mov dword [ebp - 0x408], esi
jmp 0x404e90
cmp dword [ebp + 0xc], 2
jne 0x404d65
test byte [edi + 0xc], 4
jne 0x404d65
cmp dword [ebp + 8], 2
ja 0x404d48
test byte [edi + 0xc], 3
je 0x404ea7
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
ja 0x404ea7
xor eax, eax
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x414], ebx
add esp, 0xc
and dword [ebp - 0x410], 0
mov esi, 0x200
lea ebx, [ebp - 0x404]
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
mov ecx, edi
push dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.0040450a
mov dword [ebp - 0x408], eax
test eax, eax
jge 0x404e29
cmp eax, 0x8007007a
jne 0x404e57
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x410], 0
jne 0x404e29
push 2
push 0x800
call fcn.00405517
test eax, eax
je 0x404e29
mov ebx, eax
xor eax, eax
inc eax
mov esi, 0x800
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x410], eax
jmp 0x404db1
test dword [edi + 0xc], 1
je 0x404e39
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dword [edi + 0xc], 2
je 0x404e57
sub esi, dword [ebp - 0x414]
mov ecx, edi
push esi
push ebx
call fcn.00404b43
mov dword [ebp - 0x408], eax
xor esi, esi
inc esi
cmp dword [ebp - 0x40c], 0
je 0x404e90
push ebx
call fcn.004054c1
and dword [ebp - 0x41c], 0
mov dword [esp], 0x401fe0
push 2
lea eax, [ebp - 0x41c]
push 0
push eax
mov dword [ebp - 0x418], esi
call fcn.004049a4
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403390
leave
ret 0x18
mov dword [ebp - 0x408], esi
jmp 0x404e5a

Function at 0x4059f7
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x405a44
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x405a57
cmp dword [ebp + 8], 2
je 0x405a41
lea eax, [ebp - 4]
push eax
push 2
push 1
push edi
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x405a44
jmp 0x405a57
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x405a5e
call fcn.0040502e
mov edi, eax
cmp dword [ebp - 4], esi
je 0x405a6c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x405cb1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
jmp 0x405cff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x405cdc
cmp eax, 5
jne 0x405d1b
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0x405db7
push dword [ebp + 0x14]
call fcn.00405c7c
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0x405dc8
inc ebx
push edi
call esi
cmp eax, 0xffffffff
je 0x405ccc
test al, 0x10
jne 0x405dc8
mov dword [ebp - 4], 0x80070057
jmp 0x405dc8
cmp eax, 3
je 0x405d29
cmp eax, 2
jne 0x405db7
mov eax, dword [ebp + 0xc]
lea esi, [edi + eax*2 - 2]
jmp 0x405d3f
cmp word [esi], 0x5c
je 0x405d43
test eax, eax
jbe 0x405d45
dec esi
dec esi
dec eax
cmp esi, edi
ja 0x405d32
test eax, eax
je 0x405d0f
cmp esi, edi
je 0x405d0f
cmp eax, 2
jbe 0x405d6f
push dword [ebp + 0x14]
xor ecx, ecx
push dword [ebp + 0x10]
mov word [esi], cx
push eax
push edi
call fcn.00405cb1
push 0x5c
pop ecx
mov dword [ebp - 4], eax
mov word [esi], cx
test eax, eax
jl 0x405dc8
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
inc ebx
jmp 0x405da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x405d8a
cmp eax, 5
jne 0x405db0
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0x405db7
push dword [ebp + 0x14]
call fcn.00405c7c
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0x405dc8
inc ebx
push 0
push edi
call esi
test eax, eax
je 0x405d7a
jmp 0x405dc8
cmp eax, 0xb7
je 0x405dc8
test eax, eax
jle 0x405dc5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405dd7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x405ee7
push dword [ebp + 8]
call fcn.00405c37
test eax, eax
je 0x405ee7
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], edi
push edi
jmp 0x405e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x405e19
cmp eax, 5
jne 0x405e4f
mov ecx, dword [ebp + 0xc]
inc ecx
cmp dword [ebp - 4], ecx
jae 0x405ed7
push dword [ebp + 0x10]
call fcn.00405c7c
mov ebx, eax
cmp ebx, 0x800704c7
je 0x405eec
inc dword [ebp - 4]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x405e09
jmp 0x405eec
cmp eax, 0xb7
je 0x405eec
cmp eax, 3
jne 0x405ed7
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x405e65
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00405473
mov edi, eax
pop ecx
test edi, edi
jne 0x405e8d
mov ebx, 0x8007000e
jmp 0x405eec
push dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edi
call fcn.00403e5c
movzx ebx, word [edi + 6]
xor eax, eax
push edi
mov word [edi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x405ec2
mov ebx, 0x80070003
jmp 0x405eec
push dword [ebp + 0x10]
mov word [edi + 6], bx
push dword [ebp + 0xc]
push esi
push edi
call fcn.00405cb1
mov ebx, eax
jmp 0x405eec
test eax, eax
jle 0x405ed3
and eax, 0xffff
or eax, 0x80070000
jmp 0x405ed3
mov ebx, 0x80070057
push edi
call fcn.004054c1
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4061de
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax + esi + 1]
cmp ecx, dword [ebp + 0xc]
jb 0x406210
mov ebx, 0x8007007a
jmp 0x40623a
test eax, eax
jne 0x40621d
call fcn.0040502e
mov ebx, eax
jmp 0x40623a
push 0x5c
pop ecx
lea eax, [edi + eax*2]
mov word [eax], cx
lea ecx, [esi + esi + 2]
push ecx
push dword [ebp + 0x10]
add eax, 2
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x4069db
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp edi, esi
jne 0x4069f4
cmp ebx, esi
jne 0x4069f8
cmp ebx, esi
jge 0x406a29
mov dword [ebp - 4], 0x80070057
test edi, edi
je 0x406a0c
test ebx, ebx
jle 0x406a0c
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x406a15
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
pop esi
test eax, eax
je 0x406a22
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret 0x14
lea eax, [ebx + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
test eax, eax
je 0x406a5d
jle 0x406a58
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x406a6c
test edi, edi
jne 0x406a71
test ecx, ecx
jbe 0x406a71
mov dword [ebp - 4], 0x800700ea
cmp dword [ebp - 4], esi
jl 0x406a99
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], 2
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edx
je 0x406a9c
cmp edx, 1
jne 0x406a90
cmp dword [ebp + 0x10], 2
je 0x406a9c
mov dword [ebp - 4], 0x8007065d
jmp 0x406a9c
mov edx, dword [ebp + 8]
cmp dword [ebp - 4], 0x800700ea
jne 0x406ab9
xor eax, eax
shr ecx, 1
cmp edx, 7
sete al
inc eax
add ecx, eax
mov esi, ecx
jmp 0x4069ff
cmp dword [ebp - 4], esi
jl 0x4069ff
shr ecx, 1
mov esi, ecx
je 0x406ad0
cmp word [edi + esi*2 - 2], 0
je 0x406ad1
inc esi
cmp edx, 7
jne 0x406ae4
cmp esi, 2
jl 0x406ae3
cmp word [edi + esi*2 - 4], 0
je 0x406ae4
inc esi
cmp esi, ebx
jle 0x406af4
mov dword [ebp - 4], 0x800700ea
jmp 0x4069ff
dec esi
xor ecx, ecx
lea eax, [edi + esi*2]
mov word [eax], cx
cmp edx, 7
jne 0x406a0c
mov word [eax - 2], cx
jmp 0x406a0c
Function at 0x406b14
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ebx, 0x80070057
cmp dword [ebp + 0x14], esi
je 0x406b9e
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x406b64
cmp eax, 0xea
je 0x406b64
cmp eax, esi
jle 0x406b98
and eax, 0xffff
or eax, 0x80070000
jmp 0x406b98
mov ebx, dword [ebp - 4]
shr ebx, 1
inc ebx
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.00405473
mov edi, eax
pop ecx
cmp edi, esi
jne 0x406b82
mov ebx, 0x8007000e
jmp 0x406b9e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004069db
mov ebx, eax
cmp ebx, esi
jge 0x406ba7
push edi
call fcn.004054c1
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x406bb0
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x406bbc
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x406bc8
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18

Function at 0x406e4e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
mov edi, ecx
mov esi, 0x80070057
je 0x406f0c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x406e8f
mov esi, 0x8007000e
jmp 0x406efc
inc esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x406ea8
call fcn.0040502e
mov esi, eax
jmp 0x406efc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x406eea
cmp eax, 2
je 0x406eea
cmp eax, 3
je 0x406ee6
cmp eax, 4
je 0x406ed2
jbe 0x406ecb
cmp eax, 6
jbe 0x406eea
mov esi, 0x80070057
jmp 0x406efc
neg edi
sbb edi, edi
and edi, 0x7ff8fffb
add edi, 0x80070005
mov esi, edi
jmp 0x406efc
xor esi, esi
jmp 0x406efc
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fffb
add ebx, 0x80070005
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x406f0c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x405a00
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 0x405a66
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.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a50
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a6d
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40aab8
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 0x40aaf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aafa
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b1ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b024
mov eax, dword [0x45609c]
cmp byte [eax], 0
je 0x40b228
mov eax, dword [0x455eb8]
call fcn.004029a4
call fcn.00402824
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.00408318
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 0x40b270
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b25e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x455e68]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x457664]
call fcn.00404f14
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