joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418c00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x426034]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.0040d130
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x40c78c
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.004014c0
call fcn.0040c9f0
add esp, 0x18
test al, al
je 0x40c62f
mov bl, 1
jmp 0x40c78e
call fcn.0040cd60
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403f20
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x40c67c
cmp dword [ebp + 0x1c], 8
jb 0x40c65f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00403170
cmp dword [ebp - 0x14], 8
jb 0x40c68d
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.0040cc00
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x40c73d
cmp ecx, esi
jbe 0x40c781
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x40c734
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00403820
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004014c0
call fcn.0040c9f0
add esp, 0x18
test al, al
jne 0x40c71c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x40c731
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x40c6b7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.004014c0
call fcn.0040c9f0
add esp, 0x18
test al, al
je 0x40c78c
mov bl, 1
jmp 0x40c78e
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x40c79f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
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.00417832
mov esp, ebp
pop ebp
ret
Function at 0x40c9f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418c98
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x426034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.0040cc00
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x40ca4e
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4156a0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419919
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x426034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00401c70
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00401c70
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00401c70
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.004176e0
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.00417460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push dword [0x426a14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x416f94
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x416f6a
mov ecx, eax
call fcn.00416700
mov esi, eax
jmp 0x416f6c
xor esi, esi
push dword [0x426a14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416f84
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x426a14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x5d8ab4
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
sub ecx, ecx
call fcn.005d8adf
inc eax
xor dword [esi], ebx
add ecx, 1
mov eax, eax
add esi, 2
or ecx, ecx
mov eax, ecx
dec eax
cmp esi, edi
jl fcn.005d8ab4
add eax, ecx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401123
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040117e
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401152
push 4
push dword [esp + 0x18]
call fcn.0040219e
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401107
push ebp
push ebp
call fcn.00407377
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401174
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00401ecb
int3

Function at 0x40157f
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x40167a
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, 0xb83bf
mov ebp, str._d_The_remote_protocol_ID:
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0xa7
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x60
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x10
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xfd
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x9f
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x47
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x25
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0xc
add esp, 0x40
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x52
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xaa
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x3e
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xca
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x13
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0x7d
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xc7
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0x82
add esp, 0x40
push ebx
push ebp
call fcn.00401924
add byte [esi + edi], 0xf7
push ebx
push ebp
call fcn.00401924
xor byte [esi + edi], 0xca
add esp, 0x10
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40159d
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x414230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41425d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41425d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xd68b59
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xd68886
push esi
pop eax
sub esp, 4
mov dword [esp], esi
pop esi
add eax, esi
call fcn.00d68b9d
and eax, esi
add esi, eax
sub esi, esi
xor dword [edx], ecx
or eax, eax
mov eax, 0x3b0343cd
add edx, 2
add esi, eax
add esi, 0x86f3a8bf
add eax, esi
cmp edx, edi
jl fcn.00d68b59
or esi, eax
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x30b4143d
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5a4347d8
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407bff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0x29c27be8
add dword [ebp - 8], 0x4196
mov byte [ebp - 1], 1
lea edi, [ebp - 0x1c]
lea esi, [0x42e63e]
mov ecx, 0x11
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, eax
mov dword [ebp - 8], edx
lea edi, [ebp - 0x2b]
lea esi, [0x42e64f]
mov ecx, 0xf
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32]
lea esi, [0x42e65e]
mov ecx, 7
rep movsb byte es:[edi], byte [esi]
sub dword [ebp - 8], 0x6151
cmp byte [ebx], 0x67
jne 0x407c7a
inc ebx
add byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mul dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
jmp 0x407c96
mov al, byte [ebx]
movzx edx, byte [ebp - 9]
cmp al, byte [ebp + edx - 0x1c]
jne 0x407c92
add byte [ebp - 1], 4
jmp 0x407c9c
add byte [ebp - 9], 1
cmp byte [ebp - 9], 0x11
jb 0x407c80
xor dword [ebp - 8], 0x774b
mov byte [ebp - 0xa], 0
jmp 0x407d57
mov al, byte [ebx]
movzx edx, byte [ebp - 0xa]
cmp al, byte [ebp + edx - 0x2b]
jne 0x407d53
add byte [ebp - 1], 1
mov eax, 0x67c6
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 1]
cmp eax, 0xc0
jge 0x407d38
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x40
jne 0x407ceb
add byte [ebp - 1], 1
movzx eax, byte [ebx + 1]
mov edx, eax
and edx, 7
cmp edx, 4
je 0x407d03
cmp edx, 5
jne 0x407d07
cmp eax, 0x40
jge 0x407d07
add byte [ebp - 1], 1
sub dword [ebp - 8], 0x251a
movzx eax, byte [ebx + 1]
test byte [ebx + 1], 0xc0
jne 0x407d24
and eax, 7
cmp eax, 5
jne 0x407d24
add byte [ebp - 1], 3
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x80
jne 0x407d38
add byte [ebp - 1], 4
movzx eax, byte [ebx]
cmp eax, 0xf7
jne 0x407d4c
test byte [ebx + 1], 0x38
jne 0x407d4c
add byte [ebp - 1], 4
sub dword [ebp - 8], 0x2d1d
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 0xf
jb 0x407cac
mov byte [ebp - 0xb], 0
jmp 0x407d7d
mov al, byte [ebx]
movzx edx, byte [ebp - 0xb]
cmp al, byte [ebp + edx - 0x32]
jne 0x407d79
add byte [ebp - 1], 1
jmp 0x407d83
add byte [ebp - 0xb], 1
cmp byte [ebp - 0xb], 7
jb 0x407d67
mov eax, 0x7d5b
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx]
cmp eax, 0x83
jne 0x407d9f
add byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43cf76
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43ccda
call fcn.0043cfa0
add edi, 0xbe7c7f8c
sub edi, 0xe4b082fa
xor dword [ebx], eax
sub edi, 0x1aa5f868
inc ebx
or esi, esi
cmp ebx, ecx
jne fcn.0043cf76
add edi, esi
mov edi, esi
ret
Function at 0x401cca
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov esi, ebx
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x7f
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x78
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x21
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x42
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xef
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xdb
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xd
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x10
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x37
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x7a
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x84
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 7
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 9
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x45
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x67
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xe7
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x50
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x39
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x70
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x36
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xd5
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x11
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xdd
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x85
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x67
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x24
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xef
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x3e
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x11
inc esi
cmp esi, 0x2d200
jb 0x401cd7
pop edi
pop esi
pop ebx
ret
Function at 0x401e44
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x10]
mov edi, dword [eax]
mov ebp, edi
xor ebp, 0x14d
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], 0x10
jb 0x401e66
mov esi, dword [esi]
shr edi, 2
xor ebx, ebx
mov dword [esp + 0x18], edi
test edi, edi
je 0x401ec3
mov dword [esp + 0x14], edi
mov edi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
push 4
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00408b60
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebp, ebp, 0x5bd1e991
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov dword [esp + 0x10], eax
sub dword [esp + 0x14], 1
jne 0x401e79
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x401ee9
sub eax, 1
je 0x401edf
sub eax, 1
jne 0x401ef7
movsx ebx, byte [esi + edi*4 + 2]
shl ebx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ebx, eax
movsx eax, byte [esi + edi*4]
xor eax, ebx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x10
ret

Function at 0x401f13
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x435018]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x465200]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x401f82
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.0040249c
test esi, esi
je 0x401f6f
lea ecx, [esp + 0x1c]
call fcn.00401e44
test eax, eax
je 0x401f6f
cmp eax, dword [esp + 0x14]
je 0x401f9a
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402d5a
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401f4a
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407f54
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402d5a
jmp 0x401f84
Function at 0x405b6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405b8b
jl 0x405b82
test edi, edi
jne 0x405b8b
xor eax, eax
xor edx, edx
jmp 0x405c4c
cmp dword [ebx + 0x38], 0
je 0x405ba0
push eax
push edi
push dword [ebp + 8]
call fcn.00405c52
jmp 0x405c4c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405be7
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405be7
cmp eax, edi
jb 0x405bc1
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408b60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405bed
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405c41
mov ecx, ebx
call fcn.00405281
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405c2c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041050b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405c41
jmp 0x405bff
test edx, edx
je 0x405c41
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041050b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40874a
Capabilities:
Parse pe header

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

Function at 0x415f1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ac7c
push 0x42ac74
push str.FlsAlloc
push 0x1e
call fcn.00415d4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f51
push dword [ebp + 8]
mov ecx, esi
call dword [0x427164]
call esi
jmp 0x415f57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415f9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ac8c
push 0x42ac84
push str.FlsGetValue
push 0x20
call fcn.00415d4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415fd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x427164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419b56
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004197f8

Function at 0x419b61
Capabilities:
Read file on windows

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

Function at 0x419f5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ab0
mov eax, dword [0x435018]
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.00417bb9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419f9d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a0f9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425a00
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 + 0x436d88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b12b
mov ecx, dword [esi*4 + 0x436d88]
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 0x41a0f2
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a0f2
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 0x41a0f2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b12b
add esp, 0x14
test edx, edx
jl 0x41a0f2
jg 0x41a068
test eax, eax
jb 0x41a0f2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a0f2
jl 0x41a082
cmp dword [ebp - 0x1008], eax
ja 0x41a0f2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a0a0
test ebx, ebx
je 0x41a0d9
cmp ecx, edi
jae 0x41a0d9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a0ba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a0c6
cmp byte [ecx + 1], 0xa
jne 0x41a0c6
inc ecx
jmp 0x41a0c6
movzx eax, al
movsx eax, byte [eax + 0x4352c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a0a0
cmp edx, ebx
jne 0x41a0a0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a0f7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407f54
leave
ret