joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7d67541f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x63b64bb9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0xa48058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a481a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa4807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4806a
add dl, dl
jne 0xa48089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa480dc
xor eax, eax
add dl, dl
jne 0xa48096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4817d
add dl, dl
jne 0xa480a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa480b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa480bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa480c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa480d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa48075
mov eax, 1
add dl, dl
jne 0xa480ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa480f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa480e1
sub eax, ebx
mov ebx, 1
jne 0xa48128
mov ecx, 1
add dl, dl
jne 0xa4810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa48119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa48105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa48075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa4813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa4814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa48136
cmp eax, 0x7d00
jae 0xa4816d
cmp eax, 0x500
jb 0xa48168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa48075
cmp eax, 0x7f
ja 0xa48170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa48075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa4819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa48075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10002360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002377
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100023a8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100023a4
cmp esi, eax
jae 0x100023a8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x10002394
cmp esi, eax
jb 0x100023ae
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10003040
Capabilities:
Get routing table

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push 1
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
or ebp, 0xffffffff
push ebx
or esi, ebp
mov dword [esp + 0x1c], ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x1000310e
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.1005587a
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x10003102
push 1
lea edx, [esp + 0x18]
push edx
push edi
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x100030f9
mov edi, dword [edi]
test edi, edi
jbe 0x100030f5
xor ecx, ecx
test edi, edi
jbe 0x100030cb
mov eax, dword [esp + 0x10]
add eax, 0x28
lea edx, [eax - 0x24]
test edx, edx
je 0x100030c1
cmp dword [eax - 0x24], 0
jne 0x100030c1
mov edx, dword [eax]
cmp esi, edx
jbe 0x100030c1
mov ebp, dword [eax - 0x14]
mov esi, edx
mov ebx, ecx
add ecx, 1
add eax, 0x38
cmp ecx, edi
jb 0x100030a7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100030f5
cmp ebx, edi
jae 0x100030f5
mov edx, dword [esp + 0x10]
lea ecx, [ebx*8]
sub ecx, ebx
lea esi, [edx + ecx*8 + 4]
mov ecx, 0xe
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, edx
jmp 0x100030f9
mov edi, dword [esp + 0x10]
push edi
call fcn.1005552d
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x10006cd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10077273
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
sub eax, 0x10
call fcn.10004220
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x10], 0
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.10004220
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x10], 1
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.10004220
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x10007c40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x10007c8f
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007c8f
cmp dword [esp + 0x10], 4
jne 0x10007c8f
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x10009420
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000948e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1000945f
cmp eax, 2
jne 0x1000947a
test esi, esi
mov eax, dword [esp]
je 0x10009488
test eax, eax
je 0x10009483
test al, 1
jne 0x1000947a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x10009488
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x100095d0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100783c8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
xor ebp, ebp
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], ebp
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
mov dword [esp + 0xb0], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100096e2
call fcn.1000b5f0
cmp eax, edi
jl 0x10009701
push 0x1000
mov dword [esp + 0x34], 0x67452301
mov dword [esp + 0x38], 0xefcdab89
mov dword [esp + 0x3c], 0x98badcfe
mov dword [esp + 0x40], 0x10325476
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.100548be
add esp, 4
mov ebx, eax
mov dword [esp + 0x14], edi
push edi
lea edx, [esp + 0x18]
push edx
push 0x1000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100096a7
call fcn.1000b5f0
cmp eax, edi
jl 0x100096ed
cmp dword [esp + 0x14], edi
je 0x10009708
mov esi, dword [0x10092494]
cmp esi, edi
je 0x100096c4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [0x10092494]
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x34]
call fcn.100157a0
add esp, 4
cmp esi, edi
je 0x10009687
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10009687
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x1000964c
push ebx
call fcn.10055759
add esp, 4
cmp ebp, edi
je 0x10009701
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100097aa
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x34]
call fcn.100158c0
mov eax, dword [0x10092494]
add esp, 4
cmp eax, edi
je 0x10009729
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx ecx, byte [esp + 0x2f]
movzx edx, byte [esp + 0x2e]
movzx eax, byte [esp + 0x2d]
push ecx
movzx ecx, byte [esp + 0x30]
push edx
movzx edx, byte [esp + 0x33]
push eax
movzx eax, byte [esp + 0x36]
push ecx
movzx ecx, byte [esp + 0x39]
push edx
movzx edx, byte [esp + 0x3c]
push eax
movzx eax, byte [esp + 0x3f]
push ecx
movzx ecx, byte [esp + 0x42]
mov edi, dword [esp + 0x34]
push edx
movzx edx, byte [esp + 0x45]
push eax
movzx eax, byte [esp + 0x48]
push ecx
movzx ecx, byte [esp + 0x4b]
push edx
movzx edx, byte [esp + 0x4e]
push eax
movzx eax, byte [esp + 0x51]
push ecx
movzx ecx, byte [esp + 0x54]
push edx
push eax
push ecx
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
call fcn.100093a0
add esp, 0x44
test ebp, ebp
je 0x100097a5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1005574a
add esp, 0x84
ret
Function at 0x1000b680
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, eax
mov eax, dword [ebp]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x1000b72b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
push str.DisplayName
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x1000b6c4
cmp eax, 2
jne 0x1000b734
call fcn.10001400
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x1000b6ef
mov eax, esi
call fcn.10001a40
mov edi, dword [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.DisplayName
push eax
call ebx
test eax, eax
jne 0x1000b73e
mov ecx, dword [esp + 0x18]
shr ecx, 1
mov word [edi + ecx*2], ax
mov edi, esi
call fcn.1000cdd0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4

Function at 0x1000ead0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, eax
mov esi, 0xa
lea esp, [esp]
push 0x64
call edi
sub esi, 1
jne 0x1000eaf0
call ebx
pop edi
sub eax, ebp
pop esi
cmp eax, 0x7d0
pop ebp
seta al
pop ebx
ret

Function at 0x1000eb90
Capabilities:
Check for hardware breakpoints

Disassembly:
sub esp, 0x2d0
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x2cc], eax
push 0x2cc
lea eax, [esp + 4]
push 0
push eax
call fcn.1005a450
add esp, 0xc
mov dword [esp], 0x10010
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1000ebeb
xor al, al
mov ecx, dword [esp + 0x2cc]
xor ecx, esp
call fcn.1005574a
add esp, 0x2d0
ret
cmp dword [esp + 4], 0
jne 0x1000ec07
cmp dword [esp + 8], 0
jne 0x1000ec07
cmp dword [esp + 0xc], 0
jne 0x1000ec07
cmp dword [esp + 0x10], 0
je 0x1000ebd4
mov ecx, dword [esp + 0x2cc]
xor ecx, esp
mov al, 1
call fcn.1005574a
add esp, 0x2d0
ret

Function at 0x1000ec20
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov dword [ebp - 8], 0
rdtsc
mov dword [ebp - 8], edx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xa
nop
push 0x64
call edi
sub esi, 1
jne 0x1000ec40
mov byte [ebp - 1], 0
rdtsc
sub edx, dword [ebp - 8]
cmp edx, 2
jbe 0x1000ec5b
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010370
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10078336
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x14], 0x100925ac
xor ebx, ebx
mov dword [0x100925ac], eax
mov dword [0x100925b0], eax
mov dword [esp + 0x20], ebx
mov eax, dword [0x10091644]
mov edx, dword [eax + 0xc]
mov ecx, 0x10091644
call edx
add eax, 0x10
mov dword [0x100925b4], eax
mov dword [0x100925b8], ebx
mov byte [0x100925bc], bl
mov dword [0x100925c0], ebx
mov byte [esp + 0x20], 2
mov dword [0x100925c4], ebx
mov dword [0x100925c8], ebx
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.1001cf60
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, str.kwifi.ini
mov byte [esp + 0x28], 3
call fcn.10005f20
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001045c
mov edx, dword [esp + 0xc]
push edx
push 0
push str.wifiinfo
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x100925b8], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001047c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x100925ac
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x18
ret

Function at 0x10010887
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushfd
mov byte [esp + 0xc], 0x7a
rep movsb byte es:[edi], byte [esi]
cmc
xor di, di
mov edi, dword [esp + 0x10]
neg si
add si, 0xc5ae
shrd si, bp, 5
mov esi, dword [esp + 0x14]
push dword [esp]
test al, dh
push edx
push dword [esp + 0x20]
popfd
push dword [esp + 4]
push dword [esp + 4]
pushfd
lea esp, [esp + 0x30]
jmp 0x1001228f

Function at 0x10010c0f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
rep movsb byte es:[edi], byte [esi]
movsx esi, cl
movsx di, al
mov word [esp + 0x18], 0x70a6
mov edi, dword [esp + 0x38]
add si, ax
mov esi, dword [esp + 0x3c]
pushfd
stc
push 0x82d1c69a
push dword [esp + 0x48]
popfd
mov byte [esp], cl
push 0xc37311e2
mov byte [esp + 4], cl
mov dword [esp + 4], 0xb3c8f7fb
lea esp, [esp + 0x50]
jmp 0x1001228f
Function at 0x100122b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushfd
pushfd
push 0x9bfbae59
mov byte [esp], 0xda
lea esp, [esp + 0xc]
ja 0x1001228f
shl dx, 0xb
bt ebp, 1
mov edx, esp
bsf ax, cx
neg ch
call fcn.10011398
lea esp, [esp + 4]
jle 0x10010984
ja 0x1001228f
rdtsc
shr dl, cl
mov edx, esp
movzx ax, al
lea ecx, [edi + 0x40]
bts ax, bx
pushfd
bt bp, di
adc edi, 0x99355f19
sub ecx, edx
movzx eax, cl
lea eax, [ebp*8 - 0x28143480]
lea eax, [ebp - 0x80]
cmc
and al, 0xfc
movzx di, bl
pushal
sar di, cl
add di, 0xb69
sub eax, ecx
movsx di, cl
mov esp, eax
bswap di
pushfd
pushfd
pop dword [esp]
movzx di, al
push esi
xchg dword [esp], esi
cld
ja 0x1002c560
xchg si, di
mov esi, edx
push 0x129bae26
lea edi, [ecx + eax - 0x40]
std
cld
mov dword [esp], edi
cld
mov edi, eax
cld
push 0x499b3cab
call fcn.1002cdd1
call fcn.1002c919
push dword [esp + 0x1c]
pop dword [ebp]
pushal
mov byte [esp], 0x9d
pushfd
lea esp, [esp + 0x44]
jmp 0x1001228f

Function at 0x10014690
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
mov eax, dword [ebx + 0xc]
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10014775
mov ecx, dword [ebx + 0x10]
call fcn.10014bf0
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebp
push 0x8000004
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esp + 8], eax
je 0x10014775
push edi
push ebp
push ebp
push ebp
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x10014769
mov ebp, dword [ebx + 0x10]
push 0x164
push 0
push edi
call fcn.1005a450
lea eax, [ebp - 0x2b4]
mov dword [edi], 0x6143574b
lea ecx, [eax + 0x164]
add esp, 0xc
mov dword [edi + 4], 0x10001
cmp dword [ebx + 0x10], ecx
jae 0x1001472d
xor ebp, ebp
jmp 0x10014762
mov ebp, 1
mov dword [edi + 0x30], ebp
mov dword [edi + 0x2c], eax
lea edx, [eax - 0x60]
mov eax, 0xaaaaaaab
mul edx
mov dword [edi + 0x28], 0x164
mov dword [edi + 0x24], ebp
shr edx, 4
mov dword [edi + 0x180], 0
mov dword [edi + 0x17c], edx
add dword [edi + 0x20], ebp
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
je 0x10014785
cmp esi, 0xffffffff
je 0x10014785
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x10014790
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x28
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x10000000
call fcn.10017060
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
push ebp
push 0x80
push 3
lea ecx, [esp + 0x2c]
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100148fc
push ebp
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov edi, eax
push edi
push ebp
push 0x8000004
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, ebp
je 0x100148fc
push ebp
push ebp
push ebp
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebp
je 0x1001484d
mov edx, dword [esp + 0x3c]
cmp edi, dword [edx + 0x10]
ja 0x10014846
push edi
mov edi, eax
call fcn.10014ce0
cmp eax, ebp
mov eax, edi
je 0x10014846
mov dword [esp + 0x1c], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp dword [esp + 0x1c], ebp
je 0x10014902
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str.Global070BBFD7_7AA2_4a5e_8809_58D927796DB4
push eax
push ebp
push 0x8000004
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebp
je 0x10014902
push ebp
push ebp
push ebp
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebp
je 0x100148f7
mov ecx, dword [eax]
cmp ecx, 0x6143574b
jne 0x100148f0
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
lea edx, [eax + 0x28]
mov ebx, 0x15
mov ecx, dword [edx]
test ecx, ecx
je 0x100148c3
mov ecx, dword [edx]
add ecx, eax
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
add edx, 0x10
sub ebx, 1
jne 0x100148b1
mov ecx, dword [esp + 0x3c]
push esi
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
call fcn.100171b0
push edi
call fcn.100171b0
add esp, 8
mov dword [esp + 0x14], 1
jmp 0x1001490e
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebx
jmp 0x10014902
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebp
je 0x1001490e
cmp esi, 0xffffffff
je 0x1001490e
push esi
call ebx
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10014923
push eax
call esi
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x1001492e
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4