joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464b14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00474681
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 0x464b53
sub eax, 1
je 0x464b4e
sub eax, 1
je 0x464b4a
xor eax, eax
leave
ret
push 3
jmp 0x464b55
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x465d65
Capabilities:
Parse pe header

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

Function at 0x47c079
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x495724
push 0x49571c
push str.FlsAlloc
push 0x1f
call fcn.0047bea4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47c0ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x490378]
call esi
jmp 0x47c0b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47c0f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x495734
push 0x49572c
push str.FlsGetValue
push 0x21
call fcn.0047bea4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47c12e
push dword [ebp + 8]
mov ecx, esi
call dword [0x490378]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x47c136
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49573c
push 0x495734
push str.FlsSetValue
push 0x22
call fcn.0047bea4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47c170
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x490378]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x47f3f6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ab0fc]
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 0x47f441
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0047f591
test al, al
jne 0x47f43b
sub edx, 2
cmp edx, edi
jne 0x47f421
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x47f463
lea eax, [edi + 2]
cmp edx, eax
je 0x47f463
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047f342
add esp, 0x10
jmp 0x47f55d
push esi
lea ecx, [ebp - 0x255]
call fcn.0047f591
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 0x47f4a6
push dword [ebp - 0x25c]
jmp 0x47f453
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 0x47f4e3
cmp word [ebp - 0x226], 0
je 0x47f504
cmp word [ebp - 0x226], ax
jne 0x47f4e3
cmp word [ebp - 0x224], 0
je 0x47f504
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047f342
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x47f550
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47f4bd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x47f538
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47f55d
push 0x47f172
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00473250
add esp, 0x10
jmp 0x47f52d
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.00464f0a
leave
ret

Function at 0x47fe73
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47fe84
pop esi
ret
push ebx
push edi
push esi
call fcn.0047fe3c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0047a5e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47feac
push ebx
push esi
push edi
call fcn.00466cb0
add esp, 0xc
push 0
call fcn.0047a5ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48027c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047fec1
Function at 0x4826d7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047a2c0
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 0x482746
cmp esi, dword [ebp - 4]
je 0x482741
cmp dword [ebp + 0xc], 0
je 0x482741
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48271e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00482229
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x482748
xor eax, eax
inc eax
jmp 0x482748
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4827ad
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ab0fc]
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.0047a2c0
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.0047a2c0
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 0x482824
cmp word [ecx], dx
je 0x482824
mov eax, dword [0x495d8c]
push edi
dec eax
push eax
push 0x495c78
call fcn.0048274c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x482897
cmp word [eax], dx
je 0x482897
mov eax, dword [edi]
test eax, eax
je 0x482848
cmp word [eax], dx
je 0x482848
lea eax, [ebp - 0x10]
push eax
call fcn.0048212f
jmp 0x482851
lea eax, [ebp - 0x10]
push eax
call fcn.004821ca
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4828c1
mov eax, dword [0x495c74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x495968
call fcn.0048274c
add esp, 0xc
test al, al
je 0x4828c1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x48288c
cmp word [eax], di
je 0x48288c
lea eax, [ebp - 0x10]
push eax
call fcn.0048212f
pop ecx
jmp 0x4828c3
lea eax, [ebp - 0x10]
push eax
call fcn.004821ca
jmp 0x482889
mov eax, dword [edi]
test eax, eax
je 0x4828ae
cmp word [eax], dx
je 0x4828ae
lea eax, [ebp - 0x10]
push eax
call fcn.004820e4
pop ecx
jmp 0x4828c1
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 0x48298c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004825d1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48298c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x48298c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x48298c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x482919
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0047c312
test ebx, ebx
je 0x482987
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0047c312
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48298c
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 0x48298c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048637d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x48298e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464f0a
leave
ret
Function at 0x487ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x487ccd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x487ccd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1a001200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1a02400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov esi, eax
test esi, esi
jle 0x1a00128b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20c]
movq qword [ebp - 0x214], xmm0
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.1a0020a0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1a0012a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
mov bx, ax
shr bx, 0xf
push 0x11
and bl, 1
call esi
mov cl, bl
mov edi, 0x8000
or cl, 2
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0x12
mov dword [ebp - 4], edx
call esi
mov ebx, dword [ebp - 4]
mov dx, ax
mov cl, bl
or cl, 4
and dx, di
pop edi
movzx eax, cl
movzx ecx, bl
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1a0020f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1a02400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1a02b6b8]
push esi
cmp eax, 0xffffffff
je 0x1a00237d
test eax, eax
jne 0x1a002353
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x1a01d78c
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.HncFoundation.dll_HncLoadLibrary]
mov dword [0x1a02b6b8], eax
test eax, eax
je 0x1a00237d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._HE_close_0
push eax
call esi
mov dword [0x1a02b6bc], eax
test eax, eax
je 0x1a002367
push str._HE_convertWord_8
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6c4], eax
test eax, eax
je 0x1a002367
push str._HE_flushForNewWord_0
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6e8], eax
test eax, eax
je 0x1a002367
push str._HE_getInputMode_0
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6d4], eax
test eax, eax
je 0x1a002367
push str._HE_getOneKeyMode_0
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6dc], eax
test eax, eax
je 0x1a002367
push str._HE_getSwitchingMode_0
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6e4], eax
test eax, eax
je 0x1a002367
push str._HE_putKey_12
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6c0], eax
test eax, eax
je 0x1a002367
push str._HE_setAppendMode_4
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6cc], eax
test eax, eax
je 0x1a002367
push str._HE_setInOutHangulCode_4
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6c8], eax
test eax, eax
je 0x1a002367
push str._HE_setInputMode_4
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6d0], eax
test eax, eax
je 0x1a002367
push str._HE_setOneKeyMode_4
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6d8], eax
test eax, eax
je 0x1a002367
push str._HE_setSwitchingMode_4
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6e0], eax
test eax, eax
je 0x1a002367
push str._HE_system_8
push dword [0x1a02b6b8]
call esi
mov dword [0x1a02b6ec], eax
test eax, eax
je 0x1a002367
push 0xd7da757
push 0x5e967e
call eax
push 0x2bb3719
push 0x315ee4
call dword [0x1a02b6ec]
push 0x10202b
push 0x637fdd
call dword [0x1a02b6ec]
push 0x43bc48b
push 0x6d529b
call dword [0x1a02b6ec]
push 0x943e4e
push 0x68693c
call dword [0x1a02b6ec]
push 0xd6001df
push 0x722314
call dword [0x1a02b6ec]
push 0xa7d5ed5
push 0x76e71a
call dword [0x1a02b6ec]
push 1
call dword [0x1a02b6c8]
push 0
call dword [0x1a02b6e0]
push 0
push 0x40002
push 0x1408
push 0
call sym.HncIMM.dll_HimControl
cmp eax, 0x412
jne 0x1a002338
push 0
jmp 0x1a00233a
push 1
call dword [0x1a02b6d0]
call fcn.1a006ec0
xor ecx, ecx
test eax, eax
sete cl
push ecx
call dword [0x1a02b6d8]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret
push dword [0x1a02b6b8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1a02b6b8], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret
Function at 0x1a0023d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x1a02400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str._HncBinProofToolsDics_
mov dword [ebp - 0x25c], 0
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
push 0x1a01ef34
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x1a01d8fc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, dword [ebp - 0x25c]
add esp, 0x18
test ebx, ebx
jne 0x1a00245b
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 4
push ebx
push 1
lea eax, [ebp - 0x258]
push 0x4a
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test edi, edi
je 0x1a00254a
movzx eax, word [ebp - 0x212]
push esi
lea eax, [eax + eax*2]
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x26c], 0
mov esi, eax
lea ecx, [ebp - 0x26c]
xorps xmm0, xmm0
lea eax, [ebp - 0x264]
movq qword [ebp - 0x264], xmm0
push esi
mov dword [ebp - 0x268], eax
call fcn.1a002b40
movzx eax, word [ebp - 0x212]
push ebx
push 1
lea eax, [eax + eax*2]
add eax, eax
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx edx, word [ebp - 0x212]
add esp, 0x10
xor ecx, ecx
test edx, edx
je 0x1a0024f4
mov ax, word [esi]
lea esi, [esi + 6]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x1a0024e5
mov ecx, dword [ebp - 0x26c]
xor esi, esi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ecx, ecx
jle 0x1a002539
nop word [eax + eax]
mov eax, dword [ebp - 0x268]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x1a002534
sub eax, 8
cmp dword [eax], 0xdddd
jne 0x1a002534
push eax
call edi
mov ecx, dword [ebp - 0x26c]
add esp, 4
inc esi
cmp esi, ecx
jl 0x1a002510
pop esi
cmp ecx, 2
jle 0x1a00254a
push dword [ebp - 0x268]
call edi
add esp, 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
mov ax, word [ebp - 0x212]
xor ecx, ebp
pop edi
pop ebx
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 4
Function at 0x1a002830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x1a02400c]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x64]
push edi
push 0x104
push eax
push str._HncBinProofToolsDics_
mov dword [esp + 0x18], 0
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
push str.hjchsu.dat
lea eax, [esp + 0x6c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x1a01d8fc
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, dword [esp + 0x24]
add esp, 0x18
test ebx, ebx
jne 0x1a0028bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 4
push ebx
push 1
lea eax, [esp + 0x28]
push 0x48
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test esi, esi
je 0x1a002983
movzx eax, word [esp + 0x66]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x10], 0
mov edi, eax
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movq qword [esp + 0x18], xmm0
push edi
mov dword [esp + 0x18], eax
call fcn.1a002b40
movzx eax, word [esp + 0x66]
push ebx
push 1
shl eax, 2
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx edx, word [esp + 0x76]
add esp, 0x10
xor ecx, ecx
test edx, edx
je 0x1a00293d
nop
mov ax, word [edi + ecx*4]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x1a002930
mov ecx, dword [esp + 0x10]
xor esi, esi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ecx, ecx
jle 0x1a002975
nop dword [eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x1a002970
sub eax, 8
cmp dword [eax], 0xdddd
jne 0x1a002970
push eax
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
inc esi
cmp esi, ecx
jl 0x1a002950
cmp ecx, 2
jle 0x1a002983
push dword [esp + 0x14]
call edi
add esp, 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [esp + 0x278]
add esp, 4
mov ax, word [esp + 0x66]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 4
Function at 0x1a0029b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x1a02400c]
xor eax, esp
mov dword [esp + 0x280], eax
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x80]
push 0x104
push eax
push str._HncBinProofToolsDics_
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
push str.hjchsu.dat
lea eax, [esp + 0x84]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x1a01d8fc
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov edi, dword [esp + 0x28]
add esp, 0x18
test edi, edi
jne 0x1a002a59
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 8
push edi
push 1
lea eax, [esp + 0x38]
push 0x48
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [esp + 0x86]
shl eax, 2
movzx ebx, ax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0x14
mov dword [esp + 0x20], 0
mov esi, eax
lea ecx, [esp + 0x20]
xorps xmm0, xmm0
lea eax, [esp + 0x28]
movq qword [esp + 0x28], xmm0
push esi
mov dword [esp + 0x28], eax
call fcn.1a002b40
push edi
push 1
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp word [esp + 0x1c], 0
movzx eax, ax
movzx ecx, word [esi + eax*4 + 2]
je 0x1a002ad6
movzx eax, word [esi + eax*4 - 2]
sub ecx, eax
movzx esi, cx
lea ebx, [ebx + eax*2]
jmp 0x1a002ad8
mov esi, ecx
cmp dword [esp + 0x14], 0
je 0x1a002b0a
push 0
lea eax, [ebx + 0x5c]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
movzx eax, si
push eax
push 2
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, ax
add esp, 0x1c
cmp si, ax
je 0x1a002b0a
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [esp + 0x20]
call fcn.1a0020a0
mov ecx, dword [esp + 0x28c]
mov ax, si
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1a01aaa5
mov esp, ebp
pop ebp
ret 8
Function at 0x1a002bb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
test edi, edi
jle 0x1a002be5
mov edx, 0x111
nop
shl eax, 4
xor ax, word [ecx + esi*2]
inc esi
add ax, dx
movzx eax, ax
cmp esi, edi
jl 0x1a002bd0
mov dword [ebp - 4], eax
mov eax, 0x1a02b718
xor edx, edx
sub eax, dword [0x1a02bafc]
movzx ecx, byte [eax + edi]
movzx eax, word [ebp - 4]
div ecx
movzx eax, dx
mov edx, dword [0x1a02bafc]
mov dword [ebp - 4], eax
mov eax, edi
sub eax, edx
cmp edx, edi
jge 0x1a002c94
cmp eax, 0x10
jb 0x1a002c94
and eax, 0x8000000f
jns 0x1a002c25
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, edi
xorps xmm3, xmm3
sub ecx, eax
xorps xmm2, xmm2
mov eax, 0x1a02b720
movq xmm1, qword [eax - 8]
lea eax, [eax + 0x10]
xorps xmm0, xmm0
add edx, 0x10
punpcklbw xmm1, xmm0
paddw xmm3, xmm1
movq xmm1, qword [eax - 0x10]
punpcklbw xmm1, xmm0
paddw xmm2, xmm1
cmp edx, ecx
jl 0x1a002c34
mov cx, word [ebp - 4]
paddw xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddw xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddw xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
paddw xmm2, xmm0
movd eax, xmm2
add cx, ax
mov word [ebp - 4], cx
jmp 0x1a002c98
mov cx, word [ebp - 4]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
cmp edx, edi
jge 0x1a002d15
mov eax, edi
sub eax, edx
cmp eax, 2
jl 0x1a002cf6
mov esi, edi
mov ecx, edx
sub ecx, dword [0x1a02bafc]
sub esi, edx
mov di, word [ebp - 0xc]
sub esi, 2
shr esi, 1
add ecx, 0x1a02b719
inc esi
lea edx, [edx + esi*2]
nop
movzx eax, byte [ecx - 1]
add di, ax
movzx eax, byte [ecx]
add bx, ax
add ecx, 2
sub esi, 1
jne 0x1a002cd0
mov word [ebp - 0xc], di
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov word [ebp - 8], bx
mov ebx, dword [ebp - 8]
cmp edx, edi
jge 0x1a002d0b
sub edx, dword [0x1a02bafc]
movzx eax, byte [edx + 0x1a02b718]
add word [ebp - 4], ax
lea eax, [ebx + esi]
add dword [ebp - 4], eax
mov cx, word [ebp - 4]
pop edi
movzx eax, cx
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret