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

Disassembly:
push edi
push esi
mov eax, dword [0x10065028]
mov esi, ecx
test eax, eax
je 0x1001aa36
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001aa4f
cmp dword [eax + 4], 0
je 0x1001aa4f
add eax, 8
pop esi
pop edi
ret
push 0x10065028
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001aa2a
mov eax, dword [0x10065028]
test eax, eax
je 0x1001aae6
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1001ab03
mov edi, eax
test eax, eax
jne 0x1001aaaf
movzx eax, byte [0x100651b9]
push 4
push 0x10
call fcn.10002710
add esp, 8
test eax, eax
je 0x1001ab17
mov dword [eax], 0x10065028
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x10065028]
test eax, eax
je 0x1001ab08
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001aacf
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x1001aad3
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x1001aad3
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x10065028
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001aa6d
xor eax, eax
pop esi
pop edi
ret
push 0x10065028
call fcn.1002b150
add esp, 4
jmp 0x1001aaa7
push 0x10
push 4
call fcn.1002b710
Function at 0x1001ab20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x10065038]
mov esi, ecx
test eax, eax
je 0x1001abfa
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001ab4d
cmp dword [eax + 4], 0
mov edi, eax
jne 0x1001abf5
mov eax, dword [0x10065038]
test eax, eax
je 0x1001ac1c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1001ac39
mov edi, eax
test eax, eax
jne 0x1001abb1
movzx eax, byte [0x100651b9]
push 4
push 0xc
call fcn.10002710
add esp, 8
test eax, eax
je 0x1001ac55
mov dword [eax], 0x10065038
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x10065038]
test eax, eax
je 0x1001ac43
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001abc6
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x1001abc8
mov eax, dword [esi + 4]
jmp 0x1001abc8
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x1001abf5
test ecx, ecx
je 0x1001abf5
lock dec dword [ecx]
jne 0x1001abf5
lea ecx, [esp + 4]
call fcn.1000c850
add edi, 8
jmp 0x1001ac3b
push 0x10065038
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001ab41
jmp 0x1001ab4d
push 0x10065038
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001ab6b
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
ret
push 0x10065038
call fcn.1002b150
add esp, 4
jmp 0x1001aba9
push 0xc
push 4
call fcn.1002b710
int3

Function at 0x1001ac60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x10065048]
mov esi, ecx
test eax, eax
je 0x1001ac86
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001ac9f
cmp byte [eax + 4], 0
je 0x1001ac9f
add eax, 5
pop esi
pop edi
ret
push 0x10065048
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001ac7a
mov eax, dword [0x10065048]
test eax, eax
je 0x1001ad12
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1001ad2b
mov edi, eax
test eax, eax
jne 0x1001acf0
movzx eax, byte [0x100651b9]
push 4
push 8
call fcn.10002710
add esp, 8
test eax, eax
je 0x1001ad3f
mov dword [eax], 0x10065048
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x10065048]
test eax, eax
je 0x1001ad30
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test esi, esi
je 0x1001ad05
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [edi + 5]
mov byte [edi + 4], 1
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x10065048
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001acb5
xor eax, eax
pop esi
pop edi
ret
push 0x10065048
call fcn.1002b150
add esp, 4
jmp 0x1001ace8
push 8
push 4
call fcn.1002b710
int3
Function at 0x1001ad50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x10065058]
mov esi, ecx
test eax, eax
je 0x1001ae2a
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001ad7d
cmp dword [eax + 4], 0
mov edi, eax
jne 0x1001ae25
mov eax, dword [0x10065058]
test eax, eax
je 0x1001ae4c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1001ae69
mov edi, eax
test eax, eax
jne 0x1001ade1
movzx eax, byte [0x100651b9]
push 4
push 0xc
call fcn.10002710
add esp, 8
test eax, eax
je 0x1001ae85
mov dword [eax], 0x10065058
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x10065058]
test eax, eax
je 0x1001ae73
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001adf6
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x1001adf8
mov eax, dword [esi + 4]
jmp 0x1001adf8
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x1001ae25
test ecx, ecx
je 0x1001ae25
lock dec dword [ecx]
jne 0x1001ae25
lea ecx, [esp + 4]
call fcn.1000c890
add edi, 8
jmp 0x1001ae6b
push 0x10065058
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001ad71
jmp 0x1001ad7d
push 0x10065058
call fcn.1002b150
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001ad9b
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
ret
push 0x10065058
call fcn.1002b150
add esp, 4
jmp 0x1001add9
push 0xc
push 4
call fcn.1002b710
int3
Function at 0x10025670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100256c8
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x100256c0
cmp ebx, ebp
ja 0x10025736
cmp ebp, dword [esp + 0x1c]
ja 0x10025742
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x100256c2
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x100256b0
jmp 0x1002571f
ja 0x100256c8
cmp edx, edi
mov ebx, ebp
jne 0x10025685
mov edx, dword [esp + 0x24]
test edx, edx
je 0x10025723
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x10025700
mov esi, edi
sub ecx, ebx
jns 0x10025717
jmp 0x10025725
cmp edi, edx
je 0x1002572c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x10025725
xor al, 1
cmp esi, edx
jne 0x100256e0
jmp 0x10025725
xor eax, eax
jmp 0x10025725
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100605b4
call fcn.1002b770
push 0x100605c4
push ebp
push ebx
call fcn.1002bd00
push 0x100605c4
push dword [esp + 0x20]
push ebp
call fcn.1002bc90
int3

Function at 0x1002aba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002abcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002abcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002b150
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x1002b1d1
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x1002b20c
cmp dword [esp + 4], 0
je 0x1002b1f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1002b22a
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x10065228]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x10065228], edi
jne 0x1002b1b0
mov byte [0x10065224], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x1002b203
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x1002b26c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x1002b1f7
mov esi, dword [esp]
jmp 0x1002b203
mov esi, dword [edi]
jmp 0x1002b202
mov esi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x1005ea28
push 0x1005ed24
push eax
call fcn.1002aca0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov dword [esp + 8], 0x1005ecd8
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x1005d1d4
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x1005ed14
push eax
call fcn.1002b7e0
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x1005ecd8
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x1005d1d4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.1002ad00
int3
Function at 0x1002ba20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x1002ba71
cmp eax, 1
jne 0x1002baee
mov dword [esp], 0x10060014
jmp 0x1002ba78
mov dword [esp], 0x10060012
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x1002bb0a
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x10060050
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x10026210
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x100261f0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x100261f0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 3
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.1002b7e0
mov edx, 7
mov dword [esp], 0x10060016
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x1002ba8d
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 0x50]
mov dword [esp + 0x38], 0x10060084
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 8]
mov dword [esp + 0x1c], 0x10026210
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x10023240
lea esi, [esp + 0x10]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x100261f0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x100261f0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.1002b7e0
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404600
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [0x477700]
xor eax, esp
mov dword [esp + 0x28], eax
push 4
call fcn.00407e7a
add esp, 4
test eax, eax
je 0x404624
mov dword [eax], 0x404360
jmp 0x404626
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401c30
push 0
push 0
call fcn.0040d545
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x4047a8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [esp + 4], 0
je 0x4047b7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4047be
push 0
push ecx
push dword [esp + 8]
call fcn.00404997
add esp, 0xc
test eax, eax
jne 0x4047c5
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
push str.Enter_filename:__n
movups xmmword [esp + 0x14], xmm0
push 0x478b68
movlpd qword [esp + 8], xmm0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], al
call fcn.00401420
lea eax, [esp + 0x18]
push eax
push 0x478a40
call fcn.00401200
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
je 0x404749
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
push esi
cmova eax, dword [esp + 0x14]
push edi
push ecx
push eax
push 0x478ab8
call fcn.00401a40
mov edi, eax
add esp, 0xc
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x14], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
call fcn.00401c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x10], al
test esi, esi
je 0x404735
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x404735
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x10]
mov ecx, edi
call fcn.004040b0
mov ecx, edi
call fcn.00403c10
pop edi
pop esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x40477b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047cc
push ecx
push edx
call fcn.00407eaa
add esp, 8
cmp dword [esp + 4], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
jne 0x4047d1
mov ecx, dword [esp + 0x28]
xor eax, eax
xor ecx, esp
call fcn.00407ebd
add esp, 0x2c
ret
push 6
mov dword [esp + 8], 0
call fcn.00404b4d
push 1
call fcn.00404b4d
push 5
call fcn.00404b4d
push 2
call fcn.00404b4d
call fcn.0040c8ef
call fcn.0040d3ad
int3
Function at 0x41625a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415efc

Function at 0x416265
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041608b

Function at 0x41665f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408c20
mov eax, dword [0x477700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004150f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4166a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4167fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x479518]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041782f
mov ecx, dword [esi*4 + 0x479518]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4167f6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4167f6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4167f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041782f
add esp, 0x14
test edx, edx
jl 0x4167f6
jg 0x41676c
test eax, eax
jb 0x4167f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4167f6
jl 0x416786
cmp dword [ebp - 0x1008], eax
ja 0x4167f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4167a4
test ebx, ebx
je 0x4167dd
cmp ecx, edi
jae 0x4167dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4167be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4167ca
cmp byte [ecx + 1], 0xa
jne 0x4167ca
inc ecx
jmp 0x4167ca
movzx eax, al
movsx eax, byte [eax + 0x4779d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4167a4
cmp edx, ebx
jne 0x4167a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4167fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407ebd
leave
ret
Function at 0x416ccd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x479518]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416d0d
cmp byte [ebx], 0xa
jne 0x416d0d
or byte [eax + edi + 0x28], 4
jmp 0x416d12
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416e10
mov al, byte [edx]
cmp al, 0x1a
je 0x416df2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416d41
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416d66
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416d70
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416d23
jmp 0x416e10
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ded
cmp dword [ebp - 0xc], 0
je 0x416ded
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x479518]
test byte [eax + edi + 0x28], 0x48
je 0x416dc7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416db2
mov byte [esi], dl
jmp 0x416dc3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479518]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416e10
cmp byte [ebp - 1], 0xa
jne 0x416dd6
cmp esi, ebx
jne 0x416dd6
mov byte [esi], 0xa
jmp 0x416e0f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416e10
mov byte [esi], 0xd
jmp 0x416e0f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x479518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416e0c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416e10
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416e19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x479518]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416e5c
cmp word [esi], dx
jne 0x416e5c
or byte [edi + eax + 0x28], 4
jmp 0x416e61
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416fb4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416f94
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416ea3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416ed9
cmp eax, edx
jae 0x416ee5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x416e7b
jmp 0x416fb4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416f90
cmp dword [ebp - 0x14], 0
je 0x416f90
mov eax, dword [ebx*4 + 0x479518]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416f68
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416f31
mov word [esi], cx
jmp 0x416f64
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x479518]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x479518]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x479518]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416fb4
pop ebx
cmp word [ebp - 4], bx
jne 0x416f79
cmp esi, dword [ebp + 0xc]
jne 0x416f79
mov word [esi], bx
jmp 0x416fb1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416fb4
push 0xd
jmp 0x416fad
mov ecx, dword [ebx*4 + 0x479518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416fab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416fb4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x828a4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0xd7030], 0x8088405
inc edx
mov dword [0xd7030], edx
mul edx
mov eax, edx
ret

Function at 0x88110
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret