joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10149000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10161360], 0
mov dword [0x10161364], 0
mov dword [0x10161370], 0
mov ebx, dword [0x1016135c]
add ebx, 0xfffff338
mov dword [0x10161358], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x1014906f
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10161358], 0x20d1
mov edi, edx
add edi, 1
add ecx, 1
mov dword [0x1016135c], 0x7e7
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10161360], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10161364], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10161368], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10161368]
mov edx, dword [0x10161364]
mov byte [ebx + edx], cl
mov dword [0x1016135c], 0x2664
mov edx, dword [0x10161360]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10161364]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10161370], ecx
mov dword [0x10161358], 0x1fb1
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov byte [0x10161375], ch
mov byte [0x10161376], cl
xor ch, cl
mov byte [0x10161374], ch
mov dword [0x10161358], 0x251f
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x1016135c], 0x13d3
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x10149067
mov eax, dword [0x10161360]
mov ecx, dword [0x10161364]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x1014906f
Function at 0x101492bf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov eax, 0x10
call fcn.10141dd0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0x24], eax
call fcn.10001066
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x20], ecx
je 0x101492fe
mov eax, dword [esi + 0x20]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [0x10161358], 0x1f19
sub esp, 4
mov ecx, dword [esi + 0x24]
mov dword [esp], ecx
mov dword [esi + 0x1c], eax
call fcn.1014869e
add esp, 4
lea ecx, [0x10148c3e]
mov edx, dword [esi + 0x24]
mov edi, dword [edx]
mov dword [esi + 0x28], edi
mov dword [esi + 0x60], 0x11f800
mov edi, dword [0x10161344]
mov dword [esi + 0x3c], edi
mov edi, dword [0x10161348]
mov dword [esi + 0x30], edi
mov edi, dword [0x1016134c]
mov dword [esi + 0x6c], edi
mov edi, dword [0x10161350]
mov dword [esi + 0x7c], edi
mov edi, dword [0x10161354]
mov dword [esi + 0x40], edi
mov dword [0x1016135c], 0x4bf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0x14]
cmp word [eax], 0x5a4d
mov dword [esi + 0x10], eax
jne 0x1014939d
mov eax, dword [esi + 0x10]
add eax, 0x3c
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [esi + 0x10]
cmp dword [edx + ecx], 0x4550
mov dword [esi + 8], ecx
je 0x101493b5
mov eax, dword [esi + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x14], eax
jmp 0x10149371
mov eax, dword [esi + 0x10]
mov dword [esi + 0x54], eax
mov dword [0x1016135c], 0xe73
mov ecx, dword [esi + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esi + 0x70], edx
call fcn.10148c90
xor ecx, ecx
cmp eax, 0
mov dword [esi], ecx
jne 0x1014940f
lea eax, [esi + 0x28]
mov dword [0x1016135c], 0x341
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.10148db1
add esp, 8
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x28]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [esi], eax
mov eax, dword [esi]
mov dword [esi + 0x20], eax
jmp 0x101492f4

Function at 0x64ae79
Capabilities:
Encode data using xor

Disassembly:
jg 0x64aebc
cmp bh, bh
jp 0x64aeb5
dec eax
ror dword [eax + 0x78e0a859], cl
inc ecx
mov eax, esi
int3
ret
jl 0x64af1b
invalid
and eax, 0x2cf48b14
xchg ebp, eax
or al, 0x8c
and esi, dword [edi - 0x5e79344f]
xor edx, ecx
mov al, byte [0x16a258c]
sub byte [esi], bl
pop ebx
or dword [ecx + 0x47], 0x2b202585
sbb eax, 0x3bceb99
popfd
dec esp
mov word [edx - 0x2aa5cca5], fs
or eax, 0x62dba94c
jl 0x64af6e
js 0x64af20
invalid
xor ah, 0x8c
sub al, 0x50
jge 0x64af91
mov eax, 0x3b06c938
or eax, 0x649c842d
cld
sub dword [edi - 0x7b], 0xffffffe9
pushfd
int 0xfa
dec esp
dec esp
insb byte es:[edi], dx
xchg esp, eax
sub eax, 0x347504ab
test byte [edx + 0x451b7d6e], al
test byte [edx + 0x6e], ah
jge 0x64afb1
inc ebp
dec edi
and eax, 0x3c250c3b
lds ebp, [eax + ebx]
popfd
retf
pop esp
movsd dword es:[edi], dword [esi]
push esp
cmpsd dword [esi], dword es:[edi]
jnp 0x64afc4
into
insd dword es:[edi], dx
sub eax, 0x9ffb2117
inc eax
pop esp
pop es
les ebp, [ebp - 0x137aa34c]
pop esp
test esp, ebp
invalid
Function at 0x51b6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbe000]
mov dword [edi + 0xcf740], 0x695ea33f
push edi
jmp 0x51b6fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51b701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b6f0
mov eax, 1
add ebx, ebx
jne 0x51b713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51b724
jne 0x51b743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b743
dec eax
add ebx, ebx
jne 0x51b730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51b708
add ebx, ebx
jne 0x51b73f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51b795
xor ecx, ecx
sub eax, 3
jb 0x51b75b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51b7ca
sar eax, 1
mov ebp, eax
jmp 0x51b766
add ebx, ebx
jne 0x51b766
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b734
inc ecx
add ebx, ebx
jne 0x51b774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b734
add ebx, ebx
jne 0x51b781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51b776
jne 0x51b792
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51b776
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51b7b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51b7a6
jmp 0x51b6f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51b7b4
add edi, ecx
jmp 0x51b6f6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51b7d2
cmp byte [edi], 0x11
jne 0x51b7d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51b7d7
lea edi, [esi + 0x114000]
mov eax, dword [edi]
or eax, eax
je 0x51b84f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x150e64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x150fe0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51b804
mov ecx, edi
jns 0x51b833
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x150fe4]
or eax, eax
je 0x51b849
mov dword [ebx], eax
add ebx, 4
jmp 0x51b821
call dword [esi + 0x150ff4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51b880
cmp al, 0xef
ja 0x51b873
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51b855
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51b862
mov ebp, dword [esi + 0x150fe8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51b8b4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401ab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
call fcn.0054d5e1
mov esi, eax
add esp, 8
test esi, esi
jle 0x401b26
push edi
add esi, 3
push esi
call fcn.0054d9f5
mov edi, eax
add esp, 4
test edi, edi
je 0x401b25
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
push esi
push edi
call fcn.0054dbca
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x401b1c
movsx ecx, byte [edi + esi - 1]
push ecx
call fcn.0054d553
add esp, 4
test eax, eax
je 0x401b0a
dec esi
jne 0x401af5
mov word [edi + esi], 0xa0d
push edi
mov byte [edi + esi + 2], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.0054c32d
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x404710
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57718b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005695ee
push 4
mov dword [ebp - 4], 0
call fcn.0044c8d5
mov edi, eax
add esp, 4
test edi, edi
je 0x40478c
call fcn.00568cd0
mov dword [edi], eax
call fcn.00568a8f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.005689c4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404782
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.005689ec
jmp 0x40478e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40738b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4073c2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4073be
jmp 0x4073b0
cmp esi, eax
jae 0x4073c2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4073b0
cmp esi, eax
jb 0x4073c9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a0d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5773a8
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x434], eax
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x218], cx
call fcn.00550f40
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.00550f40
add esp, 0x18
lea ecx, [ecx]
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x424]
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
cmp eax, ebx
jne 0x40a189
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a160
cmp dword [ebp - 0x428], ebx
jle 0x40a23d
xor esi, esi
mov eax, dword [ebp - 0x424]
cmp dword [esi + eax + 8], 0
jne 0x40a221
mov eax, dword [esi + eax]
mov ecx, dword [ebp - 0x434]
lea edx, [ebp - 0x42c]
push edx
push eax
mov dword [ecx], eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x40a1ce
push str.WTSQueryUserToken_failed__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a221
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x218]
push ecx
call fcn.00409fc0
mov edx, dword [ebp - 0x42c]
add esp, 8
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40a20a
push str.GetTokenUserInfo_failed__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a221
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.0054e01b
add esp, 8
test eax, eax
je 0x40a233
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 0x428]
jl 0x40a197
jmp 0x40a23d
mov dword [ebp - 0x430], 1
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, dword [ebp - 0x430]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
cmp esi, ebx
jne 0x40a26c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a160
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret
Function at 0x40ea30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3e
mov edi, edx
mov esi, ecx
lea edx, [ebp - 0x4a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0x54], bl
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
mov word [ebp - 0x4c], cx
call fcn.00550f40
add esp, 0xc
push str.DES_CLIENT_UNINSTALL
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0xbc]
call fcn.00448b90
mov eax, dword [ebp + 8]
push eax
push str._08x
lea edx, [ebp - 0x4c]
call fcn.00413990
lea eax, [ebp - 0x4c]
add esp, 8
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ead0
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0xbc]
call fcn.00448b90
mov edx, dword [ebp + 0xc]
push edx
push str._08x
lea edx, [ebp - 0x4c]
call fcn.00413990
lea eax, [ebp - 0x4c]
add esp, 8
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40eb10
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0xbc]
call fcn.00448b90
push 0xa
push esi
lea edx, [ebp - 0x4c]
push 0x20
push edx
call fcn.0054e6d3
lea eax, [ebp - 0x4c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40eb47
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0xbc]
call fcn.00448b90
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40eb70
sub eax, edx
sar eax, 1
add eax, eax
push edi
lea ecx, [ebp - 0xbc]
call fcn.00448b90
lea ecx, [ebp - 0xbc]
call fcn.00448cc0
lea ebx, [ebp - 0xbc]
call fcn.00448e20
mov edi, eax
test edi, edi
je 0x40ebe4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jg 0x40ebe4
lea eax, [ebx + ebx]
call fcn.00553780
mov esi, esp
test esi, esi
je 0x40ebe4
push ebx
push esi
push 0xffffffffffffffff
xor edx, edx
push edi
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40ebe6
xor eax, eax
push 6
push eax
mov eax, dword [ebp - 0xc0]
push 7
push eax
call fcn.0054e6d3
add esp, 0x10
xor esi, esi
lea esp, [esp]
mov ebx, dword [ebp - 0xc0]
movzx ecx, word [ebx + esi*2]
push ecx
call fcn.0054e6a7
mov word [ebx + esi*2], ax
inc esi
add esp, 4
cmp esi, 6
jb 0x40ec00
push edi
call fcn.0044c90f
add esp, 4
mov eax, 1
lea esp, [ebp - 0xcc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret
Function at 0x410820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edx + 0x194]
xor eax, eax
dec ecx
mov dword [ebp - 4], eax
cmp ecx, 4
ja case.0x410835.4
jmp dword [ecx*4 + 0x41089c]
mov ecx, 0x410960
jmp 0x410856
mov ecx, 0x410f50
jmp 0x410856
mov ecx, 0x4111e0
jmp 0x410856
mov ecx, 0x4114f0
test ecx, ecx
je case.0x410835.4
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x410882
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x15
push 0x5ac630
call fcn.00407870
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4108b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [esi + 0x718], 0
jne 0x41090f
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Global_HkApp.exe_SetupMap
push 8
push 0
push 0x8000004
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x20]
push 0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x718], eax
mov eax, dword [esi + 0x718]
test eax, eax
je 0x410955
push 8
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x41093e
mov ecx, dword [ebp + 8]
push eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x718]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x718], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x411db0
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x20e]
push edx
mov dword [ebp - 0x420], eax
mov word [ebp - 0x210], cx
call fcn.00550f40
add esp, 0xc
push str._HkApp.exe_LocalDBName
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
push 0x208
push 0
test ebx, ebx
jne 0x411e8a
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.00550f40
add esp, 0xc
push 0x104
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x41c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411e40
mov ecx, 7
mov esi, str.hkdefault.db
lea eax, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411e61
mov ecx, dword [ebp - 0x420]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00407870
xor eax, eax
jmp 0x411f7d
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x411ead
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x411f7d
mov ecx, 0x82
mov esi, eax
lea edi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x210]
shr ecx, 8
test cl, cl
je 0x411f21
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x411ee5
xor eax, eax
jmp 0x411eff
lea eax, [esi + esi]
call fcn.00553780
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.00413c30
lea edx, [ebp - 0x210]
sub edx, eax
jmp 0x411f10
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x411f10
jmp 0x411f52
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x411f52
lea esi, [eax + eax]
mov eax, esi
call fcn.00553780
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.00413a40
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x210]
push edx
call fcn.00407960
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x430]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret 4
Function at 0x412970
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5791f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
call fcn.0044d418
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4129b7
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x10]
push str.SELECT__Value__FROM__Des_Config__WHERE__Name__s_
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00409220
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x412a02
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.004076d0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push esi
lea edx, [ebp - 0x1c]
call fcn.00448470
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
cmp ecx, ebx
jle 0x412a46
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jle 0x412a46
inc ecx
imul ecx, eax
cmp eax, ecx
jge 0x412a46
mov ecx, dword [edi + eax*4]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00407960
mov dword [ebp - 0x24], 1
cmp edi, ebx
je 0x412a85
mov ebx, dword [edi - 4]
sub edi, 4
mov esi, 1
cmp ebx, esi
jl 0x412a77
lea esp, [esp]
cmp dword [edi + esi*4], 0
je 0x412a72
mov eax, dword [edi + esi*4]
push eax
call fcn.0044c90f
add esp, 4
inc esi
cmp esi, ebx
jle 0x412a60
push edi
call fcn.0044c90f
mov esi, dword [ebp - 0x10]
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x412a95
push eax
call fcn.0044c90f
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ab8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc