joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2ef1c5b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3f63183d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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 0x10001000
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10015004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push esi
push edi
push 0x10013ab8
push str.gotest_bin_e.bin
push eax
mov edi, edx
call fcn.10002e56
add esp, 0xc
test eax, eax
jne 0x10001069
cmp dword [ebp - 8], eax
je 0x10001069
push dword [edi]
call fcn.1000313d
push dword [ebp - 8]
mov esi, eax
push dword [edi]
push 1
push esi
call fcn.10003083
push dword [ebp - 8]
call fcn.10002d1b
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call sym.wps_et_dll.dll_void___stdcall__force_link_krpt_void_
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.10002c5b
int3

Function at 0x10001071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10015004]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x1000116e
push esi
push edi
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x31e
call fcn.10001000
push 0xc
push 0x100162d8
xor edi, edi
mov esi, eax
push edi
mov dword [ebp - 0x430], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.10001fd0
push 0xa
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [0x100162e0]
call fcn.10002977
mov ecx, 0xc7
lea edi, [ebp - 0x428]
rep movsd dword es:[edi], dword [esi]
add esp, 0x1c
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x173732
mov edi, eax
call fcn.10002c92
mov esi, dword [ebp - 0x42c]
pop ecx
test esi, esi
jle 0x10001152
call fcn.10002c71
cdq
idiv esi
mov ecx, dword [ebp - 0x430]
inc dl
mov al, byte [ebp + ecx - 0x428]
xor al, dl
xor al, 0x32
mov byte [ebp + ecx - 0x428], al
inc ecx
mov dword [ebp - 0x430], ecx
cmp ecx, esi
jl 0x10001125
push 0x100162e4
push esi
lea eax, [ebp - 0x428]
push eax
push dword [0x100162e0]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call sym.wps_et_dll.dll_void___stdcall__force_link_krpt_void_
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10005eaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10005d20
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 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret
Function at 0x4bca90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
add byte [eax], al
add byte [eax + 0x51], dl

Function at 0x4bca9d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
add byte [eax], al
add byte [eax + 0x51], dl
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x4bcb63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x4bcb30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x4bcb1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x4bcb12
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x4bcb33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004bd230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4bcb59
push eax
call fcn.004bd2c6
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.004bd2c6
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004bd230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4bcbaf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.004bd38d
jmp 0x4bcbb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4bcbe0
test eax, eax
je 0x4bcbdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.004bd32a
push ebx
call fcn.004bd2c6
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004bc6d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24

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 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401c66
pop dword [ebp - 0x1c]
mov eax, 0x3da2973a
add eax, 0xc29d852c
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xbedde14f
sub dword [ebp - 0x2c], 0x708b9c04
mov dword [ebp - 0x28], 0xf5f30321
sub dword [ebp - 0x28], 0xc3bfb6dc
mov dword [ebp - 0x24], 0x3669c5d6
add dword [ebp - 0x24], 0x15e27e58
mov dword [ebp - 0x20], 0x16a39f26
add dword [ebp - 0x20], 0xe95c60da
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xe53858c2
sub eax, 0xe4f8286e
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x5e96128d
add dword [ebp - 0x2c], 0x15dc56c9
mov dword [ebp - 0x28], 0xde591a57
sub dword [ebp - 0x28], 0x9cecb8e2
mov dword [ebp - 0x24], 0xb75bd4e
add dword [ebp - 0x24], 0x57f9af1e
mov dword [ebp - 0x20], 0x750ddfc3
sub dword [ebp - 0x20], 0x750ddfc3
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x6fc2487a
add eax, 0x907de7b2
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x378be
push 0
call eax
mov ecx, 0xfac927d5
sub ecx, 0xfac8db92
xor ebx, ebx
add ebx, eax
mov edx, 0x479f0243
add edx, 0xb8a16dbd
add edx, dword [ebp - 0x1c]
mov edi, 0x20aa5213
sub edi, 0x10cc92d3
sub dword [ebp - 0x14], ecx
mov esi, dword [edx]
mov dword [ebp - 0xc], 0x2d30e3e5
xor esi, edi
sub dword [ebp - 8], 0x1e9dbad8
mov dword [ebx], esi
xor dword [ebp - 0x10], esi
add ebx, 0xf3dd8a4
sub ebx, 0xf3dd8a0
add edx, 0x4583c19a
sub edx, 0x4583c196
loop 0x401d8a
add eax, 0x123df
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8dd69d1d
add ecx, 0x726962e3
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

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 0x4010d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], str.C:Program_FilesVMwareVMware_Tools_vmtoolsd.exe
mov dword [ebp - 0x18], str.C:Program_FilesOracleVirtualBox_Guest_Additions_
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 0xc], edx
jmp 0x401104
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
je 0x40112d
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40112b
mov al, 1
jmp 0x40112f
jmp 0x4010fb
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40dbcf
Capabilities:
Parse pe header

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

Function at 0x410c0f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421430
push 0x421428
push str.FlsAlloc
push 0x1f
call fcn.00410a7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410c43
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e134]
call esi
jmp 0x410c49
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410c8d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421440
push 0x421438
push str.FlsGetValue
push 0x21
call fcn.00410a7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410cc4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410ccc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421448
push 0x421440
push str.FlsSetValue
push 0x22
call fcn.00410a7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410d06
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4134f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407180
mov eax, dword [0x42b018]
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.0041213a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413535
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413691
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d240
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 + 0x42c930]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004144f0
mov ecx, dword [esi*4 + 0x42c930]
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 0x41368a
cmp eax, dword [ecx + edi + 0x24]
jne 0x41368a
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 0x41368a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004144f0
add esp, 0x14
test edx, edx
jl 0x41368a
jg 0x413600
test eax, eax
jb 0x41368a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41368a
jl 0x41361a
cmp dword [ebp - 0x1008], eax
ja 0x41368a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413638
test ebx, ebx
je 0x413671
cmp ecx, edi
jae 0x413671
mov al, byte [ecx]
cmp al, 0xd
jne 0x413652
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41365e
cmp byte [ecx + 1], 0xa
jne 0x41365e
inc ecx
jmp 0x41365e
movzx eax, al
movsx eax, byte [eax + 0x42b2b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413638
cmp edx, ebx
jne 0x413638
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41368f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406417
leave
ret
Function at 0x413988
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 + 0x42c930]
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 0x4139c8
cmp byte [ebx], 0xa
jne 0x4139c8
or byte [edi + eax + 0x28], 4
jmp 0x4139cd
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 0x413acc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413aaf
inc eax
cmp dl, 0xd
je 0x4139f9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413a1f
cmp eax, ecx
jae 0x413a2d
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 0x4139e1
jmp 0x413acc
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 0x413aaa
cmp dword [ebp - 0x10], 0
je 0x413aaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42c930]
test byte [eax + edi + 0x28], 0x48
je 0x413a84
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413a6f
mov byte [esi], dl
jmp 0x413a80
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413acc
cmp byte [ebp - 1], 0xa
jne 0x413a93
cmp esi, ebx
jne 0x413a93
mov byte [esi], 0xa
jmp 0x413acb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041450e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413acc
mov byte [esi], 0xd
jmp 0x413acb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42c930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413ac9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413acc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413ad5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42c930]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413b1b
cmp word [ebx], dx
jne 0x413b1b
or byte [eax + edi + 0x28], 4
jmp 0x413b20
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x413c83
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x413c63
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x413b61
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413b97
cmp eax, edx
jae 0x413ba5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413b3c
jmp 0x413c83
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413c5e
cmp dword [ebp - 0x18], 0
je 0x413c5e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42c930]
test byte [eax + edi + 0x28], 0x48
je 0x413c34
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413bf8
mov word [esi], cx
jmp 0x413c2f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42c930]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42c930]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42c930]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x413c83
pop eax
cmp word [ebp - 4], ax
jne 0x413c44
cmp esi, ebx
jne 0x413c44
mov word [esi], ax
jmp 0x413c80
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041450e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x413c83
push 0xd
pop eax
jmp 0x413c3f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42c930]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x413c7d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x413c83
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e5f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x417efc
push ebx
push esi
call fcn.00417e28
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00416b1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417ea9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417efb
push edi
push eax
call fcn.00410f65
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417ec9
call fcn.0041079b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417efa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416b1a
add esp, 0x20
test eax, eax
jne 0x417ee8
push edi
call fcn.0041079b
jmp 0x417ef0
push ebx
call fcn.0041079b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41a529
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004104b0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a598
cmp esi, dword [ebp - 4]
je 0x41a593
cmp dword [ebp + 0xc], 0
je 0x41a593
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a570
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a07b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a59a
xor eax, eax
inc eax
jmp 0x41a59a
xor eax, eax
pop edi
pop esi
leave
ret