joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407bf0
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x445c
push edi
push esi
push ebx
call fcn.0040e2f0
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebx, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.00408910
lea eax, [esp + 0x244e]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov ebp, eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x2f
je 0x407c5e
cmp ax, 0x5c
jne 0x407d00
mov dword [esp + 4], 0x41a4b4
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
lea eax, [esp + 0x230]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__wfindfirst]
mov dword [esp + 0x22c], eax
cmp eax, 0xffffffff
jne 0x407cb0
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x87
mov edi, esp
lea esi, [esp + 0x230]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, ebp
call fcn.00407d20
lea eax, [esp + 0x230]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x22c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x407cb0
mov eax, dword [esp + 0x22c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
jmp 0x407c8e
mov dword [esp + 4], 0x41a4b0
add ebp, 1
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
jmp 0x407c5e

Function at 0x407d20
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040e2f0
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea esi, [esp + 0x1044]
mov dword [esp + 4], 0x41a4b8
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407d60
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x41a4bc
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x407d52
xor eax, eax
mov word [ebx + edi*2], ax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
je 0x407dc0
mov dword [esp + 4], ebx
lea ebx, [esp + 0x1f]
mov dword [esp], ebx
mov dword [esp + 8], 0x1000
call fcn.00408730
mov dword [esp], ebx
call fcn.00407bf0
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
mov esi, dword [sym.imp.msvcrt.dll__wremove]
call esi
test eax, eax
je 0x407d52
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call esi
jmp 0x407d52
Function at 0x407f90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
mov eax, 0x1010
push esi
push ebx
call fcn.0040e2f0
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x41a4f8
mov dword [esp], eax
call fcn.00404700
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00407df0
mov edi, eax
test ebx, ebx
je 0x4080a8
test eax, eax
je 0x40809c
lea esi, [esp + 0x10]
lea esi, [esi]
nop
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x408098
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x408040
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407ff0
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x408075
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x408068
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407ff0
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x1010
mov eax, esi
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x408075
test ebx, ebx
je 0x4080a8
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
test edi, edi
jne 0x40807d
jmp 0x408085
Function at 0x408150
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x20ac
push edi
push esi
push ebx
call fcn.0040e2f0
sub esp, eax
mov eax, dword [esp + 0x20c0]
lea edi, [esp + 0xa0]
lea ebp, [esp + 0x5c]
mov dword [esp + 8], 0x1000
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call fcn.00408910
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov esi, dword [fcn.00416900]
sub esp, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov word [esp + 0x8c], ax
mov dword [esp], 0
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp], 1
mov dword [esp + 0x94], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp], eax
call ebx
mov dword [esp], 2
mov dword [esp + 0x98], eax
call esi
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x408330
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Error_creating_child_process__n
mov dword [esp], str.CreateProcessW
call fcn.00402fc0
add esp, 0x20ac
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408360
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp], 0x2000
mov edi, dword [esp + 0x58]
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x4084c8
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040ec20
test eax, eax
js 0x4084c8
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040ed10
cdq
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, edi
mov dword [esp + 0x1c], edx
xor edx, edx
cmp ecx, edi
mov ecx, dword [esp + 0x1c]
sbb ecx, edx
jb 0x4084c8
add eax, 0xffffffff
mov ebp, ebx
adc edx, 0xffffffff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
cmp eax, 0x2000
mov ecx, edx
mov ebx, 0
mov dword [esp + 0x18], eax
sbb ecx, ebx
mov dword [esp + 0x1c], edx
jae 0x40840e
mov dword [esp + 0x18], 0x2000
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, eax
add ecx, 0xffffe000
adc ebx, 0xffffffff
sub esi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
cmp edi, esi
ja 0x4084c2
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040ec20
test eax, eax
js 0x4084c2
mov eax, dword [esp + 0x50]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fread
cmp eax, esi
jne 0x4084c2
sub eax, edi
mov ebx, ebp
lea esi, [eax + 1]
jmp 0x4084a0
mov eax, dword [esp + 0x54]
lea ebp, [esi - 1]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
lea eax, [ebx + ebp]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4084e0
mov esi, ebp
test esi, esi
jne 0x408480
mov eax, dword [esp + 0x28]
mov ebp, ebx
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
add eax, ebx
adc edx, esi
or esi, ebx
jne 0x4083e6
mov ebx, ebp
lea esi, [esi]
xor esi, esi
xor edi, edi
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x3c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, 0xffffdfff
adc edx, 0xffffffff
xor edi, edi
add esi, eax
adc edi, edx
jmp 0x4084cc
Function at 0x408b50
Capabilities:
Create directory

Disassembly:
push ebp
mov eax, 0x203c
push edi
push esi
push ebx
call fcn.0040e2f0
sub esp, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x20]
mov dword [esp + 4], 8
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
lea edi, [esp + 0x24]
test eax, eax
jne 0x408c70
xor ebx, ebx
lea esi, [esp + 0x30]
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x408bc9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov ebx, dword [esp + 0x30]
mov eax, str.S_1_3_4
mov dword [esp], esi
mov dword [esp + 8], str.D:_A__FA____s_
test ebx, ebx
mov dword [esp + 4], 0x1000
cmovne eax, ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
sub esp, 0x10
test eax, eax
je 0x408d18
mov eax, dword [esp + 0x2050]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
neg eax
add esp, 0x203c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x408cb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408ba6
mov ebp, dword [esp + 0x24]
mov dword [esp], 1
mov dword [esp + 4], ebp
call sub.msvcrt.dll_calloc
mov ebx, eax
mov eax, dword [esp + 0x20]
test ebx, ebx
je 0x408ba6
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
lea esi, [esp + 0x30]
test eax, eax
je 0x408bac
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
sub esp, 8
jmp 0x408bac
mov eax, 0xffffffff
jmp 0x408c5d
Function at 0x40cd70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
test edx, edx
je 0x40cd88
jmp fcn.0040c910
xor eax, eax
ret

Function at 0x40d680
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00416900
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00416900
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40d6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4302a8]
test esi, esi
jle 0x40d800
mov eax, dword [0x4302ac]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40d714
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40d797
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40d700
mov dword [esp], ebx
call fcn.0040e070
mov edi, eax
test eax, eax
je 0x40d827
mov eax, dword [0x4302ac]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040e180
mov edx, dword [0x4302ac]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d807
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40d790
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40d7a0
add dword [0x4302a8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4302ac]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40d790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040d680
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40d71e
mov eax, dword [0x4302ac]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040d680
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040d680
lea esi, [esi]
nop
Function at 0x40dce0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4302c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4302bc]
sub esp, 4
test ebx, ebx
je 0x40dd35
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40dd2e
test esi, esi
je 0x40dd2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40dd10
mov dword [esp], 0x4302c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6f4672dc
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xbb3738
call fcn.6f465de6
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x6f46732b
cmp ecx, 0xffffffff
je 0x6f46732b
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x6f467324
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x6f467324
cmp edx, 0x10000000
jae 0x6f467324
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x6f469b3e
mov dword [ebp - 4], 0xfffffffe
call fcn.6f465e7c
ret 4
add byte [eax], al
pop edx
add byte [eax], al
add byte [edx], al
add edi, edi
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402898
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403f50
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403fac
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x403f9e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403f93
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403f8e
mov eax, 0x64
jmp 0x403fa3
call sub.kernel32.dll_GetLastError
call fcn.00402684
xor eax, eax
jmp 0x403f8e
mov eax, 0x67
jmp 0x403fa3

Function at 0x404054
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404084
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40407a
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402694
or eax, 0xffffffff
jmp 0x404078
mov eax, 0x67
call fcn.00402684
or eax, 0xffffffff
jmp 0x404078

Function at 0x405afc
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
test eax, eax
jle 0x405b35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403374
jmp 0x405b3e
mov eax, ebx
mov edx, esi
call fcn.00403328
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405b48
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
test eax, eax
jle 0x405b69
mov al, byte [esp]
jmp 0x405b6b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406f10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406f95
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 0x406f78
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00407060
mov eax, dword [ebp - 0xc]
call fcn.004035cc
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 0x406f7f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x407170
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.00405684
add esp, 0x104
pop ebx
ret
Function at 0x4072c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
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
test eax, eax
jne 0x40733f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4072f9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40733f
cmp dword [ebp - 0xc], 2
jge 0x40730b
mov eax, dword [ebp - 4]
call fcn.00403294
mov bl, 1
jmp 0x40733f
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 4]
call fcn.004036f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004035d8
push eax
push 0
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x407337
mov bl, 1
jmp 0x40733f
mov eax, dword [ebp - 4]
call fcn.00403294
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407358
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
push 0
push 0
push 0
push 0
push esi
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
test bl, bl
je 0x4073c0
test esi, esi
je 0x407383
cmp byte [esi], 0
jne 0x4073c0
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
je 0x4073b3
cmp eax, 0xea
jne 0x4073c0
cmp byte [esp], 0
jne 0x4073bd
mov bl, 1
jmp 0x4073c0
inc esi
jmp 0x407387
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4073c8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4074bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x40b07c], 2
jne 0x40749b
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 9
push 0
push edi
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4074a7
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x407492
cmp dword [ebp - 0x10], 1
jge 0x407440
mov dword [ebp - 0x10], 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004036f0
xor ebx, ebx
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004035cc
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x407492
mov eax, dword [ebp - 8]
call fcn.004035cc
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004073c8
test al, al
jne 0x40744d
inc ebx
jmp 0x40744d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074c4
lea eax, [ebp - 8]
call fcn.00403294
ret