joyce8/EMBER2024-capa huggingface dataset:
Function at 0x680000
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 0x680131
push esi
call fcn.00683145
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.00672080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x680131
push 0
push ebp
call fcn.006723a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00672260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x68008b
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.006722f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x680121
push 0x698918
push edi
call fcn.006813f0
push eax
push ebx
push esi
call fcn.0067ff60
push 0x6988f8
push edi
call fcn.006813f0
push eax
push ebx
push esi
call fcn.0067ff60
push 0x6988d8
push edi
call fcn.006813f0
push eax
push ebx
push esi
call fcn.0067ff60
push 0x6988c0
push edi
call fcn.006813f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0067ff60
push 0x6988a0
push edi
call fcn.006813f0
push eax
push ebx
push esi
call fcn.0067ff60
push 0x698888
push edi
call fcn.006813f0
push eax
push ebx
push esi
call fcn.0067ff60
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 0x6811b0
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.00681140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00681140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00681140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00681140
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 0x681bfa
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 0x681c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x681c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x681c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4019dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e004]
jne 0x4019e6
repz ret
jmp fcn.00401d5f

Function at 0x4067c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403bd7
and dword [ebp - 4], 0
cmp dword [0x40f974], 0
mov ebx, eax
jne 0x406874
push 0x40ba20
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406925
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ba14
push edi
call esi
test eax, eax
je 0x406925
push eax
call fcn.00403b65
mov dword [esp], 0x40ba04
push edi
mov dword [0x40f974], eax
call esi
push eax
call fcn.00403b65
mov dword [esp], 0x40b9f0
push edi
mov dword [0x40f978], eax
call esi
push eax
call fcn.00403b65
mov dword [esp], 0x40b9d4
push edi
mov dword [0x40f97c], eax
call esi
push eax
call fcn.00403b65
pop ecx
mov dword [0x40f984], eax
test eax, eax
je 0x406874
push 0x40b9bc
push edi
call esi
push eax
call fcn.00403b65
pop ecx
mov dword [0x40f980], eax
mov eax, dword [0x40f980]
cmp eax, ebx
je 0x4068cc
cmp dword [0x40f984], ebx
je 0x4068cc
push eax
call fcn.00403be0
push dword [0x40f984]
mov esi, eax
call fcn.00403be0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4068cc
test edi, edi
je 0x4068cc
call esi
test eax, eax
je 0x4068c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068c3
test byte [ebp - 0xc], 1
jne 0x4068cc
or dword [ebp + 0x10], 0x200000
jmp 0x406905
mov eax, dword [0x40f978]
cmp eax, ebx
je 0x406905
push eax
call fcn.00403be0
pop ecx
test eax, eax
je 0x406905
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406905
mov eax, dword [0x40f97c]
cmp eax, ebx
je 0x406905
push eax
call fcn.00403be0
pop ecx
test eax, eax
je 0x406905
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f974]
call fcn.00403be0
pop ecx
test eax, eax
je 0x406925
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406927
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10013b90
jl 0x10013b87
cmp dword [ebp + 0xc], 0
ja 0x10013b90
xor eax, eax
xor edx, edx
jmp 0x10013cc7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10013bb2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.10013cd0
jmp 0x10013cc7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.1000e000
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10013c21
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10009390
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100116c0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10010410
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.100115b0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10013cb8
mov ecx, dword [ebp - 8]
call fcn.1000f0d0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10013c91
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1002f139
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x10013c8f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10013cc7
jmp 0x10013c3d
cmp dword [ebp - 4], 0
jbe 0x10013cb8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1002f139
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001a400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048bbb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1005d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x54]
call fcn.1001e1c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.10019f80
lea ecx, [ebp - 0x54]
call fcn.10009a70
push eax
push str.UserName
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x1006acd8]
lea ecx, [ebp - 0x28]
call fcn.1000a240
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.10019ca0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x74]
call fcn.1001e0f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x54]
call fcn.1001e360
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.1000b660
mov ecx, dword [ebp - 0x2c]
add ecx, 0x180
call fcn.10009a70
push eax
push 0x1004ae7c
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [0x1006acd8]
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.10019e00
lea ecx, [ebp - 0x54]
call fcn.10009a70
push eax
push str.SampleName
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x1006acd8]
mov edx, dword [ebp - 0x2c]
movsd xmm0, qword [edx + 0x28]
comisd xmm0, xmmword [0x1004b1f0]
jbe 0x1001a575
mov eax, dword [ebp - 0x2c]
sub esp, 8
movsd xmm0, qword [eax + 0x28]
movsd qword [esp], xmm0
lea ecx, [ebp - 0x94]
call fcn.10018d00
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.10009a70
push eax
push 0x1004ae90
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [0x1006acd8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1000b660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000b4d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1000b660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100285fc
mov esp, ebp
pop ebp
ret
Function at 0x1003306b
Capabilities:
Parse pe header

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

Function at 0x10037cd9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004ff68
push 0x1004ff60
push str.FlsAlloc
push 0x1f
call fcn.10037ba1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10037d0d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a130]
call esi
jmp 0x10037d13
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10037d57
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004ff78
push 0x1004ff70
push str.FlsGetValue
push 0x21
call fcn.10037ba1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10037d8e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10037d96
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004ff80
push 0x1004ff78
push str.FlsSetValue
push 0x22
call fcn.10037ba1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10037dd0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004a130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10039857
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10028610
mov eax, dword [0x1005d034]
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.1003830c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10039899
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100399f5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100287a0
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 + 0x1006b7f0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003a854
mov ecx, dword [esi*4 + 0x1006b7f0]
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 0x100399ee
cmp eax, dword [ecx + edi + 0x24]
jne 0x100399ee
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 0x100399ee
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003a854
add esp, 0x14
test edx, edx
jl 0x100399ee
jg 0x10039964
test eax, eax
jb 0x100399ee
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100399ee
jl 0x1003997e
cmp dword [ebp - 0x1008], eax
ja 0x100399ee
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003999c
test ebx, ebx
je 0x100399d5
cmp ecx, edi
jae 0x100399d5
mov al, byte [ecx]
cmp al, 0xd
jne 0x100399b6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100399c2
cmp byte [ecx + 1], 0xa
jne 0x100399c2
inc ecx
jmp 0x100399c2
movzx eax, al
movsx eax, byte [eax + 0x1005d310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003999c
cmp edx, ebx
jne 0x1003999c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100399f3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100285fc
leave
ret
Function at 0x10039cec
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 + 0x1006b7f0]
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 0x10039d2c
cmp byte [ebx], 0xa
jne 0x10039d2c
or byte [edi + eax + 0x28], 4
jmp 0x10039d31
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 0x10039e30
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10039e13
inc eax
cmp dl, 0xd
je 0x10039d5d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10039d83
cmp eax, ecx
jae 0x10039d91
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 0x10039d45
jmp 0x10039e30
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 0x10039e0e
cmp dword [ebp - 0x10], 0
je 0x10039e0e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1006b7f0]
test byte [eax + edi + 0x28], 0x48
je 0x10039de8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10039dd3
mov byte [esi], dl
jmp 0x10039de4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1006b7f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10039e30
cmp byte [ebp - 1], 0xa
jne 0x10039df7
cmp esi, ebx
jne 0x10039df7
mov byte [esi], 0xa
jmp 0x10039e2f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003a872
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10039e30
mov byte [esi], 0xd
jmp 0x10039e2f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1006b7f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10039e2d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10039e30
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10039e39
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 + 0x1006b7f0]
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 0x10039e7f
cmp word [ebx], dx
jne 0x10039e7f
or byte [eax + edi + 0x28], 4
jmp 0x10039e84
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 0x10039fe7
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 0x10039fc7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10039ec5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10039efb
cmp eax, edx
jae 0x10039f09
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 0x10039ea0
jmp 0x10039fe7
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 0x10039fc2
cmp dword [ebp - 0x18], 0
je 0x10039fc2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1006b7f0]
test byte [eax + edi + 0x28], 0x48
je 0x10039f98
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 0x10039f5c
mov word [esi], cx
jmp 0x10039f93
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1006b7f0]
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 + 0x1006b7f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1006b7f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10039fe7
pop eax
cmp word [ebp - 4], ax
jne 0x10039fa8
cmp esi, ebx
jne 0x10039fa8
mov word [esi], ax
jmp 0x10039fe4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003a872
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10039fe7
push 0xd
pop eax
jmp 0x10039fa3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1006b7f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10039fe1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10039fe7
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 0x1003cf02
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 0x1003cf9f
push ebx
push esi
call fcn.1003cecb
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.1003ce5f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003cf4c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003cf9e
push edi
push eax
call fcn.1003aa53
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003cf6c
call fcn.100378c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003cf9d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003ce5f
add esp, 0x20
test eax, eax
jne 0x1003cf8b
push edi
call fcn.100378c2
jmp 0x1003cf93
push ebx
call fcn.100378c2
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 0x10041c38
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10035c1c
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 0x10041ca7
cmp esi, dword [ebp - 4]
je 0x10041ca2
cmp dword [ebp + 0xc], 0
je 0x10041ca2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10041c7f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004178a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10041ca9
xor eax, eax
inc eax
jmp 0x10041ca9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10041d0e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005d034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10035c1c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10035c1c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10041d85
cmp word [ecx], dx
je 0x10041d85
mov eax, dword [0x1005064c]
push edi
dec eax
push eax
push 0x10050538
call fcn.10041cad
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10041df8
cmp word [eax], dx
je 0x10041df8
mov eax, dword [edi]
test eax, eax
je 0x10041da9
cmp word [eax], dx
je 0x10041da9
lea eax, [ebp - 0x10]
push eax
call fcn.10041690
jmp 0x10041db2
lea eax, [ebp - 0x10]
push eax
call fcn.1004172b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10041e22
mov eax, dword [0x10050534]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10050228
call fcn.10041cad
add esp, 0xc
test al, al
je 0x10041e22
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10041ded
cmp word [eax], di
je 0x10041ded
lea eax, [ebp - 0x10]
push eax
call fcn.10041690
pop ecx
jmp 0x10041e24
lea eax, [ebp - 0x10]
push eax
call fcn.1004172b
jmp 0x10041dea
mov eax, dword [edi]
test eax, eax
je 0x10041e0f
cmp word [eax], dx
je 0x10041e0f
lea eax, [ebp - 0x10]
push eax
call fcn.10041645
pop ecx
jmp 0x10041e22
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10041eed
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10041b32
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10041eed
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10041eed
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10041eed
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10041e7a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10037ed6
test ebx, ebx
je 0x10041ee8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10037ed6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10041eed
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10041eed
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100459f2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10041eef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100285fc
leave
ret