joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fc8
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
or cl, byte [ebx - 0x2708b73d]
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x406f63
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x406f63
and eax, 0xff
mov dword [esi], edi
cmp eax, 2
jne 0x406f69
or byte [esi + 4], 0x40
jmp 0x406f78
cmp eax, 3
jne 0x406f78
or byte [esi + 4], 8
add al, 8
jmp 0x406f78
inc ebx
add eax, 0x95e74ba
sub ecx, esi
xor esi, 0x14b434
test eax, eax
jb 0x406fb4
mov ecx, dword [0x40d410]
and esi, edi
not eax
add eax, ebp
or esi, dword [0x40de00]
shl ecx, 0x1b
shr eax, 0x1e
mov edx, esp
test eax, 0xad16059
jb 0x406f33
xor eax, 0x6959e48
mov edx, eax
neg ecx
rol esi, 7
call fcn.00408cc0
add edi, eax
sal bh, 1
fld st(1)
mov byte [edi], pe_nt_image_headers32
add dword [0xf8030000], ebx
test eax, edi
jo 0x406f70
call fcn.004084d9
add byte [eax], al
rol esi, 0x15
neg edx
mov ecx, esp
and esi, edi
add esi, eax
mov esi, dword [0x40f4a8]
mov esi, 0x144aafe
xor esi, ebx
rol esi, 1
xor esi, eax
mov eax, esp
or eax, eax
xor esi, esi
test edx, ebx
jo 0x406f7f
mov esi, edx
sub ecx, esp
mov dword [0x40ff06], 0x17dc77b
rol esi, 7
xor esi, esp
dec eax
sub esi, eax
and esi, edi
mov eax, eax
mov edx, edi
sub eax, edx
shl eax, 1
rol esi, 3
sub esi, 0xa2a058e
sub dword [0x40fece], 0x36632a0
mov ecx, 0x272ea071
call fcn.00408cc0
test esp, edx
jo 0x40702a
inc esi
xchg esi, edx
salc
dec esi
shr eax, 0x11
mov dword [0x40f8d1], ecx
call fcn.004048cd
rol eax, 0x14
inc esi
loop 0x40702a
shr eax, 8
and edx, dword [0x40f49c]
ror eax, 0x19
neg esi
xor esi, ebx
sub esi, eax
xor ecx, ebp
call fcn.00404e67
or esi, edi
dec ecx
xchg esi, edx
mov esi, esi
mov edi, dword [0x40d5f8]
dec edi
rol esi, 0xf
add eax, 0x144082d8
not esi
mov ecx, 0x3ac6279a
neg eax
xchg eax, eax
mov dword [0x40eb9c], 0x361adb56
inc eax
shr edx, 5
inc eax
rol eax, 0x19
not eax
shl eax, 0x12
call fcn.00408d37
neg edi
test eax, esi
jb 0x407035
loop 0x407082
mov esi, eax
xor esi, 0x1680c71c
xor esi, eax
xor ecx, edx
mov esi, 0x1af3dc6c
ror esi, 0x1d
xor edx, eax
and esi, edi
call fcn.00404e67
mov esi, 0x85ddffd
mov ebx, dword [0x40fad7]
test esp, esi
jo 0x407075
mov esi, eax
dec edi
add edx, eax
xor esi, eax
call fcn.00408157
rol ebx, 0x17
xor esi, eax
add esi, eax
ror esi, 4
or ecx, dword [0x40e448]
xor edx, 0xe486f70
neg eax
mov ebx, esp
dec esi
mov ebx, esp
mov ecx, 0x1239cb40
Function at 0x40711b
Capabilities:
Encrypt data using chaskey

Disassembly:
mov dword [0x40ee54], ecx
shr esi, 0x1e
call fcn.004041fe
neg esi
xchg esi, eax
rol esi, 0x10
xchg esi, esi
invalid
sub dword [0x40d81c], ecx
call fcn.00405550
inc esi
loop 0x407104
not esi
xor esi, ecx
sub esi, eax
ror ebx, 0x1f
shr eax, 0x1d
call fcn.00404e67
test ecx, 0x48aadc4
jo 0x407174
dec esi
mov esi, 0x2b98eed1
and esi, edi
sub eax, eax
xor ecx, dword [0x40f19a]
neg eax
and esi, edi
test edx, ebp
jo 0x407110
add bh, dh
fsub dword [ecx]
inc byte [ebp + 0x33b670ea]
rol ecx, 1
into
add eax, dword [ecx + 0x26f1d0f3]
or byte [ebx + 0x70cc85fc], cl
push eax
xor edx, ecx
ror esi, 3
xor ebx, 0x826f1d0
mov edi, esp
test esp, ecx
jo 0x4071bb
not esi
sub dword [0x40d63e], ecx
sub edi, esp
cld
and edx, dword [0x40f9a3]
mov ecx, esi
test eax, 0x13a93e9e
jo 0x407151
or esi, edi
add esi, eax
xor ecx, dword [0x40ddd2]
sub ebx, ecx
ror edx, 0xa
and ecx, eax
shl edx, 0x16
or edx, 0x2aef4de9
and esi, edi
not esi
mov eax, esp
push str.KERNEL32.dll
rol edx, 6
mov dword [0x410b06], ecx
sub ecx, dword [0x40d727]
call fcn.00408cc0
sub edx, dword [0x40fbc3]
sbb eax, dword [eax]
add byte [ebx], ch
adc eax, 0x40fbc3
inc esi
mov dword [0x410a24], ecx
call fcn.00401e3b
xor eax, 0x7a2cf82
sub dword [0x410bcc], 0x1ea64253
add edi, eax
sub edi, dword [0x40fa28]
xor esi, eax
xor dword [0x410bba], esi
invalid
invalid
invalid
Function at 0xac11b0
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.00ac1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ac1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ac1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ac1140
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 0xac1bfa
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 0xac1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xad387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xac1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xac1c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x40147e
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xchg cl, dl
ror al, cl
xor al, cl
xchg cl, dl
xor al, ah
stosb byte es:[edi], al
inc dx
loop 0x401483
ret

Function at 0x401494
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xor al, ah
xchg cl, dl
xor al, cl
rol al, cl
xchg cl, dl
stosb byte es:[edi], al
inc dx
loop 0x401499
ret
Function at 0x10001b7e
Capabilities:
Enumerate pe sections

Disassembly:
push 0x24
mov eax, 0x1004c696
call fcn.100035de
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x10001cb8
mov esi, dword [ecx + 0x24]
mov eax, esi
mov edi, esi
shr eax, 0x1d
shr edi, 0x1e
mov ebx, esi
and eax, 1
shr ebx, 0x1f
and edi, 1
test esi, 0x2000000
jne 0x10001cbe
jmp 0x10001bf1
lea eax, [edi + eax*2]
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x1018e850]
mov dword [ebp - 0x20], eax
test esi, 0x4000000
je 0x10001c11
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10001c71
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push 0x10056648
jmp 0x10001cd1
mov dword [ebp - 4], 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0xf
push 0x10056648
jmp 0x10001cd1
call fcn.10003543
ret
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x4b
push 0x10056648
push eax
call fcn.10005241
int3

Function at 0x10002537
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, esi
cmp dword [ebp + 0xc], esi
jle 0x1000257a
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 4], 0x6d9
push 5
movsx eax, byte [esi + eax]
inc esi
cdq
idiv dword [ebp - 4]
mov eax, ecx
add dl, 0x4f
xor byte [ebx + edi], dl
inc edi
xor edx, edx
pop ecx
div ecx
neg edx
sbb edx, edx
and esi, edx
cmp edi, dword [ebp + 0xc]
jl 0x1000254a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100026f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1018e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x48], ebx
je 0x100027a4
push 0x1c
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x4c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x100027a4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push 8
pop edi
push edi
push dword [ebp - 0x30]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100027a4
mov dword [ebp - 0x10], 0xb848
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xe0ff0000
cmp byte [esi + 0x54], bl
je 0x1000276c
mov ecx, dword [esi + 0x50]
lea eax, [ebp - 0x10]
push 0xc
pop edi
jmp 0x1000277c
push dword [esi + 0x4c]
mov bl, 1
call fcn.10002295
pop ecx
mov ecx, eax
lea eax, [ebp - 0xe]
push edi
push ecx
push eax
call fcn.10004510
add esp, 0xc
mov byte [esi + 0x54], bl
lea eax, [ebp - 0x10]
push 0
push 0xc
push eax
push dword [esi + 0x48]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne al
jmp 0x100027a6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003535
leave
ret
Function at 0x100027b5
Capabilities:
Contain obfuscated stackstrings
Get system information on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x1018e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], 0x61657243
push ebx
push 0x10001cdd
sub esp, 0x18
mov dword [ebp - 0x10], 0x72506574
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0x7365636f
mov ecx, esp
mov word [ebp - 8], 0x4173
mov byte [ebp - 6], bl
push eax
call fcn.100011df
sub esp, 0x18
mov ecx, esp
push str.kernel32.dll
call fcn.100011df
call fcn.1000244e
add esp, 0x38
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x168], 2
jle 0x100028e6
mov esi, 0x104
lea eax, [ebp - 0x14c]
push esi
push ebx
push eax
call fcn.10005010
add esp, 0xc
lea eax, [ebp - 0x14c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movaps xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionRubad_allocation]
lea eax, [ebp - 0x150]
push eax
push 0xf003f
movups xmmword [ebp - 0x48], xmm0
lea eax, [ebp - 0x48]
mov word [ebp - 0x18], 0x6e
movaps xmm0, xmmword [0x1004d2b0]
push ebx
movups xmmword [ebp - 0x38], xmm0
push eax
movaps xmm0, xmmword [0x1004d2c0]
push 0x80000001
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100028c3
push esi
lea eax, [ebp - 0x14c]
push eax
push 1
push ebx
push str.RuntimeBroker
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x6c656873
push eax
mov dword [ebp - 0x154], 0x78656c
call fcn.10001464
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10003535
leave
ret

Function at 0x1000f669
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1018e880]
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 0x100304b4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10030909
test al, al
jne 0x100304ae
sub edx, 2
cmp edx, edi
jne 0x10030494
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100304d6
lea eax, [edi + 2]
cmp edx, eax
je 0x100304d6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10030130
add esp, 0x10
jmp 0x100305d0
push esi
lea ecx, [ebp - 0x255]
call fcn.10030909
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 0x10030519
push dword [ebp - 0x25c]
jmp 0x100304c6
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 0x10030556
cmp word [ebp - 0x226], 0
je 0x10030577
cmp word [ebp - 0x226], ax
jne 0x10030556
cmp word [ebp - 0x224], 0
je 0x10030577
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10030130
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100305c3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10030530
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100305ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100305d0
push 0x1002fb80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.1003a1a0
add esp, 0x10
jmp 0x100305a0
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.10003535
leave
ret
Function at 0x10031fc0
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 0x1003205d
push ebx
push esi
call fcn.10031f7c
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.10031eb9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003200a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003205c
push edi
push eax
call fcn.1002f5bc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003202a
call fcn.1002fb2e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003205b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10031eb9
add esp, 0x20
test eax, eax
jne 0x10032049
push edi
call fcn.1002fb2e
jmp 0x10032051
push ebx
call fcn.1002fb2e
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 0x10032060
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10032071
pop esi
ret
push ebx
push edi
push esi
call fcn.10031f7c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1002f5bc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10032099
push ebx
push esi
push edi
call fcn.10004510
add esp, 0xc
push 0
call fcn.1002fb2e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10032988
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003230e

Function at 0x1003337b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004fd6c
push 0x1004fd64
push str.FlsAlloc
push 0x1f
call fcn.10033049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100333af
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004d19c]
call esi
jmp 0x100333b5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100333f9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004fd7c
push 0x1004fd74
push str.FlsGetValue
push 0x21
call fcn.10033049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033430
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004d19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10033438
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004fd84
push 0x1004fd7c
push str.FlsSetValue
push 0x22
call fcn.10033049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033472
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004d19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10039dab
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002d398
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 0x10039e1a
cmp esi, dword [ebp - 4]
je 0x10039e15
cmp dword [ebp + 0xc], 0
je 0x10039e15
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10039df2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100398fd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10039e1c
xor eax, eax
inc eax
jmp 0x10039e1c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10039e81
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1018e880]
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.1002d398
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.1002d398
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 0x10039ef8
cmp word [ecx], dx
je 0x10039ef8
mov eax, dword [0x10050a3c]
push edi
dec eax
push eax
push 0x10050928
call fcn.10039e20
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10039f6b
cmp word [eax], dx
je 0x10039f6b
mov eax, dword [edi]
test eax, eax
je 0x10039f1c
cmp word [eax], dx
je 0x10039f1c
lea eax, [ebp - 0x10]
push eax
call fcn.10039803
jmp 0x10039f25
lea eax, [ebp - 0x10]
push eax
call fcn.1003989e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10039f95
mov eax, dword [0x10050924]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10050618
call fcn.10039e20
add esp, 0xc
test al, al
je 0x10039f95
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10039f60
cmp word [eax], di
je 0x10039f60
lea eax, [ebp - 0x10]
push eax
call fcn.10039803
pop ecx
jmp 0x10039f97
lea eax, [ebp - 0x10]
push eax
call fcn.1003989e
jmp 0x10039f5d
mov eax, dword [edi]
test eax, eax
je 0x10039f82
cmp word [eax], dx
je 0x10039f82
lea eax, [ebp - 0x10]
push eax
call fcn.1003979a
pop ecx
jmp 0x10039f95
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 0x1003a060
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10039ca5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003a060
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003a060
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003a060
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10039fed
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10033709
test ebx, ebx
je 0x1003a05b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10033709
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003a060
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 0x1003a060
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100416f7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003a062
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003535
leave
ret
Function at 0x100428e4
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 + 0x1018fea0]
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 0x10042924
cmp byte [ebx], 0xa
jne 0x10042924
or byte [edi + eax + 0x28], 4
jmp 0x10042929
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 0x10042a28
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10042a0b
inc eax
cmp dl, 0xd
je 0x10042955
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004297b
cmp eax, ecx
jae 0x10042989
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 0x1004293d
jmp 0x10042a28
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 0x10042a06
cmp dword [ebp - 0x10], 0
je 0x10042a06
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1018fea0]
test byte [eax + edi + 0x28], 0x48
je 0x100429e0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100429cb
mov byte [esi], dl
jmp 0x100429dc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1018fea0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10042a28
cmp byte [ebp - 1], 0xa
jne 0x100429ef
cmp esi, ebx
jne 0x100429ef
mov byte [esi], 0xa
jmp 0x10042a27
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10042736
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10042a28
mov byte [esi], 0xd
jmp 0x10042a27
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1018fea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10042a25
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10042a28
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret