joyce8/EMBER2024-capa huggingface dataset:
Function at 0x707250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71b808
push 0x70b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x707329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x707329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0070a1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x707329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x707329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x70732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00707351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x707d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x707d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x707d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x707d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x707d94
push eax
push esi
call fcn.0070a20b
add esp, 8
pop esi
ret 0x10

Function at 0x707da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x707e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x707e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x720320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00709dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x707dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x707e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x707ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x707eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x720320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00709dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x707eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x707e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x708000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x708131
push esi
call fcn.0070b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006fa080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x708131
push 0
push ebp
call fcn.006fa3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006fa260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x70808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006fa2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x708121
push 0x720918
push edi
call fcn.007093f0
push eax
push ebx
push esi
call fcn.00707f60
push 0x7208f8
push edi
call fcn.007093f0
push eax
push ebx
push esi
call fcn.00707f60
push 0x7208d8
push edi
call fcn.007093f0
push eax
push ebx
push esi
call fcn.00707f60
push 0x7208c0
push edi
call fcn.007093f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00707f60
push 0x7208a0
push edi
call fcn.007093f0
push eax
push ebx
push esi
call fcn.00707f60
push 0x720888
push edi
call fcn.007093f0
push eax
push ebx
push esi
call fcn.00707f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7091b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00709140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00709140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00709140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00709140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x709bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x709c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x71b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x709c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x709c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x454f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3d000]
push edi
jmp 0x454f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454f70
mov eax, 1
add ebx, ebx
jne 0x454f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454fa4
jne 0x454fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454fc3
dec eax
add ebx, ebx
jne 0x454fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x454f88
add ebx, ebx
jne 0x454fbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x455015
xor ecx, ecx
sub eax, 3
jb 0x454fdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45504a
sar eax, 1
mov ebp, eax
jmp 0x454fe6
add ebx, ebx
jne 0x454fe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454fb4
inc ecx
add ebx, ebx
jne 0x454ff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454fb4
add ebx, ebx
jne 0x455001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454ff6
jne 0x455012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454ff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x455034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x455026
jmp 0x454f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x455034
add edi, ecx
jmp 0x454f76
pop esi
mov edi, esi
mov ecx, 0xe06
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x455052
cmp byte [edi], 0x11
jne 0x455052
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 0x455057
lea edi, [esi + 0x52000]
mov eax, dword [edi]
or eax, eax
je 0x4550cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56e04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56f00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x455084
mov ecx, edi
jns 0x4550b3
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 + 0x56f08]
or eax, eax
je 0x4550c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4550a1
call dword [esi + 0x56f04]
mov ebp, dword [esi + 0x56f0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x455103
sub esp, 0xffffff80
jmp 0x41d1f8

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 0x40350d
Capabilities:
Terminate process

Disassembly:
jmp 0x4516b4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4516c5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405745
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 0x403625
Capabilities:
Query environment variable

Disassembly:
jmp 0x498dc1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x498dd2
pop esi
ret
push ebx
push edi
push esi
call fcn.00498ca8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403ea9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x498dfa
push ebx
push esi
push edi
call fcn.00405542
add esp, 0xc
push 0
call fcn.00406046
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4055fb
Capabilities:
Parse pe header

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

Function at 0x43e690
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0040367f
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 0x43e6cf
sub eax, 1
je 0x43e6ca
sub eax, 1
je 0x43e6c6
xor eax, eax
leave
ret
push 3
jmp 0x43e6d1
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x484a89
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d52
mov eax, dword [0x4ca040]
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.00405c6d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48ea7e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48ebda
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405dbc
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 + 0x4cd940]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004031bb
mov ecx, dword [esi*4 + 0x4cd940]
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 0x48ebd3
cmp eax, dword [ecx + edi + 0x24]
jne 0x48ebd3
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 0x48ebd3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031bb
add esp, 0x14
test edx, edx
jl 0x48ebd3
jg 0x48eb49
test eax, eax
jb 0x48ebd3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48ebd3
jl 0x48eb63
cmp dword [ebp - 0x1008], eax
ja 0x48ebd3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48eb81
test ebx, ebx
je 0x48ebba
cmp ecx, edi
jae 0x48ebba
mov al, byte [ecx]
cmp al, 0xd
jne 0x48eb9b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48eba7
cmp byte [ecx + 1], 0xa
jne 0x48eba7
inc ecx
jmp 0x48eba7
movzx eax, al
movsx eax, byte [eax + 0x4ca390]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48eb81
cmp edx, ebx
jne 0x48eb81
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48ebd8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f9f
leave
ret
Function at 0x48f319
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 + 0x4cd940]
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 0x48f359
cmp byte [ebx], 0xa
jne 0x48f359
or byte [edi + eax + 0x28], 4
jmp 0x48f35e
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 0x48f45d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48f440
inc eax
cmp dl, 0xd
je 0x48f38a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48f3b0
cmp eax, ecx
jae 0x48f3be
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 0x48f372
jmp 0x48f45d
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 0x48f43b
cmp dword [ebp - 0x10], 0
je 0x48f43b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cd940]
test byte [eax + edi + 0x28], 0x48
je 0x48f415
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48f400
mov byte [esi], dl
jmp 0x48f411
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cd940]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48f45d
cmp byte [ebp - 1], 0xa
jne 0x48f424
cmp esi, ebx
jne 0x48f424
mov byte [esi], 0xa
jmp 0x48f45c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401901
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48f45d
mov byte [esi], 0xd
jmp 0x48f45c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cd940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48f45a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48f45d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48f4b9
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 + 0x4cd940]
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 0x48f4ff
cmp word [ebx], dx
jne 0x48f4ff
or byte [eax + edi + 0x28], 4
jmp 0x48f504
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 0x48f667
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 0x48f647
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48f545
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48f57b
cmp eax, edx
jae 0x48f589
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 0x48f520
jmp 0x48f667
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 0x48f642
cmp dword [ebp - 0x18], 0
je 0x48f642
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cd940]
test byte [eax + edi + 0x28], 0x48
je 0x48f618
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 0x48f5dc
mov word [esi], cx
jmp 0x48f613
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cd940]
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 + 0x4cd940]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cd940]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48f667
pop eax
cmp word [ebp - 4], ax
jne 0x48f628
cmp esi, ebx
jne 0x48f628
mov word [esi], ax
jmp 0x48f664
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401901
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48f667
push 0xd
pop eax
jmp 0x48f623
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cd940]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48f661
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48f667
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 0x497377
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ca040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4973c2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049782f
test al, al
jne 0x4973bc
sub edx, 2
cmp edx, edi
jne 0x4973a2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4973e4
lea eax, [edi + 2]
cmp edx, eax
je 0x4973e4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00496f70
add esp, 0x10
jmp 0x4974de
push esi
lea ecx, [ebp - 0x255]
call fcn.0049782f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x497427
push dword [ebp - 0x25c]
jmp 0x4973d4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497464
cmp word [ebp - 0x226], 0
je 0x497485
cmp word [ebp - 0x226], ax
jne 0x497464
cmp word [ebp - 0x224], 0
je 0x497485
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00496f70
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4974d1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49743e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4974b9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4974de
push 0x496958
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004053ad
add esp, 0x10
jmp 0x4974ae
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f9f
leave
ret

Function at 0x49ce40
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004041b5
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 0x49ceaf
cmp esi, dword [ebp - 4]
je 0x49ceaa
cmp dword [ebp + 0xc], 0
je 0x49ceaa
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49ce87
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049c868
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49ceb1
xor eax, eax
inc eax
jmp 0x49ceb1
xor eax, eax
pop edi
pop esi
leave
ret