joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c795c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x5f
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.01c695c0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.01c72820
test ebx, ebx
js 0x1c79681
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.01c80ec0
test al, al
jne 0x1c7969d
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push 0
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1c7968b
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x1c79686
lea ecx, [esp + 0x10]
call fcn.01c80f60
lea ecx, [esp + 0x20]
call fcn.01c72890
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x1c79661
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x1c79658
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.01cdafc0
jmp 0x1c79635

Function at 0x1c796c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea ebx, [esp + 0x10]
push 0x7f
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.01c695c0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.01c72820
mov edi, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x1c79790
mov esi, dword [ebp + 0x14]
test esi, esi
js 0x1c79790
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.01c80ec0
test al, al
jne 0x1c797b7
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push esi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1c797b0
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.01c80f60
lea ecx, [esp + 0x30]
call fcn.01c72890
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.01c87bd3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edi, 0xffffffff
jmp 0x1c79787
lea ecx, [esp + 0x28]
push 0
push esi
push dword [esp + 0x10]
push str.File::Write
call fcn.01cdafc0
jmp 0x1c79744
Function at 0x1c79dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x1c79e3e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x1c79e27
lea eax, [edi + 1]
cmp eax, 2
jb 0x1c79e0b
mov dword [esi], edi
call fcn.01c695f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x1c79e42
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.01c695f0
push dword [esi]
call fcn.01c6ca00
add esp, 4
mov dword [esi], 0
jmp 0x1c79dfc
mov byte [esi + 4], 0
int3
Function at 0x1c84060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x1c58af0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x1c58990
push 0x1d2a130
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1c840da
xor esi, esi
cmp dword [0x1d2a134], 0
jne 0x1c840c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x1d2a138]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1c840c6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.01c9a3d6
int3

Function at 0x1c85940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x1c8597d
mov eax, dword [ebp + 8]
je 0x1c85978
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word [eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x1cf7c98]
inc esi
cmp ecx, esi
jne 0x1c85960
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x1c85980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.01c87ff0
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1d1a34c]
cmp eax, 0xffffffff
jne 0x1c859cb
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push dword [ebp - 0x2018]
call fcn.01c59ef0
add esp, 8
jmp 0x1c859a4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x1c859a4
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.01c8a630
add esp, 0xc
mov ecx, dword [0x1d1a34c]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2018], ecx
push ecx
call fcn.01c59ef0
add esp, 8
test ebx, ebx
je 0x1c85a1a
push ebx
call fcn.01c86cec
add esp, 4
mov esi, 0x101
lea edi, [ebp - 0x2010]
mov eax, dword [0x1d2b178]
mov ecx, dword [0x1d1a468]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c85b71
mov ebx, dword [0x1d2b174]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c85bcd
push 0x1000
push 0x1d2a174
lea eax, [ebp - 0x1810]
push eax
call fcn.01c8a630
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push edi
call fcn.01c8abb0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop word cs:[eax + eax]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x1c85aa0
mov ecx, edi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.01c85be0
add esp, 8
mov ebx, 4
xor eax, eax
nop word [eax + eax]
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
jne 0x1c85b18
add ebx, 8
cmp ebx, 0x804
jne 0x1c85ae0
dec esi
je 0x1c85bb6
test al, 1
lea edi, [ebp - 0x2010]
jne 0x1c85a25
jmp 0x1c859b9
mov dword [ebp - 0x2014], eax
mov eax, esi
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x1c85bc0
add ecx, ebp
add ecx, 0xffffe7f0
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ecx + 8]
jne 0x1c85bc0
mov ecx, dword [ecx + 4]
test ecx, ecx
mov esi, eax
mov eax, dword [ebp - 0x2014]
je 0x1c85af3
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x1cfa1e0]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x1c85af3
push 0x1d2b178
call fcn.01c86cf1
add esp, 4
cmp dword [0x1d2b178], 0xffffffff
jne 0x1c85a46
push 4
call fcn.01c86c86
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.01c71f30
mov dword [0x1d2b174], ebx
push 0x1d2b178
call fcn.01c86d6b
add esp, 4
jmp 0x1c85a46
call fcn.01ccaad0
jmp 0x1c859b9
mov esi, eax
mov eax, dword [ebp - 0x2014]
jmp 0x1c85af3
mov ecx, ebx
call fcn.01c71f40
jmp 0x1c85a5b
Function at 0x1c9550f
Capabilities:
Parse pe header

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

Function at 0x1c95820
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.01c959b7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1c9598f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1c9598f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1c95944
jg 0x1c9587c
test eax, eax
je 0x1c9593a
push 1
push 0x1000
call fcn.01c68dc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1c9589f
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1c95931
push 0x8000
push ebx
call fcn.01c9a447
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1c958c8
jg 0x1c958c3
cmp ecx, 0x1000
jb 0x1c958c8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.01c9ceb5
add esp, 0x10
cmp eax, 0xffffffff
je 0x1c9590d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1c958c3
jl 0x1c958f4
test ecx, ecx
jne 0x1c958b5
push dword [ebp - 0xc]
push ebx
call fcn.01c9a447
push esi
call fcn.01c68d20
add esp, 0xc
xor ebx, ebx
jmp 0x1c9599d
cmp byte [edi + 0x24], 0
je 0x1c95924
cmp dword [edi + 0x20], 5
jne 0x1c95924
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1c9592f
mov ebx, dword [edi + 0x18]
jmp 0x1c95931
xor ebx, ebx
push esi
call fcn.01c68d20
pop ecx
jmp 0x1c9599d
test ecx, ecx
jg 0x1c95906
jl 0x1c95944
test eax, eax
jae 0x1c95906
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01ca60fd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1c95964
cmp byte [edi + 0x1c], 0
je 0x1c95906
jmp 0x1c95995
push ebx
call fcn.01c98c5a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1c95906
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1c9599d
cmp byte [edi + 0x1c], 0
je 0x1c9599a
mov ebx, dword [edi + 0x18]
jmp 0x1c9599d
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01ca60fd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1c987aa
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1ce3354
push esi
call fcn.01ca6fc6
pop ecx
pop ecx
test eax, eax
jne 0x1c987d8
xor al, al
jmp 0x1c98855
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.01c98539
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1c98812
push dword [ebp - 0x210]
call fcn.01c68d20
xor al, al
jmp 0x1c98853
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1c98818
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1c98838
push edx
call fcn.01c986fc
pop ecx
test al, al
je 0x1c98803
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1c98846
mov bl, 1
push dword [ebp - 0x210]
call fcn.01c68d20
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01c87bd3
leave
ret
Function at 0x1c99f69
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 + 0x1d1ad40]
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 0x1c99fa9
cmp byte [ebx], 0xa
jne 0x1c99fa9
or byte [edi + eax + 0x28], 4
jmp 0x1c99fae
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 0x1c9a0ad
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1c9a090
inc eax
cmp dl, 0xd
je 0x1c99fda
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1c9a000
cmp eax, ecx
jae 0x1c9a00e
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 0x1c99fc2
jmp 0x1c9a0ad
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 0x1c9a08b
cmp dword [ebp - 0x10], 0
je 0x1c9a08b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1d1ad40]
test byte [eax + edi + 0x28], 0x48
je 0x1c9a065
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1c9a050
mov byte [esi], dl
jmp 0x1c9a061
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1d1ad40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1c9a0ad
cmp byte [ebp - 1], 0xa
jne 0x1c9a074
cmp esi, ebx
jne 0x1c9a074
mov byte [esi], 0xa
jmp 0x1c9a0ac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01ca60fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1c9a0ad
mov byte [esi], 0xd
jmp 0x1c9a0ac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1d1ad40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1c9a0aa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1c9a0ad
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1c9a0b6
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 + 0x1d1ad40]
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 0x1c9a0fc
cmp word [ebx], dx
jne 0x1c9a0fc
or byte [eax + edi + 0x28], 4
jmp 0x1c9a101
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 0x1c9a264
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 0x1c9a244
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1c9a142
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1c9a178
cmp eax, edx
jae 0x1c9a186
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 0x1c9a11d
jmp 0x1c9a264
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 0x1c9a23f
cmp dword [ebp - 0x18], 0
je 0x1c9a23f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1d1ad40]
test byte [eax + edi + 0x28], 0x48
je 0x1c9a215
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 0x1c9a1d9
mov word [esi], cx
jmp 0x1c9a210
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1d1ad40]
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 + 0x1d1ad40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1d1ad40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1c9a264
pop eax
cmp word [ebp - 4], ax
jne 0x1c9a225
cmp esi, ebx
jne 0x1c9a225
mov word [esi], ax
jmp 0x1c9a261
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01ca60fd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1c9a264
push 0xd
pop eax
jmp 0x1c9a220
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1d1ad40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1c9a25e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1c9a264
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 0x1ca2860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1ca288d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1ca288d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1ca3946
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1ce456c
push str.FlsAlloc
push 0x1f
call fcn.01ca3df9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1ca397a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1cfa1e0]
call esi
jmp 0x1ca3980
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1ca39c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1ce4590
push str.FlsGetValue
push 0x21
call fcn.01ca3df9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1ca39fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1cfa1e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1ca3a03
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1ce45a4
push str.FlsSetValue
push 0x22
call fcn.01ca3df9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1ca3a3d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1cfa1e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1ca7cb7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1cff040]
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.01ca314a
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.01ca314a
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 0x1ca7d2e
cmp word [ecx], dx
je 0x1ca7d2e
mov eax, dword [0x1ce4f64]
push edi
dec eax
push eax
push 0x1ce4e50
call fcn.01ca7ea7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1ca7da1
cmp word [eax], dx
je 0x1ca7da1
mov eax, dword [edi]
test eax, eax
je 0x1ca7d52
cmp word [eax], dx
je 0x1ca7d52
lea eax, [ebp - 0x10]
push eax
call fcn.01ca7f08
jmp 0x1ca7d5b
lea eax, [ebp - 0x10]
push eax
call fcn.01ca8203
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1ca7dcb
mov eax, dword [0x1ce4e4c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1ce4b40
call fcn.01ca7ea7
add esp, 0xc
test al, al
je 0x1ca7dcb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1ca7d96
cmp word [eax], di
je 0x1ca7d96
lea eax, [ebp - 0x10]
push eax
call fcn.01ca7f08
pop ecx
jmp 0x1ca7dcd
lea eax, [ebp - 0x10]
push eax
call fcn.01ca8203
jmp 0x1ca7d93
mov eax, dword [edi]
test eax, eax
je 0x1ca7db8
cmp word [eax], dx
je 0x1ca7db8
lea eax, [ebp - 0x10]
push eax
call fcn.01ca8345
pop ecx
jmp 0x1ca7dcb
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 0x1ca7e96
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.01ca8437
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1ca7e96
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1ca7e96
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1ca7e96
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1ca7e23
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.01ca3c3c
test ebx, ebx
je 0x1ca7e91
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.01ca3c3c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1ca7e96
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 0x1ca7e96
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01cb042b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1ca7e98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c87bd3
leave
ret
Function at 0x1ca853d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.01ca314a
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 0x1ca85ac
cmp esi, dword [ebp - 4]
je 0x1ca85a7
cmp dword [ebp + 0xc], 0
je 0x1ca85a7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1ca8584
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.01ca8606
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1ca85ae
xor eax, eax
inc eax
jmp 0x1ca85ae
xor eax, eax
pop edi
pop esi
leave
ret