joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10190cb0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x10190cd2
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
jbe 0x10190ce6
mov eax, dword [esi + 0x7f34]
mov edx, dword [eax]
jmp 0x10190ce8
xor edx, edx
xor eax, eax
cmp ecx, ebx
jbe 0x10190d0e
mov edi, edi
mov dword [edx + 0x24], ebx
mov ecx, dword [esi + 0xc]
inc eax
cmp eax, ecx
jb 0x10190d01
xor edx, edx
mov eax, ecx
jmp 0x10190d0a
mov edx, dword [esi + 0x7f34]
mov edx, dword [edx + eax*4]
cmp eax, ecx
jb 0x10190cf0
cmp byte [edi + 0x68], bl
je 0x10190dbe
mov ecx, dword [edi + 0x60]
mov eax, dword [edi]
inc ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], eax
cmp ecx, ebx
jbe 0x10190d34
mov edx, dword [esi + 0x7f34]
mov eax, dword [edx]
jmp 0x10190d36
xor eax, eax
test ecx, ecx
jbe 0x10190dbe
mov edi, edi
cmp dword [eax + 0x7c], 0xffffffff
jne 0x10190da0
mov esi, dword [eax + 0x50]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [ebp - 0xc], ecx
mov ecx, edx
and ecx, 0x1000
xor edi, edi
or ecx, edi
je 0x10190d77
and edx, 0x4200000
xor ecx, ecx
or edx, ecx
jne 0x10190d77
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x50]
add ecx, dword [eax + 0x60]
jmp 0x10190d82
cmp dword [ebp - 4], esi
jne 0x10190d9d
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x34]
mov edx, dword [edx + 0x30]
add ecx, ecx
add ecx, ecx
mov esi, dword [ecx + esi]
mov dword [eax + 0x60], esi
mov esi, dword [eax + 0x64]
add esi, ecx
mov ecx, dword [edx + esi*4]
mov dword [eax + 0x64], ecx
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
inc ebx
cmp ebx, ecx
jb 0x10190dae
xor eax, eax
mov ebx, ecx
jmp 0x10190db7
mov edx, dword [esi + 0x7f34]
mov eax, dword [edx + ebx*4]
cmp ebx, ecx
jb 0x10190d40
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
test esi, esi
je 0x10190de9
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10190dde
xor eax, eax
jmp 0x10190de1
push eax
call edi
mov eax, dword [eax]
push esi
push 0
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov dword [eax + 0x40], 0
test esi, esi
je 0x10190e15
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10190e07
xor eax, eax
jmp 0x10190e0a
push eax
call edi
mov ecx, dword [eax]
push esi
push 0
push ecx
call ebx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax + 8], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10192770
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ecx], esi
push edi
mov dword [ecx + 4], esi
mov edi, dword [ebx + 0x10]
cmp edi, 0x7ffffff
jbe 0x10192790
xor eax, eax
jmp 0x101927b5
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x1019279d
xor eax, eax
jmp 0x101927a4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
shl edi, 5
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, esi
je 0x1019285a
mov edx, dword [ebx + 0x10]
cmp edx, esi
jbe 0x101927cd
mov ecx, dword [ebx + 0x14]
mov edi, dword [ecx]
jmp 0x101927cf
xor edi, edi
xor ecx, ecx
cmp edx, esi
jbe 0x1019281b
add eax, 0x10
jmp 0x101927e0
lea edx, [eax - 0x10]
mov dword [edi + 0x2c], edx
mov dword [eax - 4], esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax + 0xc], 0xffffffff
mov dword [edx], esi
mov edx, dword [ebx + 0x10]
inc ecx
add eax, 0x20
cmp ecx, edx
jb 0x10192811
xor edi, edi
mov ecx, edx
jmp 0x10192817
mov edi, dword [ebx + 0x14]
mov edi, dword [edi + ecx*4]
cmp ecx, edx
jb 0x101927e0
mov edi, dword [ebx + 0xc]
cmp edi, 0x1fffffff
jbe 0x1019282a
xor eax, eax
jmp 0x10192850
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x10192837
xor eax, eax
jmp 0x1019283e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
lea edx, [edi*8]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
cmp eax, esi
jne 0x10192865
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
ret 4
mov ecx, dword [ebx + 0xc]
mov edx, eax
cmp ecx, esi
jbe 0x10192878
mov eax, dword [ebx + 0x7f34]
mov edi, dword [eax]
jmp 0x1019287a
xor edi, edi
xor eax, eax
cmp ecx, esi
jbe 0x101928a4
mov dword [edi + 0x28], edx
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
inc eax
add edx, 8
cmp eax, ecx
jb 0x10192897
xor edi, edi
mov eax, ecx
jmp 0x101928a0
mov edi, dword [ebx + 0x7f34]
mov edi, dword [edi + eax*4]
cmp eax, ecx
jb 0x10192880
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x101acbe0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
je 0x101acc4b
push esi
push edi
lea ecx, [ecx]
mov edi, dword [ebx]
mov eax, dword [edi]
mov dword [ebp - 4], eax
test edi, edi
je 0x101acc40
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101acc0d
xor esi, esi
jmp 0x101acc16
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push pe_nt_image_headers32
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x10]
add esp, 0xc
test eax, eax
je 0x101acc3a
mov dword [eax], edi
jmp 0x101acc3d
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
test ecx, ecx
jne 0x101acbf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101bf5b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x101e316c]
test eax, eax
jl 0x101bf5c9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x101bf5cf
xor eax, eax
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
lea ecx, [eax + 0x24]
mov eax, 0xf
mov dword [ecx], 0
mov dword [ecx + 4], 0
add ecx, 8
sub eax, 1
jne 0x101bf5e0
mov eax, edx
pop ebp
ret 4

Function at 0x101c14f0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, 0x9e3779b9
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
cmp eax, 0xc
jb 0x101c159c
mov eax, 0xaaaaaaab
mul dword [ebp + 8]
shr edx, 3
mov edi, edi
add esi, dword [ebx + 8]
add ecx, dword [ebx + 4]
mov eax, dword [ebx]
sub eax, esi
sub eax, ecx
add eax, edi
sub ecx, esi
mov edi, esi
shr edi, 0xd
xor eax, edi
sub ecx, eax
mov edi, eax
shl edi, 8
xor ecx, edi
sub esi, ecx
sub esi, eax
mov edi, ecx
shr edi, 0xd
xor esi, edi
sub eax, esi
sub eax, ecx
mov edi, esi
shr edi, 0xc
xor eax, edi
sub ecx, esi
sub ecx, eax
mov edi, eax
shl edi, 0x10
xor ecx, edi
sub dword [ebp - 4], 0xc
sub esi, ecx
sub esi, eax
mov edi, ecx
shr edi, 5
xor esi, edi
sub eax, esi
sub eax, ecx
mov edi, esi
shr edi, 3
xor eax, edi
sub ecx, esi
mov edi, eax
shl eax, 0xa
sub ecx, edi
xor ecx, eax
sub esi, ecx
mov eax, ecx
sub esi, edi
shr eax, 0xf
xor esi, eax
add ebx, 0xc
sub edx, 1
jne 0x101c1520
mov eax, dword [ebp + 8]
add esi, eax
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0xa
ja case.default.0x101c15a7
jmp dword [eax*4 + 0x101c1678]
movzx edx, byte [ebx + 0xa]
shl edx, 0x18
add esi, edx
movzx eax, byte [ebx + 9]
shl eax, 0x10
add esi, eax
movzx edx, byte [ebx + 8]
shl edx, 8
add esi, edx
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ecx, eax
movzx edx, byte [ebx + 6]
shl edx, 0x10
add ecx, edx
movzx eax, byte [ebx + 5]
shl eax, 8
add ecx, eax
movzx edx, byte [ebx + 4]
add ecx, edx
movzx eax, byte [ebx + 3]
shl eax, 0x18
add edi, eax
movzx edx, byte [ebx + 2]
shl edx, 0x10
add edi, edx
movzx eax, byte [ebx + 1]
shl eax, 8
add edi, eax
movzx edx, byte [ebx]
add edi, edx
sub edi, esi
sub edi, ecx
sub ecx, esi
mov eax, esi
shr eax, 0xd
xor edi, eax
sub ecx, edi
mov edx, edi
shl edx, 8
xor ecx, edx
sub esi, ecx
sub esi, edi
mov eax, ecx
shr eax, 0xd
xor esi, eax
sub edi, esi
sub edi, ecx
mov edx, esi
shr edx, 0xc
xor edi, edx
sub ecx, esi
sub ecx, edi
mov eax, edi
shl eax, 0x10
xor ecx, eax
sub esi, ecx
sub esi, edi
mov edx, ecx
shr edx, 5
xor esi, edx
mov eax, esi
sub edi, eax
sub edi, ecx
mov edx, eax
shr edx, 3
xor edi, edx
sub ecx, eax
sub ecx, edi
mov edx, edi
shl edx, 0xa
xor ecx, edx
sub eax, ecx
sub eax, edi
pop edi
shr ecx, 0xf
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101c2050
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1774
call fcn.101dc550
mov eax, dword [0x101e0048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x10]
push eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xbbc]
push 0xbb7
push edx
call sub.msvcrt.dll__vsnprintf
add esp, 0x10
test eax, eax
jl 0x101c2095
cmp eax, 0xbb7
ja 0x101c2095
jne 0x101c2099
mov byte [ebp - 5], 0
cmp byte [ebp + 8], 0
je 0x101c20b9
lea eax, [ebp - 0xbbc]
push eax
push 0x1009654c
push 0xbb8
lea ecx, [ebp - 0x1774]
push ecx
jmp 0x101c20d1
lea edx, [ebp - 0xbbc]
push edx
push 0x10096578
push 0xbb8
lea eax, [ebp - 0x1774]
push eax
call fcn.100b4010
add esp, 0x10
test esi, esi
je 0x101c20f6
lea ecx, [ebp - 0x1774]
push ecx
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101dc51a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x1774]
push edx
call esi
push 0x10082304
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101dc51a
mov esp, ebp
pop ebp
ret

Function at 0x101c2120
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1774
call fcn.101dc550
mov eax, dword [0x101e0048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xbbc]
push 0xbb7
push edx
call sub.msvcrt.dll__vsnprintf
add esp, 0x10
test eax, eax
jl 0x101c2165
cmp eax, 0xbb7
ja 0x101c2165
jne 0x101c2169
mov byte [ebp - 5], 0
lea eax, [ebp - 0xbbc]
push eax
push 0x100965ac
lea ecx, [ebp - 0x1774]
push 0xbb8
push ecx
call fcn.100b4010
add esp, 0x10
test esi, esi
je 0x101c21a6
lea edx, [ebp - 0x1774]
push edx
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101dc51a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x1774]
push eax
call esi
push 0x10082304
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101dc51a
mov esp, ebp
pop ebp
ret
Function at 0x101d83d6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
mov esi, ecx
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
lea eax, [ecx + eax - 1]
dec ecx
not ecx
and eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x101d8418
mov ecx, 0x100000
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
mov dword [esi + 0x14], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x101da7f5
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [esi]
push edi
mov dword [ebp - 8], ebx
cmp ecx, 0x35
jne 0x101da85c
push ecx
mov ecx, ebx
call fcn.100fc510
mov eax, dword [esi + 0x528]
shr eax, 2
inc eax
inc eax
push eax
mov ecx, ebx
call fcn.100fc1b0
xor edi, edi
test dword [esi + 0x528], 0xfffffffc
jbe 0x101da855
mov eax, dword [esi + 0x52c]
push dword [eax + edi*4]
mov ecx, ebx
call fcn.100fc1b0
mov eax, dword [esi + 0x528]
inc edi
shr eax, 2
cmp edi, eax
jb 0x101da837
mov ecx, ebx
jmp 0x101daa17
xor eax, eax
cmp eax, dword [esi + 0x4ec]
mov edx, ecx
sbb eax, eax
and edx, 0x7ff
and eax, 0x80000000
or eax, edx
cmp ecx, 0x1f
mov edx, 0x2000
jg 0x101da8a2
je 0x101da894
sub ecx, 3
je 0x101da894
dec ecx
dec ecx
je 0x101da894
sub ecx, 3
je 0x101da894
sub ecx, 5
jne 0x101da911
mov ecx, dword [esi + 0x524]
and ecx, 1
shl ecx, 0x12
jmp 0x101da90f
sub ecx, 0x3d
je 0x101da903
dec ecx
dec ecx
je 0x101da894
sub ecx, 0x30
je 0x101da903
sub ecx, 0x4f
jne 0x101da911
movzx ecx, byte [esi + 0x526]
movzx edi, byte [esi + 0x527]
neg ecx
sbb ecx, ecx
and ecx, 0x4000
neg edi
sbb edi, edi
and edi, edx
or ecx, edi
movzx edi, byte [esi + 0x525]
neg edi
sbb edi, edi
and edi, 0x1000
or ecx, edi
movzx edi, byte [esi + 0x524]
neg edi
sbb edi, edi
and edi, 0x800
or ecx, edi
and ecx, 0x7800
jmp 0x101da90f
mov ecx, dword [esi + 0x524]
and ecx, 3
shl ecx, 0xb
or eax, ecx
mov ecx, dword [esi + 0x520]
neg ecx
sbb ecx, ecx
and ecx, edx
mov edx, dword [esi + 0x4f0]
and edx, 0xf
shl edx, 0x13
or ecx, edx
or ecx, eax
push ecx
mov ecx, ebx
call fcn.100fc510
and dword [ebp - 4], 0
lea ebx, [esi + 0x4f4]
mov eax, dword [esi + 0x4ec]
cmp eax, 3
jb 0x101da94d
push 3
pop eax
cmp dword [ebp - 4], eax
jae 0x101da9f1
mov ecx, dword [ebx]
mov eax, ecx
and eax, 0x3f
dec ecx
je 0x101da99c
dec ecx
je 0x101da98e
dec ecx
jne 0x101da9c9
mov dword [ebp + 8], 6
lea edx, [esi + 0x508]
mov edi, dword [edx]
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 4
and edi, 0xf
shl edi, cl
add edx, 4
or eax, edi
cmp dword [ebp + 8], 0x16
jb 0x101da973
jmp 0x101da9c9
mov ecx, dword [esi + 0x504]
and ecx, 0x1f
shl ecx, 6
jmp 0x101da9c7
movsx ecx, byte [esi + 0x502]
movsx edx, byte [esi + 0x501]
and ecx, 0xf
shl ecx, 4
and edx, 0xf
or ecx, edx
movsx edx, byte [esi + 0x500]
shl ecx, 4
and edx, 0xf
or ecx, edx
shl ecx, 9
or eax, ecx
mov edi, dword [ebp - 4]
inc edi
cmp edi, dword [esi + 0x4ec]
sbb ecx, ecx
and ecx, 0x80000000
or ecx, eax
push ecx
mov ecx, dword [ebp - 8]
call fcn.100fc1b0
mov dword [ebp - 4], edi
add ebx, 4
jmp 0x101da93f
xor ebx, ebx
lea edi, [esi + 0x4e8]
cmp dword [edi], ebx
jbe 0x101daa14
add esi, 8
mov ecx, dword [ebp - 8]
push esi
call fcn.101da56d
inc ebx
add esi, 0xd0
cmp ebx, dword [edi]
jb 0x101daa00
mov ecx, dword [ebp - 8]
call fcn.100fc440
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4027da
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, 7
mov dword [ebp - 0xc], 0xa
mov esi, 0xe
mov dword [ebp - 8], 9
mov eax, esi
add eax, dword [ebp - 8]
sub eax, 0x17
mov dword [ebp - 0x24], eax
and dword [ebp - 0x28], 0
jmp 0x40287f
add dword [ebp - 0x28], 0x6c2a
mov dword [ebp - 0x20], 0x747497f3
mov dword [ebp - 0x24], 0x3f8f
jmp 0x402888
dec dword [ebp - 0x20]
mov eax, dword [ebp - 8]
sub eax, 9
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], 0x43d000
mov dword [ebp - 0x2c], 0x4196c0
mov eax, edi
add eax, esi
sub eax, 0x12
mov dword [ebp - 0x10], eax
jmp 0x402866
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x20]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], eax
jb 0x402852
jmp 0x4028d4
mov eax, dword [ebp - 8]
add eax, esi
sub eax, 0x14
cmp eax, dword [ebp - 0x44]
jbe 0x402891
jmp 0x402838
mov dword [ebp - 0x28], 0x412696
jmp 0x402815
add dword [ebp - 0x24], 0x1fa71
jmp 0x40282c
mov eax, esi
sub eax, 0xe
mov dword [ebp - 4], eax
jmp 0x4028ad
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x19d34
jb 0x40289b
mov dword [ebp - 0x48], 0x4334c0
mov dword [ebp - 0x4c], 0x470000
mov dword [ebp - 0x14], 0x43a0c0
mov dword [ebp - 0x30], 0x10000000
jmp 0x4028dc
inc dword [ebp - 0x44]
jmp 0x4029f3
mov eax, dword [ebp - 8]
sub eax, 9
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0x3c]
mov eax, 0x6720
cmp eax, dword [ebp - 0x3c]
ja 0x4028e5
mov dword [ebp - 0x50], 0x34000
mov dword [ebp - 0x34], 0x1000
mov ebx, dword [ebp - 0xc]
sub ebx, 0xa
jmp 0x4029e2
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
sub eax, 0xb
add eax, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x58], eax
jmp 0x402968
mov eax, dword [ebp - 0x58]
mov ax, word [eax]
mov word [ebp - 0x54], ax
movzx edx, word [ebp - 0x54]
mov ecx, edi
sub ecx, 3
shl edx, cl
mov word [ebp - 0x52], dx
movzx edx, word [ebp - 0x52]
mov ecx, edi
add ecx, esi
sub ecx, 0x11
sar edx, cl
mov word [ebp - 0x52], dx
movzx edx, word [ebp - 0x54]
mov ecx, esi
sub ecx, 2
sar edx, cl
mov word [ebp - 0x5a], dx
jmp 0x402973
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
jmp 0x40292d
mov eax, dword [ebp - 0xc]
add eax, edi
sub eax, 0x11
movzx edx, word [ebp - 0x54]
cmp eax, edx
je 0x402a79
mov eax, dword [ebp - 0xc]
sub eax, 0xa
invalid
Function at 0x40cb2f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40cb50
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40cb48
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40cb3d
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
shr edx, 5
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x10001000
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x10004178], 0
jne 0x1000104f
xor eax, eax
push esi
mov dword [0x10004178], eax
mov esi, 0x100
mov ecx, eax
imul ecx, ecx, 0x104
cmp byte [ecx + 0x100042f8], 0
je 0x10001039
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, 0xfffe
mov eax, dword [0x10004178]
jne 0x10001050
inc eax
mov dword [0x10004178], eax
cmp eax, esi
jb 0x10001016
cmp eax, esi
jne 0x1000104e
and dword [0x10004178], 0
pop esi
ret
imul eax, eax, 0x104
add eax, 0x100042f8
mov dword [0x10004178], eax
pop esi
ret

Function at 0x10001062
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x1000111b
push str.pocketsphinx_orig.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000112d
xor ecx, ecx
mov dword [0x10004178], ecx
push dword [ecx*4 + section..data]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x10004178]
mov dword [ecx*4 + 0x10004180], eax
inc ecx
mov dword [0x10004178], ecx
cmp ecx, 0x5d
jb 0x1000108d
xor eax, eax
mov dword [0x10004178], eax
mov ecx, eax
imul ecx, ecx, 0x104
push 0xa
add ecx, 0x100042f8
push ecx
push eax
call dword [sym.imp.msvcrt.dll__itoa]
mov eax, dword [0x10004178]
imul eax, eax, 0x104
add esp, 0xc
push str.._settings.ini
push 0x104
lea eax, [eax + 0x100042f8]
push eax
push 0
push eax
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x10004178]
inc eax
mov dword [0x10004178], eax
cmp eax, 0x100
jb 0x100010bb
and dword [0x10004178], 0
jmp 0x1000112a
cmp dword [ebp + 0xc], 0
jne 0x1000112a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc
Function at 0x40cb2f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40cb50
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40cb48
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40cb3d
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
shr edx, 5
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x401034
Capabilities:
Get common file path
Get disk information

Disassembly:
push edi
sub esp, 0x200
mov edi, esp
push 0x7c
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea ecx, [edi + 0x7c]
xor edx, edx
push edx
push edx
push edx
push ecx
push edx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x337a7471
stosd dword es:[edi], eax
mov eax, 0x6c642e32
stosd dword es:[edi], eax
mov eax, 0x6c
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 0
jg 0x40107c
ret
pushal
jmp fcn.004012f0

Function at 0x401470
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
lea edi, [ecx + 0x9c]
push esi
mov ecx, esp
push ecx
mov eax, 0x2b
push eax
add dword [esp], 0x15
push 0xfffffe70
add dword [esp], 0xaec
mov esi, section..data
push esi
xor ecx, ecx
add ecx, sym.imp.KERNEL32.dll_VirtualProtect
call dword [ecx]
pop ebx
mov esi, 0x403400
mov dword [edi + 0x48], esi
lea edx, [esi - 0x161]
push 0x4020f9
pop ecx
xor eax, eax
mov ebx, dword [ecx]
add ecx, 3
inc ecx
mov dword [edx + 0x161], ebx
add edx, 4
xor dword [edx + 0x15d], 0xa6907e21
sub dword [edx + 0x15d], 0x4eac6723
add eax, 4
cmp eax, 0x55c
jne 0x4014ba
push 0
call sub.KERNEL32.dll_ResetEvent
pop ebp
ret 8
Function at 0x402924
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402961
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402981
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404fdc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d6c
test esi, esi
jne 0x402b7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e5c
jmp 0x402b9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029fc
mov edi, eax
test esi, esi
je 0x402b9c
cmp dword [ebx], 0
je 0x402b9c
dec esi
jmp 0x402b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032bc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4cc008], 0x8088405
inc edx
mov dword [ebx + 0x4cc008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4cc008], 0x8088405
inc edx
mov dword [ebx + 0x4cc008], edx
fld qword [ebx + 0x4cc06c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403300
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403316
sub ecx, 2
jne 0x403338
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40333f
cmp edx, dword [ebx + 8]
je 0x403349
mov eax, 0x64
jmp 0x403344
mov eax, 0x67
jmp 0x403344
call sub.kernel32.dll_GetLastError
call fcn.004028c4
pop ebx
ret

Function at 0x4035bc
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4035ef
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4035f6
cmp edx, dword [ebx + 8]
je 0x403600
mov eax, 0x65
jmp 0x4035fb
mov eax, 5
jmp 0x4035fb
call sub.kernel32.dll_GetLastError
call fcn.004028c4
mov eax, ebx
pop ebx
ret