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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b11e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49f080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov ax, word [ebp + 0x10]
mov bl, byte [ebp + 0x12]
mov dword [ebp - 0x14], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov word [ebp - 0x18], ax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push edi
push ecx
mov dword [ebp - 0x14], 1
call fcn.00436640
test al, al
je 0x437178
mov ecx, dword [edi]
xor esi, esi
movzx eax, byte [ebp - 0x18]
mov al, byte [eax + ecx]
mov byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
mov dword [ebp - 0x18], esi
mov al, byte [eax + ecx]
mov byte [ebp - 0x13], al
movzx eax, bl
mov al, byte [eax + ecx]
mov byte [ebp - 0x12], al
nop dword [eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
call fcn.00452205
add esp, 4
lea ebx, [esi - 1]
neg ebx
mov eax, 5
sbb ebx, ebx
add ebx, 2
cmp esi, 2
cmove ebx, eax
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, 0xa
jbe 0x43716f
mov esi, 0xa
call fcn.004521e4
mov ecx, eax
mov eax, dword [edi]
sar ecx, 0xc
xor byte [eax + esi], cl
add esi, ebx
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp esi, eax
jb 0x437152
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 3
jb 0x437120
mov eax, edi
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.004435e2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
movlpd qword [ebp - 0x18], xmm0
push ebx
push esi
push edi
test eax, eax
jl 0x438d26
mov esi, dword [ebp + 8]
jg 0x438cd7
test esi, esi
je 0x438d26
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
test eax, eax
jl 0x438cf5
jg 0x438cee
cmp esi, 0x7fffffff
jbe 0x438cf5
mov edi, 0x7fffffff
jmp 0x438cf7
mov edi, esi
mov ecx, dword [ebp - 0xc]
push edx
push edi
add ecx, ebx
push 1
push ecx
call fcn.00451cad
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
add esp, 0x10
add ebx, eax
mov eax, dword [ebp + 0xc]
adc ecx, edx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x438ce0
jg 0x438d26
cmp ebx, esi
jb 0x438ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
push esi
push edi
test eax, eax
je 0x43913d
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0xfffffffffffffff9
push ebx
push esi
call fcn.00466b20
mov ecx, eax
mov edi, edx
shld edi, ecx, 3
shl ecx, 3
sub ecx, eax
mov eax, dword [ebp + 0xc]
sbb edi, edx
add esi, ecx
adc ebx, edi
mov edi, dword [ebp + 8]
cmp eax, 1
jg 0x4390f0
jl 0x4390ae
test edi, edi
jae 0x4390f0
xor edx, edx
test eax, eax
jl 0x43913d
jg 0x4390c2
test edi, edi
je 0x43913d
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov al, byte [esi + ebx]
xor byte [ecx + edx], al
xor ecx, ecx
inc edx
lea eax, [esi + 1]
cmp esi, 6
cmovne ecx, eax
xor eax, eax
mov esi, ecx
cmp eax, dword [ebp + 0xc]
jl 0x4390c5
jg 0x43913d
cmp edx, edi
jb 0x4390c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
nop
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov al, byte [esi + eax]
xor byte [ecx + edi], al
add esi, 1
mov edi, dword [ebp + 8]
adc ebx, 0
cmp esi, 7
jne 0x43912c
test ebx, ebx
jne 0x43912c
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add ecx, 1
adc edx, 0
cmp edx, dword [ebp + 0xc]
jl 0x439100
jg 0x43913d
cmp ecx, edi
jb 0x439100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439f60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or eax, 0xffffffff
mov dword [ebp - 4], ecx
cmp dword [0x4a19dc], 0
push edi
mov edi, edx
jne 0x43a034
xor esi, esi
push ebx
nop
mov edx, esi
mov ecx, esi
shr edx, 1
mov ebx, edx
xor ebx, 0xedb88320
test cl, 1
cmove ebx, edx
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test bl, 1
cmove edx, ecx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
test dl, 1
cmove ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test bl, 1
cmove edx, ecx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
test dl, 1
cmove ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test bl, 1
cmove edx, ecx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
test dl, 1
cmove ebx, ecx
mov edx, ebx
shr edx, 1
mov ecx, edx
xor ecx, 0xedb88320
test bl, 1
cmove ecx, edx
mov dword [esi*4 + 0x621b70], ecx
inc esi
cmp esi, 0x100
jb 0x439f80
mov ecx, dword [ebp - 4]
pop ebx
mov dword [0x4a19dc], 1
xor esi, esi
test edi, edi
je 0x43a05b
nop word [eax + eax]
movzx edx, byte [ecx + esi]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [ebp - 4]
xor eax, dword [edx*4 + 0x621b70]
cmp esi, edi
jb 0x43a040
pop edi
not eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0xffffffffffffffff
push 0xfffffffffffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call fcn.00466b20
mov ecx, eax
mov edi, edx
shld edi, ecx, 1
add ecx, ecx
add eax, ecx
adc edx, edi
mov edi, dword [ebp + 8]
shld edx, eax, 2
shl eax, 2
add esi, eax
adc ebx, edx
cmp dword [ebp + 0xc], 1
jg 0x43b374
jl 0x43b338
test edi, edi
jae 0x43b374
mov ebx, dword [ebp + 0xc]
xor edx, edx
test ebx, ebx
jl 0x43b3bf
jg 0x43b347
test edi, edi
je 0x43b3bf
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov al, byte [esi + eax]
xor byte [ecx + edx], al
xor ecx, ecx
inc edx
lea eax, [esi + 1]
cmp esi, 0xb
cmovne ecx, eax
xor eax, eax
mov esi, ecx
cmp eax, ebx
jl 0x43b347
jg 0x43b3bf
cmp edx, edi
jb 0x43b347
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movlpd qword [ebp + 0x10], xmm0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov al, byte [esi + eax]
xor byte [ecx + edi], al
add esi, 1
mov edi, dword [ebp + 8]
adc ebx, 0
cmp esi, 0xc
jne 0x43b3ae
test ebx, ebx
jne 0x43b3ae
xorps xmm0, xmm0
movlpd qword [ebp + 0x10], xmm0
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
add ecx, 1
adc edx, 0
cmp edx, dword [ebp + 0xc]
jl 0x43b382
jg 0x43b3bf
cmp ecx, edi
jb 0x43b382
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bd50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x49f080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push 0xf8
push 0
push edi
mov ebx, ecx
call fcn.00445500
add esp, 0xc
test esi, esi
jne 0x43bd85
push 0x57
jmp 0x43be0f
push 0x1c
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
push esi
push ebx
movups xmmword [ebp - 0x24], xmm0
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x43be15
push 0
push 0x40
lea eax, [ebp - 0x64]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x43be15
mov eax, 0x5a4d
cmp word [ebp - 0x64], ax
jne 0x43be0a
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
ja 0x43be0a
cmp eax, 0x40
jb 0x43be0a
push 0
push 0xf8
push edi
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x43be15
cmp dword [edi], 0x4550
jne 0x43be0a
mov eax, dword [ebp - 0x28]
add eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004435e2
mov esp, ebp
pop ebp
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004435e2
mov esp, ebp
pop ebp
ret
Function at 0x43d0a0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x49f080]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0xc], eax
test edi, edi
jne 0x43d0d3
xorps xmm0, xmm0
lea edi, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
push edx
push 0
push 0
push 0x4000004
push 1
push 0
push 0
push 0
push ecx
call esi
test eax, eax
je 0x43d12d
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [edi]
call fcn.0043c590
test eax, eax
jne 0x43d142
mov ecx, dword [edi + 8]
push esi
push dword [esp + 0x10]
call fcn.0043ce00
test eax, eax
jne 0x43d142
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004435e2
mov esp, ebp
pop ebp
ret 0x2c
lea eax, [esp + 0x10]
cmp edi, eax
jne 0x43d159
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004435e2
mov esp, ebp
pop ebp
ret 0x2c

Function at 0x43d360
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x49f080]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0
push 0x4e20
push 0
push 0
push 0xff
push 6
push 0x40000001
push 0x4976c8
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43d475
push 0x1030
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x43d47f
push 0x1030
push 0
push esi
call fcn.00445500
add esp, 0xc
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 1
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x43d489
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x43d449
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x217
jne 0x43d45d
mov dword [esp + 0x10], 0
lock inc dword [0x4a19e4]
push esi
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 0
push eax
push 0x100d
lea eax, [esi + 0x20]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d442
call edi
cmp eax, 0x3e5
je 0x43d442
call edi
mov ecx, ebx
call fcn.0043d360
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004435e2
mov esp, ebp
pop ebp
ret
cmp eax, 0x3e5
je 0x43d449
cmp eax, 0x218
je 0x43d449
mov ecx, 0x49772c
call fcn.0043d2a0
mov ecx, str.CreatePipe
call fcn.0043d2a0
mov ecx, str.GlobalAlloc_pClient
call fcn.0043d2a0
mov ecx, str.CreateIoComplietionPort_pClient
call fcn.0043d2a0
int3
Function at 0x43f6a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x49cf48
push 0x444d80
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x49f080]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x34], edx
mov edx, ecx
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x43f6eb
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x43f706
push 0xc1
jmp 0x43f837
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
je 0x43f71d
push 0xbf
jmp 0x43f837
cmp word [ecx + 0x14], 0
je 0x43f832
mov ebx, dword [ecx + 0x78]
lea eax, [ebx + edx]
neg ebx
sbb ebx, ebx
and ebx, eax
je 0x43f832
mov eax, dword [ecx + 0x7c]
add eax, ebx
mov dword [ebp - 0x24], eax
mov esi, dword [ebx + 0x1c]
lea eax, [esi + edx]
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebx + 0x20]
lea eax, [ecx + edx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x24]
lea eax, [ecx + edx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x20], ecx
xor edi, edi
mov dword [ebp - 0x38], edi
cmp edi, dword [ebx + 0x14]
jae 0x43f7f4
test esi, esi
je 0x43f78b
mov esi, dword [esi + edi*4]
lea eax, [edx + esi]
neg esi
sbb esi, esi
and esi, eax
jmp 0x43f78d
xor esi, esi
mov dword [ebp - 0x28], esi
xor eax, eax
cmp esi, ebx
jbe 0x43f7a1
xor edx, edx
cmp esi, dword [ebp - 0x24]
cmovb esi, edx
mov dword [ebp - 0x28], esi
xor edx, edx
mov dword [ebp - 0x30], edx
cmp edx, dword [ebx + 0x18]
jae 0x43f7c8
movzx ecx, word [ecx + edx*2]
cmp ecx, edi
jne 0x43f7ee
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x43f7ea
mov eax, dword [eax + edx*4]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0x10]
add ecx, edi
push esi
push eax
push ecx
push dword [ebp - 0x34]
mov eax, 0x4336d0
call eax
test eax, eax
je 0x43f7f4
inc edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
jmp 0x43f771
xor eax, eax
jmp 0x43f7c8
inc edx
mov ecx, dword [ebp - 0x20]
jmp 0x43f7a3
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x441575
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x44159c
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x44159f
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00441551
pop esi
leave
ret 8

Function at 0x441ae9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.0044162d
mov edi, eax
test edi, edi
jne 0x441b10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x441b59
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x441b54
test al, 0x10
je 0x441b54
test eax, 0x400
je 0x441b50
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00441b5f
push dword [ebp - 4]
mov esi, eax
call fcn.00441698
test esi, esi
jne 0x441b54
xor edx, edx
jmp 0x441b56
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4443ee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44442d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44442d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44442d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44442d
cmp dword [ecx + 0x74], 0xe
jbe 0x44442d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x452847
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00444650
mov eax, dword [0x49f080]
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.00457665
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x452889
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4529e5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00466b20
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 + 0x4a1588]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0045ba66
mov ecx, dword [esi*4 + 0x4a1588]
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 0x4529de
cmp eax, dword [edi + ecx + 0x24]
jne 0x4529de
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 0x4529de
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045ba66
add esp, 0x14
test edx, edx
jl 0x4529de
jg 0x452954
test eax, eax
jb 0x4529de
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4529de
jl 0x45296e
cmp dword [ebp - 0x1008], eax
ja 0x4529de
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45298c
test ebx, ebx
je 0x4529c5
cmp ecx, edi
jae 0x4529c5
mov al, byte [ecx]
cmp al, 0xd
jne 0x4529a6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4529b2
cmp byte [ecx + 1], 0xa
jne 0x4529b2
inc ecx
jmp 0x4529b2
movzx eax, al
movsx eax, byte [eax + 0x49f328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45298c
cmp edx, ebx
jne 0x45298c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4529e3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004435e2
leave
ret
Function at 0x45a2c1
Capabilities:
Read file on windows

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

Function at 0x45a2cc
Capabilities:
Read file on windows

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

Function at 0x45a70b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d578
push 0x48d570
push 0x48b034
push 0x1e
call fcn.0045a578
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45a73f
push dword [ebp + 8]
mov ecx, esi
call dword [0x46c208]
call esi
jmp 0x45a745
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45a789
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d588
push 0x48d580
push 0x48b058
push 0x20
call fcn.0045a578
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45a7c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x46c208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45af1e
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 + 0x4a1588]
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 0x45af5e
cmp byte [ebx], 0xa
jne 0x45af5e
or byte [eax + edi + 0x28], 4
jmp 0x45af63
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45b061
mov al, byte [edx]
cmp al, 0x1a
je 0x45b043
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45af92
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x45afb7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45afc1
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 0x45af74
jmp 0x45b061
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 0x45b03e
cmp dword [ebp - 0xc], 0
je 0x45b03e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a1588]
test byte [eax + edi + 0x28], 0x48
je 0x45b018
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45b003
mov byte [esi], dl
jmp 0x45b014
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a1588]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45b061
cmp byte [ebp - 1], 0xa
jne 0x45b027
cmp esi, ebx
jne 0x45b027
mov byte [esi], 0xa
jmp 0x45b060
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045ba84
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45b061
mov byte [esi], 0xd
jmp 0x45b060
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a1588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45b05d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45b061
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45b06a
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 + 0x4a1588]
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 0x45b0ad
cmp word [esi], dx
jne 0x45b0ad
or byte [edi + eax + 0x28], 4
jmp 0x45b0b2
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 0x45b1eb
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 0x45b1cb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45b0f4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45b12a
cmp eax, edx
jae 0x45b136
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 0x45b0cc
jmp 0x45b1eb
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 0x45b1c7
cmp dword [ebp - 0x14], 0
je 0x45b1c7
mov eax, dword [ebx*4 + 0x4a1588]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45b19f
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x45b1e5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a1588]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4a1588]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a1588]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x45b1e8
pop ebx
cmp word [ebp - 4], bx
jne 0x45b1b0
cmp esi, dword [ebp + 0xc]
jne 0x45b1b0
mov word [esi], bx
jmp 0x45b1e8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045ba84
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45b1eb
push 0xd
jmp 0x45b1e4
mov ecx, dword [ebx*4 + 0x4a1588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45b1e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45b1eb
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