joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141a70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x150008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x141ab2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00141db6
mov esp, ebp
pop ebp
ret
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x151b40], esi
test esi, esi
je 0x141a9f
push 0x2c
lea ecx, [ebp - 0x30]
push 0
push ecx
call fcn.001476b0
add esp, 0xc
push 0
push 0x2c
lea edx, [ebp - 0x30]
push edx
push 0
call esi
test eax, eax
js 0x141a9f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
inc eax
mul dword [ebp - 0x28]
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov esi, edx
mul dword [ebp - 0x3c]
push 0
push ecx
push edx
push eax
call fcn.0014b2e0
mov dword [ebp - 0x48], eax
mov edi, edx
mov edx, ebx
mov eax, esi
shrd edx, eax, 0x14
shr eax, 0x14
push eax
push edx
push 7
push esi
push ebx
push 0xf
push str._n____Address_space_size:____I64d_bytes___I64d_Mb__n
call fcn.00141e01
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, edi
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
push 7
push edi
push eax
push 0xf
push str.____Free_space_size:_______I64d_bytes___I64d_Mb__n_n
call fcn.00141e01
add esp, 0x38
cmp edi, esi
ja 0x141b6b
jb 0x141a9f
cmp dword [ebp - 0x48], ebx
jb 0x141a9f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00141db6
mov esp, ebp
pop ebp
ret
Function at 0x141b80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3cc
mov eax, dword [0x150008]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
push esi
push edi
push str.__DumpIt___v1.3.2.20110401___One_click_memory_memory_dumper_n
call fcn.00141060
add esp, 4
push 0x14e348
call fcn.00141e01
add esp, 4
push str.__Copyright__c__2010___2011__MoonSols__http:__www.moonsols.com__n_n
call fcn.00141e01
add esp, 4
call fcn.001417e0
test al, al
jne 0x141bf6
push str._______Error:_Cannot_import_functions._n
call fcn.00141000
add esp, 4
call fcn.00142140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00141db6
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], ebx
mov word [esp + 0x48], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x141c54
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x141c43
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], ebx
jne 0x141c7d
push str._______Error:_This_application_requires_Administrator_privileges._n
call fcn.00141000
add esp, 4
call fcn.00142140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00141db6
mov esp, ebp
pop ebp
ret
call fcn.00141a70
test al, al
jne 0x141caf
push str._______You_dont_have_enough_space_on_disk_to_dump_the_physical_memory._n
call fcn.00141000
add esp, 4
call fcn.00142140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00141db6
mov esp, ebp
pop ebp
ret
push 0x3b0
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.001476b0
add esp, 0xc
lea edi, [esp + 0x94]
mov dword [esp + 0x28], 0x300021
call fcn.00141870
push str._____Destination_
call fcn.00141060
add esp, 4
mov eax, edi
push eax
push 0x14e5f8
call fcn.001410c0
add esp, 8
call fcn.00141120
test eax, eax
je 0x141d9f
call fcn.001419c0
mov esi, eax
cmp esi, 0xffffffff
je 0x141d9f
push str._____Processing...
call fcn.00141060
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x3b0
lea edx, [esp + 0x2c]
push edx
push 0x3b0
mov eax, edx
push eax
push 0x22c000
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x141d65
push str.Failed._r_n_r_n
call fcn.00141e01
add esp, 4
push str._______Error:_DeviceIoControl____Cannot_send_IOCTL._r_n_r_n
call fcn.00141e01
add esp, 4
jmp 0x141d93
cmp dword [esp + 0x24], ebx
jl 0x141d81
cmp dword [esp + 0x20], 0x57333244
jne 0x141d81
push str.Success._n
call fcn.001410c0
jmp 0x141d8b
push str.Failed._n
call fcn.00141000
add esp, 4
call fcn.00142140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00141720
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00141db6
mov esp, ebp
pop ebp
ret
Function at 0x141db6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x150008]
jne 0x141dc0
repz ret
jmp fcn.001422d9

Function at 0x148f75
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x150008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00145809
and dword [ebp - 0x14], 0
cmp dword [0x151b20], 0
mov dword [ebp - 0x18], eax
jne 0x149028
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1490d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1490d0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x151b20], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x151b24], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x151b28], eax
call edi
push eax
call esi
mov dword [0x151b30], eax
test eax, eax
je 0x149028
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x151b2c], eax
mov eax, dword [0x151b2c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x149081
cmp dword [0x151b30], ecx
je 0x149081
push eax
call esi
push dword [0x151b30]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x149081
test ebx, ebx
je 0x149081
call edi
test eax, eax
je 0x149078
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x149078
test byte [ebp - 8], 1
jne 0x149081
or dword [ebp + 0x10], 0x200000
jmp 0x1490b4
mov eax, dword [0x151b24]
cmp eax, dword [ebp - 0x18]
je 0x1490b4
push eax
call esi
test eax, eax
je 0x1490b4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1490b4
mov eax, dword [0x151b28]
cmp eax, dword [ebp - 0x18]
je 0x1490b4
push eax
call esi
test eax, eax
je 0x1490b4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x151b20]
call esi
test eax, eax
je 0x1490d0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1490d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00141db6
leave
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, reloc.comdlg32.dll_CommDlgExtendedError
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4122f340
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x4122f50d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x4122f36a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4122f371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4122f360
mov eax, 1
add ebx, ebx
jne 0x4122f383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4122f378
jne 0x4122f394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4122f378
xor ecx, ecx
sub eax, 3
jb 0x4122f3a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4122f41a
mov ebp, eax
add ebx, ebx
jne 0x4122f3b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4122f3c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4122f3e4
inc ecx
add ebx, ebx
jne 0x4122f3d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4122f3c5
jne 0x4122f3e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4122f3c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4122f404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4122f3f5
jmp 0x4122f366
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4122f404
add edi, ecx
jmp 0x4122f366
pop esi
mov edi, esi
mov ecx, 0x8b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4122f422
cmp byte [edi], 0xa
jne 0x4122f422
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4122f427
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x4122f49f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f438]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f690]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4122f454
mov ecx, edi
jns 0x4122f483
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f694]
or eax, eax
je 0x4122f499
mov dword [ebx], eax
add ebx, 4
jmp 0x4122f471
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4122f4d0
cmp al, 0xef
ja 0x4122f4c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4122f4a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4122f4b2
mov ebp, dword [esi + 0x2f698]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4122f504
sub esp, 0xffffff80
jmp 0x41201495
Function at 0x403218
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403818
Capabilities:
Query or enumerate registry value

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

Function at 0x40452c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41804c], 0
je 0x40458d
cmp word [0x418220], 0xd7b2
jne 0x404555
cmp dword [0x418228], 0
jbe 0x404555
mov eax, 0x41821c
call dword [0x418238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x4045a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404b18
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407976
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x407997
cmp ebx, 3
je 0x407997
cmp ebx, 0x7b
je 0x407997
mov eax, esi
call fcn.00407918
test al, al
jne 0x40799b
xor eax, eax
jmp 0x40799d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40a1d0
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 0x40a209
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040479c
jmp 0x40a212
mov eax, ebx
mov edx, esi
call main
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a21c
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 0x40a23e
movzx eax, byte [esp]
jmp 0x40a240
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a8d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a748
mov eax, dword [0x417c60]
cmp byte [eax], 0
je 0x40a94c
mov eax, dword [0x417b64]
call fcn.004032b0
call fcn.00402f00
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.00407ad4
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 0x40a994
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a982
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x417b40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41a7f8]
call fcn.00405958
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 0x40c27c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004046ac
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404b18
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40c2c1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040479c
jmp 0x40c2da
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404d44
push ebx
mov eax, dword [esi]
call fcn.00404b18
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x413bd0
Capabilities:
Set 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 ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0041381c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404b18
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x413c2f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x417be4]
mov dl, 1
mov eax, dword [0x413714]
call fcn.0040aa90
call fcn.0040410c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x413c38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b18
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x413c90
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x417ce8]
mov dl, 1
mov eax, dword [0x413714]
call fcn.0040aa90
call fcn.0040410c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041384c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4036e8
Capabilities:
Terminate process

Disassembly:
jmp 0x457304
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x457315
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a65
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403805
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a3164
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a3175
pop esi
ret
push ebx
push edi
push esi
call fcn.004a304b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040e3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a319d
push ebx
push esi
push edi
call fcn.00405853
add esp, 0xc
push 0
call fcn.004063b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405916
Capabilities:
Parse pe header

Disassembly:
jmp 0x446410
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44644f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44644f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44644f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44644f
cmp dword [ecx + 0x74], 0xe
jbe 0x44644f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4442ab
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403864
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4442ea
sub eax, 1
je 0x4442e5
sub eax, 1
je 0x4442e1
xor eax, eax
leave
ret
push 3
jmp 0x4442ec
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48af7c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48afbb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48afbb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48afbb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48afbb
cmp dword [ecx + 0x74], 0xe
jbe 0x48afbb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49d087
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e10
mov eax, dword [0x4d6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405fb5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49d0c9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49d225
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040611d
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d9980]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040336e
mov ecx, dword [esi*4 + 0x4d9980]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x49d21e
cmp eax, dword [ecx + edi + 0x24]
jne 0x49d21e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49d21e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040336e
add esp, 0x14
test edx, edx
jl 0x49d21e
jg 0x49d194
test eax, eax
jb 0x49d21e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49d21e
jl 0x49d1ae
cmp dword [ebp - 0x1008], eax
ja 0x49d21e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49d1cc
test ebx, ebx
je 0x49d205
cmp ecx, edi
jae 0x49d205
mov al, byte [ecx]
cmp al, 0xd
jne 0x49d1e6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49d1f2
cmp byte [ecx + 1], 0xa
jne 0x49d1f2
inc ecx
jmp 0x49d1f2
movzx eax, al
movsx eax, byte [eax + 0x4d6388]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49d1cc
cmp edx, ebx
jne 0x49d1cc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49d223
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403139
leave
ret
Function at 0x49d964
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d9980]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49d9a4
cmp byte [ebx], 0xa
jne 0x49d9a4
or byte [edi + eax + 0x28], 4
jmp 0x49d9a9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49daa8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49da8b
inc eax
cmp dl, 0xd
je 0x49d9d5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49d9fb
cmp eax, ecx
jae 0x49da09
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49d9bd
jmp 0x49daa8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49da86
cmp dword [ebp - 0x10], 0
je 0x49da86
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d9980]
test byte [eax + edi + 0x28], 0x48
je 0x49da60
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49da4b
mov byte [esi], dl
jmp 0x49da5c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d9980]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49daa8
cmp byte [ebp - 1], 0xa
jne 0x49da6f
cmp esi, ebx
jne 0x49da6f
mov byte [esi], 0xa
jmp 0x49daa7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49daa8
mov byte [esi], 0xd
jmp 0x49daa7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d9980]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49daa5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49daa8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret