joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
imul eax, eax, 0x9d
push edi
mov edi, 0x86d
mov dword [ebp + 8], eax
xor eax, eax
test ebx, ebx
jle 0x405b85
mov ecx, dword [ebp + 0x10]
sub dword [ebp + 0xc], ecx
push esi
lea esi, [eax + ecx]
mov ecx, eax
and ecx, 7
inc eax
mov dl, byte [ecx + 0x485490]
mov ecx, dword [ebp + 0xc]
xor dl, byte [esi + ecx]
mov ecx, edi
sar ecx, 8
xor dl, cl
imul edi, edi, 0x87b
xor dl, byte [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov byte [esi], dl
cmp eax, ebx
jl 0x405b56
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x407b70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x407bd1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x407bb4
cmp edi, 2
jb 0x407bb4
cmp byte [esi], cl
jne 0x407bb4
cmp byte [esi + 1], cl
jne 0x407bb4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x471660]
jmp 0x407b85
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x471660]
test edi, edi
jne 0x407b85
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x407c00
cmp cl, 0x23
jne 0x407be7
cmp byte [esi], cl
jne 0x407be7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x471660]
test cl, cl
jne 0x407bd8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x407ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x407cf3
mov dword [ebx], 0
mov edx, 0x4756cc
call fcn.00407c10
mov esi, eax
test esi, esi
je 0x407dd0
push esi
call fcn.0044acf3
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x407dc7
push 2
push 0
push esi
call fcn.0044b580
add esp, 0xc
test eax, eax
jne 0x407dc7
push esi
call fcn.0044acf3
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x407dc7
push 0
push dword [ebp + 8]
push esi
call fcn.0044b580
add esp, 0xc
test eax, eax
jne 0x407dc7
mov eax, dword [0x48536c]
test eax, eax
je 0x407d66
inc dword [eax + 0x374]
push edi
call fcn.00450dc2
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x407dc7
push esi
push edi
push 1
push eax
call fcn.0044c26d
add esp, 0x10
push esi
cmp eax, edi
je 0x407db1
call fcn.0044b22d
mov eax, dword [0x48536c]
add esp, 4
test eax, eax
je 0x407d9f
dec dword [eax + 0x374]
push dword [ebp + 8]
call fcn.0044c079
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0044b22d
add esp, 4
test ebx, ebx
je 0x407dbf
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.0044b22d
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40be00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
or edx, 0xffffffff
mov dword [ebp - 0x1c], 0
mov edi, ecx
mov dword [ebp - 0x28], str.Window
mov al, 0x57
mov esi, 0x475629
or ebx, 0xffffffff
cmp al, 0x23
jne 0x40be34
cmp byte [esi], al
jne 0x40be34
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x471660]
test al, al
jne 0x40be26
mov esi, dword [edi + 0x2e7c]
not edx
mov ecx, dword [edi + 0x2e80]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0x416b10
mov dword [ebp - 0x18], 0x416b80
mov dword [ebp - 0x14], 0x416c40
mov dword [ebp - 0x10], 0x416d10
mov dword [ebp - 0xc], 0x416e20
cmp esi, ecx
jne 0x40bf10
inc esi
test ecx, ecx
je 0x40be99
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x40be9e
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x40bf10
mov eax, dword [0x48536c]
test eax, eax
je 0x40beb6
inc dword [eax + 0x374]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call fcn.00450dc2
mov ebx, dword [edi + 0x2e84]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40bf04
mov ecx, dword [edi + 0x2e7c]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push ebx
push eax
call fcn.00443620
mov eax, dword [0x48536c]
add esp, 0xc
test eax, eax
je 0x40bef8
dec dword [eax + 0x374]
push ebx
call fcn.0044c079
mov eax, dword [ebp - 4]
add esp, 4
mov dword [edi + 0x2e84], eax
mov dword [edi + 0x2e80], esi
mov eax, dword [edi + 0x2e7c]
movups xmm0, xmmword [ebp - 0x28]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e84]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e7c]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d250
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40d28d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40d273
cmp byte [esi], bl
jne 0x40d273
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x471660]
test bl, bl
jne 0x40d264
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040d1f0
Function at 0x42eb30
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0x54], 0x100000
push esi
push edi
mov edi, edx
je 0x42eba0
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x42eb78
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x42eb5f
cmp byte [esi], cl
jne 0x42eb5f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x471660]
test cl, cl
jne 0x42eb50
mov ecx, dword [0x48536c]
not eax
cmp dword [ecx + 0x1aa0], eax
jne 0x42eb8e
mov dword [ecx + 0x1aa4], eax
cmp dword [ecx + 0x1adc], eax
jne 0x42ebe5
pop edi
mov byte [ecx + 0x1ae0], 1
pop esi
ret
mov esi, dword [0x48536c]
xor edx, edx
mov eax, dword [esi + 0x1a68]
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xc4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.00407b70
add esp, 4
cmp dword [esi + 0x1aa0], eax
jne 0x42ebd6
mov dword [esi + 0x1aa4], eax
cmp dword [esi + 0x1adc], eax
jne 0x42ebe5
mov byte [esi + 0x1ae0], 1
pop edi
pop esi
ret
Function at 0x436560
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x47d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x4756cc
push eax
mov dword [0x483eec], 0
mov dword [0x483ee8], 0
mov dword [0x483ed8], 0x67452301
mov dword [0x483edc], 0xefcdab89
mov dword [0x483ee0], 0x98badcfe
mov dword [0x483ee4], 0x10325476
call fcn.0044c062
mov esi, eax
add esp, 8
test esi, esi
jne 0x4365dd
mov eax, 0x475550
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044096c
mov esp, ebp
pop ebp
ret 4
push esi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0044c26d
add esp, 0x10
test eax, eax
je 0x436620
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00403360
push esi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0044c26d
add esp, 0x10
test eax, eax
jne 0x4365f8
call fcn.00403420
push esi
call fcn.0044b22d
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 0x483f40
pop esi
call fcn.0044096c
mov esp, ebp
pop ebp
ret 4
Function at 0x43c3e0
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 0x43c412
jl 0x43c405
test ecx, ecx
jne 0x43c412
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 0x43c4d2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0043e9c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x43c47e
jg 0x43c43d
test esi, esi
je 0x43c47e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x43c455
mov eax, dword [esp + 0x10]
jl 0x43c44f
cmp eax, esi
jae 0x43c455
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00443620
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 0x43c49f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x43c4bb
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 0x43c424
jl 0x43c4bb
test ecx, ecx
jne 0x43c424
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 0x43c516
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x43c516
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00443620
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 0x43c587
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43c53c
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 0x43c572
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0044c26d
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x43c587
cmp edi, eax
ja 0x43c550
test edi, edi
je 0x43c587
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0044c26d
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 0x43ce00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46728f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x47d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x70]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
mov dword [ebx], 0x475a00
call fcn.0043ecc0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
mov dword [ebp - 0x24], 1
mov ecx, ebx
mov dword [ebp - 0x18], esi
push esi
call fcn.0043eb60
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.0043f640
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3d], 0
lea edx, [eax + 0x24]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x50bc94]
mov dword [eax], 0
mov eax, dword [0x50bc90]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 2
cmp dword [ebx + 0x4c], 0
jne 0x43cfa1
mov eax, dword [ebp - 0x28]
push 0x40
or eax, 1
push eax
push dword [ebp - 0x1c]
call fcn.00442156
add esp, 0xc
test eax, eax
je 0x43cfa1
push 1
push eax
mov ecx, ebx
call fcn.0043e7b0
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.0043fbe0
add esp, 4
mov ecx, ebx
push eax
call fcn.0043e650
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x43cf8a
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x43cf8a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00436420
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43eb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4674ad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00436420
push 8
call fcn.0044097f
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.00441dd3
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0043f860
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x43ec8a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x43ec8a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x43eca6
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00436420
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43f640
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467580
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x47d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0044097f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00441dd3
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0043f5e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441575
Capabilities:
Parse pe header

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

Function at 0x44aab6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004647e0
mov eax, dword [0x47d040]
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.00457134
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44aaf8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44ac54
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00464670
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 + 0x485010]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004575b3
mov ecx, dword [esi*4 + 0x485010]
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 0x44ac4d
cmp eax, dword [ecx + edi + 0x24]
jne 0x44ac4d
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 0x44ac4d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004575b3
add esp, 0x14
test edx, edx
jl 0x44ac4d
jg 0x44abc3
test eax, eax
jb 0x44ac4d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44ac4d
jl 0x44abdd
cmp dword [ebp - 0x1008], eax
ja 0x44ac4d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44abfb
test ebx, ebx
je 0x44ac34
cmp ecx, edi
jae 0x44ac34
mov al, byte [ecx]
cmp al, 0xd
jne 0x44ac15
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44ac21
cmp byte [ecx + 1], 0xa
jne 0x44ac21
inc ecx
jmp 0x44ac21
movzx eax, al
movsx eax, byte [eax + 0x47d348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44abfb
cmp edx, ebx
jne 0x44abfb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44ac52
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044096c
leave
ret

Function at 0x455560
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46cf04
push 0x46cefc
push str.FlsAlloc
push 0x1f
call fcn.00455428
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455594
push dword [ebp + 8]
mov ecx, esi
call dword [0x469284]
call esi
jmp 0x45559a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4555de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46cf14
push 0x46cf0c
push str.FlsGetValue
push 0x21
call fcn.00455428
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455615
push dword [ebp + 8]
mov ecx, esi
call dword [0x469284]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x45561d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46cf1c
push 0x46cf14
push str.FlsSetValue
push 0x22
call fcn.00455428
mov esi, eax
add esp, 0x10
test esi, esi
je 0x455657
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x469284]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x45762f
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 + 0x485010]
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 0x45766f
cmp byte [ebx], 0xa
jne 0x45766f
or byte [edi + eax + 0x28], 4
jmp 0x457674
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 0x457773
mov dl, byte [eax]
cmp dl, 0x1a
je 0x457756
inc eax
cmp dl, 0xd
je 0x4576a0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4576c6
cmp eax, ecx
jae 0x4576d4
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 0x457688
jmp 0x457773
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 0x457751
cmp dword [ebp - 0x10], 0
je 0x457751
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x485010]
test byte [eax + edi + 0x28], 0x48
je 0x45772b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x457716
mov byte [esi], dl
jmp 0x457727
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485010]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x457773
cmp byte [ebp - 1], 0xa
jne 0x45773a
cmp esi, ebx
jne 0x45773a
mov byte [esi], 0xa
jmp 0x457772
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004575d1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x457773
mov byte [esi], 0xd
jmp 0x457772
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x485010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x457770
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x457773
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret