joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ccfe0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100cd192
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x100cd17c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x100cd02f
lea ebp, [eax + 0xe]
jmp 0x100cd03b
cmp eax, 0x17
jne 0x100cd0e9
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x100cd0e9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100cd0e9
cmp eax, ebp
jb 0x100cd0e9
push 0x20
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x100cd171
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x100cd160
push ebp
push dword [ebx + 0x18]
push eax
call fcn.100fe08a
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x100cd0d5
push eax
call dword [0x1017b00c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x100cd146
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x100cd0e5
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x100cd022
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x100cd108
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x100cd178
test esi, esi
je 0x100cd135
push dword [esi + 0x18]
call dword [0x1017b004]
push dword [esi + 0x14]
call dword [0x1017b004]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x1017b004]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x100cd110
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x1017b004]
push edi
call dword [0x1017b004]
add esp, 8
jmp 0x100cd0f8
push edi
mov ebx, 8
call dword [0x1017b004]
add esp, 4
jmp 0x100cd0f8
mov ebx, 8
jmp 0x100cd0f8
test esi, esi
jne 0x100cd188
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x100dde10
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100dde5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.100bb0b0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.100dda20
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x100ddfa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x14c]
jne 0x100de0ee
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x100ddfee
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x100ddfee
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100ddfee
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x100de059
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100de059
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100de059
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100de059
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100de059
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100de059
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.100ddb20
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x100de0ad
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100bb0b0
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.100dde80
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100de0eb
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100bb0b0
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100fba73
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
movzx eax, ax
mov edx, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
shr edi, 8
mov ebx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x100fbad2
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + ebx*2]
mov esi, eax
movzx eax, al
shr esi, 8
add esi, edx
cmp edi, eax
jb 0x100fbad2
jne 0x100fbaca
cmp edx, esi
jge 0x100fbaca
mov eax, dword [ebp + 8]
movzx eax, al
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [edx + eax]
cmp ax, word [ebp - 4]
je 0x100fbaf6
inc edx
cmp edx, esi
jl 0x100fbab8
inc ebx
mov edx, esi
cmp ebx, dword [ebp + 0x10]
jb 0x100fba94
mov bl, 1
cmp dword [ebp + 0x1c], ecx
jbe 0x100fbb09
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
movzx eax, byte [ecx + esi]
test al, al
jns 0x100fbafa
inc ecx
and eax, 0x7f
shl eax, 8
movzx edx, byte [ecx + esi]
or edx, eax
jmp 0x100fbafc
xor al, al
jmp 0x100fbb0b
mov edx, eax
sub edi, edx
js 0x100fbb09
xor bl, 1
inc ecx
cmp ecx, dword [ebp + 0x1c]
jb 0x100fbadf
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41b015
lea edi, [esi - 0x1a015]
push edi
or ebp, 0xffffffff
jmp 0x429ea2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429e98
mov eax, 1
add ebx, ebx
jne 0x429ebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429eb0
jne 0x429ecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429eb0
xor ecx, ecx
sub eax, 3
jb 0x429ee0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429f52
mov ebp, eax
add ebx, ebx
jne 0x429eeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429ef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x429f1c
inc ecx
add ebx, ebx
jne 0x429f08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429efd
jne 0x429f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429efd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x429f3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x429f2d
jmp 0x429e9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x429f3c
add edi, ecx
jmp 0x429e9e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x429f5a
cmp byte [edi], 7
jne 0x429f5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x429f5f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429fd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e158]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e1f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429f8c
mov ecx, edi
jns 0x429fbb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e1fc]
or eax, eax
je 0x429fd1
mov dword [ebx], eax
add ebx, 4
jmp 0x429fa9
call dword [esi + 0x2e20c]
mov ebp, dword [esi + 0x2e200]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42a00b
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x810f05
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00810f84
jae 0x810f11
xor ecx, ecx
call fcn.00810f84
jae 0x810f3b
xor eax, eax
call fcn.00810f84
jae 0x810f4c
mov al, 0x10
call fcn.00810f84
adc al, al
jae 0x810f2d
jne 0x810f79
stosb byte es:[edi], al
jmp 0x810f12
call fcn.00810f90
dec ecx
loop 0x810f58
mov eax, ebp
call fcn.00810f8e
jmp 0x810f7a
lodsb al, byte [esi]
shr eax, 1
je 0x810fa0
adc ecx, 2
mov ebp, eax
jmp 0x810f7a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00810f8e
cmp eax, 0x7d00
jae 0x810f78
cmp eax, 0x500
jae 0x810f79
cmp eax, 0x7f
ja 0x810f7a
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x810f12
pop ebp
ret 8
Function at 0x408b30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x408b4e
mov ecx, dword [ebp - 8]
call fcn.00433f80
jmp 0x408b61
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x408b61
mov ecx, dword [ebp - 8]
call fcn.00433de0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x433de0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x433e09
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x433e75
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x433e4d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x433e54
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x433e00
mov dword [ebp - 0xc], 0xe3
jmp 0x433e87
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x433ef3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x433ecb
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x433ed2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x433e7e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x433f3c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x433f43
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x433f80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x433f9b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x434007
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x433fdf
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x433fe6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x433f92
mov esp, ebp
pop ebp
ret
Function at 0x443ad9
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 0x443afa
jl 0x443af1
test edi, edi
jne 0x443afa
xor eax, eax
xor edx, edx
jmp 0x443bbb
cmp dword [ebx + 0x38], 0
je 0x443b0f
push eax
push edi
push dword [ebp + 8]
call fcn.00438fb0
jmp 0x443bbb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x443b56
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x443b56
cmp eax, edi
jb 0x443b30
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00446380
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 0x443b5c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x443bb0
mov ecx, ebx
call fcn.00443444
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x443b9b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0044d9e7
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 0x443bb0
jmp 0x443b6e
test edx, edx
je 0x443bb0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0044d9e7
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 0x446043
Capabilities:
Parse pe header

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

Function at 0x455236
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469260
push 0x469258
push str.FlsAlloc
push 0x1f
call fcn.004550fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45526a
push dword [ebp + 8]
mov ecx, esi
call dword [0x463214]
call esi
jmp 0x455270
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4552b4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469270
push 0x469268
push str.FlsGetValue
push 0x21
call fcn.004550fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4552eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x463214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4552f3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469278
push 0x469270
push str.FlsSetValue
push 0x22
call fcn.004550fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45532d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x463214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x457974
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00445560
mov eax, dword [0x4d1840]
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.00453896
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4579b6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x457b12
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00460df0
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 + 0x4d4848]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00458b4a
mov ecx, dword [esi*4 + 0x4d4848]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x457b0b
cmp eax, dword [ecx + edi + 0x24]
jne 0x457b0b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457b0b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458b4a
add esp, 0x14
test edx, edx
jl 0x457b0b
jg 0x457a81
test eax, eax
jb 0x457b0b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x457b0b
jl 0x457a9b
cmp dword [ebp - 0x1008], eax
ja 0x457b0b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x457ab9
test ebx, ebx
je 0x457af2
cmp ecx, edi
jae 0x457af2
mov al, byte [ecx]
cmp al, 0xd
jne 0x457ad3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x457adf
cmp byte [ecx + 1], 0xa
jne 0x457adf
inc ecx
jmp 0x457adf
movzx eax, al
movsx eax, byte [eax + 0x4d1b08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x457ab9
cmp edx, ebx
jne 0x457ab9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x457b10
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00445a4a
leave
ret
Function at 0x457fe2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4d4848]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x458022
cmp byte [ebx], 0xa
jne 0x458022
or byte [edi + eax + 0x28], 4
jmp 0x458027
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x458126
mov dl, byte [eax]
cmp dl, 0x1a
je 0x458109
inc eax
cmp dl, 0xd
je 0x458053
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x458079
cmp eax, ecx
jae 0x458087
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x45803b
jmp 0x458126
push 0
lea eax, [ebp - 0x10]
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 0x458104
cmp dword [ebp - 0x10], 0
je 0x458104
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d4848]
test byte [eax + edi + 0x28], 0x48
je 0x4580de
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4580c9
mov byte [esi], dl
jmp 0x4580da
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d4848]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x458126
cmp byte [ebp - 1], 0xa
jne 0x4580ed
cmp esi, ebx
jne 0x4580ed
mov byte [esi], 0xa
jmp 0x458125
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00458b68
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x458126
mov byte [esi], 0xd
jmp 0x458125
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d4848]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x458123
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x458126
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret