joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f245
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4160e0]
push edi
jae 0x40f40c
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x416100]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40f40c
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x40f2eb
test dl, 2
jne 0x40f2eb
test dl, 0x48
je 0x40f2b5
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40f2b5
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40f2fe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40f2e6
mov dword [0x415c64], ecx
jmp 0x40f413
cmp eax, 0x6d
jne 0x40f2f2
xor eax, eax
jmp 0x40f420
push eax
call fcn.0040d739
pop ecx
jmp 0x40f41d
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40f407
test edx, edx
je 0x40f321
cmp byte [edi], 0xa
jne 0x40f321
or al, 4
jmp 0x40f323
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40f401
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40f3f1
cmp al, 0xd
je 0x40f357
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x40f3e3
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40f371
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40f36c
add dword [ebp - 8], 2
jmp 0x40f3c5
mov dword [ebp - 8], eax
jmp 0x40f3df
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40f399
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x40f3df
cmp dword [ebp - 0x10], 0
je 0x40f3df
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x40f3ba
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40f3c5
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x40f3e2
cmp edi, dword [ebp + 0xc]
jne 0x40f3ca
cmp byte [ebp - 1], 0xa
jne 0x40f3ca
mov byte [edi], 0xa
jmp 0x40f3e2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040be08
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40f3e3
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40f33b
jmp 0x40f401
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40f401
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x40f420
and dword [0x415c64], 0
mov dword [0x415c60], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f93f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c8d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40f9d4
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x415c6c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40f9d4
cmp eax, 1
je 0x40f9ec
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40f9d4
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40f9a9
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40f9d0
xor eax, eax
inc eax
jmp 0x40fa08
cmp esi, ebx
jae 0x40f9d8
xor eax, eax
jmp 0x40fa08
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x415c6c]
jmp 0x40f9ee
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408fda
Capabilities:
Parse pe header

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

Function at 0x40eed6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4768a8
push 0x4768a0
push str.FlsAlloc
push 0x1f
call fcn.0040ed95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef0a
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
jmp 0x40ef10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ef54
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4768b8
push 0x4768b0
push str.FlsGetValue
push 0x21
call fcn.0040ed95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ef93
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4768c0
push 0x4768b8
push str.FlsSetValue
push 0x22
call fcn.0040ed95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40efcd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10003b09
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x28
push 0x2e9288
call 0x10008ee0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x14c
cmp word [eax + 4], si
jne 0x10003b35
add eax, 0x78
jmp 0x10003b3a
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x10003c28
cmp dword [eax + 4], edx
je 0x10003c28
cmp dword [esi + 0x1c], edx
je 0x10003c28
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x10003c28
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x10003c18
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x10003c28
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x10003ba9
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x10003bda
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x10003bc7
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003be3
push ecx
push eax
call dword [0x2e9094]
test eax, eax
jmp 0x10003bda
push eax
call dword [0x2e9034]
mov edx, dword [ebp - 0x2c]
call fcn.100062b9
xor ecx, ecx
cmp ecx, eax
jne 0x10003be3
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x10003c02
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x10003c28
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10003c28
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x10003b8a
mov dword [ebp - 0x20], eax
jmp 0x10003c28
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call 0x10008f1b
ret 4

Function at 0x100060b4
Capabilities:
Hash data with md5

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

Function at 0x100062b9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x100062fe
or eax, 0xffffffff
test esi, esi
je 0x100062fa
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x2e9238]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x2e9238]
dec esi
inc edx
test esi, esi
jne 0x100062c8
pop edi
not eax
jmp 0x10006300
xor eax, eax
not eax
pop esi
ret
Function at 0x10006e69
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
add eax, edx
movzx ecx, word [eax + 0x14]
sub esp, 0x14
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
lea eax, [ecx + eax + 0x18]
xor ecx, ecx
cmp dword [eax + 4], edi
jne 0x10006e95
cmp dword [eax], 0x7373622e
jne 0x10006e95
mov ecx, eax
add eax, 0x28
dec esi
je 0x10006e9f
test ecx, ecx
je 0x10006e86
test ecx, ecx
je 0x10006ebd
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10006eb9
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x10006eb9
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x10006ec0
push 0xb
jmp 0x10006ebf
push 2
pop edi
mov eax, edi
test edi, edi
jne 0x10006f8c
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0xc]
lea edi, [eax + edx]
mov eax, esi
push ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.10003fdc
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10006f88
push dword [ebp - 4]
push edi
push ebx
call fcn.10005dd2
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test esi, esi
jbe 0x10006f62
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], ebx
lea edi, [eax + ecx + 0x2eb690]
mov ebx, 0x1000
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + ecx - 0x7e47c82f]
push 1
push eax
mov eax, ebx
call fcn.10007ff0
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
add dword [ebp - 8], ebx
add ecx, dword [edi + 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x10006f2e
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 0x43175ac3]
test eax, eax
jne 0x10006f7d
sub ebx, dword [ebp - 0x14]
mov dword [0x2ea344], ecx
mov dword [0x2ea348], ebx
jmp 0x10006f8b
push ebx
call fcn.10006dda
xor eax, eax
inc eax
jmp 0x10006f8b
push 8
pop eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x405e0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x405e1a
pop dword [ebp - 0x1c]
mov eax, 0xf07cc273
add eax, 0xfc39ba7
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x945490c9
add dword [ebp - 0x2c], 0xb9fdb482
mov dword [ebp - 0x28], 0xaf74d093
sub dword [ebp - 0x28], 0x7d41844e
mov dword [ebp - 0x24], 0xbee461dc
sub dword [ebp - 0x24], 0x72981dae
mov dword [ebp - 0x20], 0x97e8756
sub dword [ebp - 0x20], 0x97e8756
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x558f0b00
sub eax, 0x554e9ae4
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x3a7f9a3c
sub dword [ebp - 0x2c], 0xc60d30e6
mov dword [ebp - 0x28], 0xdcb90de0
add dword [ebp - 0x28], 0x64b35395
mov dword [ebp - 0x24], 0x7341141
add dword [ebp - 0x24], 0x5c3b5b2b
mov dword [ebp - 0x20], 0xec1a488b
sub dword [ebp - 0x20], 0xec1a488b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x5c29a1f3
sub eax, 0x5be931d3
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37f40
push 0
call eax
mov ecx, 0x48da
mov edi, eax
mov edx, 0xb40086c5
add edx, 0x4c40413b
add edx, dword [ebp - 0x1c]
mov esi, 0x6c8834b
sub esi, 0x3aa7180
xor dword [ebp - 0x14], 0x7cc609ef
mov ebx, dword [edx]
mov dword [ebp - 8], 0xfae29215
sub ebx, esi
sub dword [ebp - 0x18], 0x90a75af0
mov dword [edi], ebx
xor dword [ebp - 0x18], edi
add edi, 4
add edx, 0x8ed33fdb
add edx, 0x712cc029
loop 0x405f36
add eax, 0xf2021316
add eax, 0xdff0325
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xbea463da
add ecx, 0x419b9c26
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4040ce
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x404132
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404132
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x404132
cmp dword [edx + ecx], 0x4550
jne 0x404132
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x404117
mov edi, 0x8664
cmp ax, di
je 0x404132
add ecx, 0x98
add ecx, edx
mov eax, dword [ecx]
test eax, eax
je 0x404132
add eax, 0xc
cmp esi, eax
sbb eax, eax
not eax
and eax, ecx
jmp 0x404134
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x4081f0
Capabilities:
Parse pe header

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

Function at 0x418dcd
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0x7b
sub dh, byte [edi - 0x573a8b7a]
out 0xec, al
mov eax, dword [0xd6efb799]
xchg edi, eax
popal
or dword [eax + ebp*8 - 0x16], edx
call 0x7f83e1bc
outsb dx, byte [esi]
call 0x7f83e1bc
outsb dx, byte [esi]
mov bh, 0x14
sub eax, 0x7fac31f4
xor bh, byte [eax]
jecxz 0x418dba
loop 0x418df0
invalid
aas
xlatb
js 0x418e4c
ljmp 0xff3e:0xff055485
rol byte gs:[edx], 0xf9
add bh, cl
xor esp, dword [eax]
loope 0x418e3f
adc eax, 0x8d0d3b31
movsw word es:[edi], word [esi]
cmp cl, byte [edi - 0x5e]
push ebx
stosb byte es:[edi], al
retf
Function at 0x4026d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x402702
jl 0x4026f5
test ecx, ecx
jne 0x402702
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4027c2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00403b80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40276e
jg 0x40272d
test esi, esi
je 0x40276e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402745
mov eax, dword [esp + 0x10]
jl 0x40273f
cmp eax, esi
jae 0x402745
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00406ae0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40278f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4027ab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x402714
jl 0x4027ab
test ecx, ecx
jne 0x402714
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402806
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x402806
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00406ae0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x402877
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40282c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x402862
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040bbc8
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402877
cmp edi, eax
ja 0x402840
test edi, edi
je 0x402877
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040bbc8
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4062c3
Capabilities:
Parse pe header

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

Function at 0x410cfd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4212f8
push 0x4212f0
push str.FlsAlloc
push 0x1f
call fcn.00410b68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410d31
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e14c]
call esi
jmp 0x410d37
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410d7b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421308
push 0x421300
push str.FlsGetValue
push 0x21
call fcn.00410b68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410db2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410dba
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421310
push 0x421308
push str.FlsSetValue
push 0x22
call fcn.00410b68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410df4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412afa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406430
mov eax, dword [0x428080]
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.0040fd92
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412b3c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412c98
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d5f0
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 + 0x429888]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004138fb
mov ecx, dword [esi*4 + 0x429888]
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 0x412c91
cmp eax, dword [ecx + edi + 0x24]
jne 0x412c91
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 0x412c91
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004138fb
add esp, 0x14
test edx, edx
jl 0x412c91
jg 0x412c07
test eax, eax
jb 0x412c91
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412c91
jl 0x412c21
cmp dword [ebp - 0x1008], eax
ja 0x412c91
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412c3f
test ebx, ebx
je 0x412c78
cmp ecx, edi
jae 0x412c78
mov al, byte [ecx]
cmp al, 0xd
jne 0x412c59
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412c65
cmp byte [ecx + 1], 0xa
jne 0x412c65
inc ecx
jmp 0x412c65
movzx eax, al
movsx eax, byte [eax + 0x428348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412c3f
cmp edx, ebx
jne 0x412c3f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412c96
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004056e0
leave
ret
Function at 0x412d93
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 + 0x429888]
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 0x412dd3
cmp byte [ebx], 0xa
jne 0x412dd3
or byte [edi + eax + 0x28], 4
jmp 0x412dd8
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 0x412ed7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x412eba
inc eax
cmp dl, 0xd
je 0x412e04
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x412e2a
cmp eax, ecx
jae 0x412e38
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 0x412dec
jmp 0x412ed7
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 0x412eb5
cmp dword [ebp - 0x10], 0
je 0x412eb5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x429888]
test byte [eax + edi + 0x28], 0x48
je 0x412e8f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x412e7a
mov byte [esi], dl
jmp 0x412e8b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x429888]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412ed7
cmp byte [ebp - 1], 0xa
jne 0x412e9e
cmp esi, ebx
jne 0x412e9e
mov byte [esi], 0xa
jmp 0x412ed6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413919
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412ed7
mov byte [esi], 0xd
jmp 0x412ed6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x429888]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412ed4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412ed7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret