joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c34ff
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x4c3520
mov eax, 0x8876086c
jmp 0x4c3602
cmp dword [ebp + 0x7c], esi
je 0x4c359a
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x4c357a
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00454ee0
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x4c359a
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4c35b3
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x4c35f3
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x4c35f3
push esi
push esi
dec ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x4c35f3
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x4c3600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x4c3602
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x4c3650
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
out 0xa7, eax
push edi
je 0x4c35d1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4c363e
push eax
mov edx, edi
or dword [esi + 4], 0xffffffff
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c364b
push eax
call edi
or dword [esi], 0xffffffff
pop edi
xor eax, eax
pop esi
ret
cmp dword [ecx], 0xffffffff
je 0x4c3693
jmp 0x4c360f
jg 0x4c3696
add byte [ebp + 0x45c6444e], cl
cld
add ebp, eax
sbb bh, byte [edi]
add byte [ebp + 0x45c6544e], cl
cld
add al, 0xe8
push cs
jg 0x4c36ae
add byte [ebp + 0x45c6644e], cl
cld
add eax, 0x7f02e8
add byte [ebp + 0x45c6744e], cl
cld
push es
call fcn.004cb5bd
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 7
call fcn.004d1b6f
mov ecx, dword [ebp - 0xc]
mov dword [0x533390], esi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4c9073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [eax + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x105c]
push edi
mov edi, dword [eax + 0x1050]
imul esi, edi
add esi, edx
jmp 0x4c9100
mov eax, dword [eax + 0x1058]
add eax, edx
add edi, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
cmp edx, eax
jmp 0x4c90e4
movzx edi, byte [edi + 1]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + 1]
add edi, ebx
mov ebx, dword [ebp - 0xc]
movzx ebx, byte [ebx]
add edi, ebx
je 0x4c9122
cld
movzx ebx, byte [ebx]
add dword [ebp - 4], 2
lea ebx, [edi + ebx + 2]
mov edi, dword [ebp - 8]
shr ebx, 2
inc dword [ebp - 8]
mov byte [edi], bl
mov edi, dword [ebp - 0xc]
inc edi
inc edi
cmp dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
jb 0x4c90ae
mov eax, dword [ecx + 4]
mov ebx, dword [ebp - 0x10]
add ebx, dword [eax + 0x1050]
mov eax, dword [ecx]
mov edi, dword [eax + 0x1050]
lea edx, [edx + edi*2]
cmp edx, esi
mov dword [ebp - 0x10], ebx
jb 0x4c909a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov edx, 0x105c
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x4c9252
push ebx
push esi
mov esi, 0xff1c
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1058]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x4c922c
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xe3
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 0x42]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add esi, dword [ebx + ecx*4 - 0x21dc9923]
and ebp, esi
add ecx, ebx
mov ebx, edi
mov ah, 0x23
fisub word [ebx]
dec byte [ebp + 0x208198c]
add byte [eax], al
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x208]
shr eax, 2
and edx, 0xffff00e3
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x4c9177
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1050]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1050]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x4c914e
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x4e3793
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4e37a1
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x4e3875
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x509378]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x509378]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x509378]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 - 0x70af6c88]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x509378]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x509378]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x509378]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x509378]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x4e37be
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4e3895
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x509378]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x4e387b
mov eax, esi
not eax
pop esi
pop ebp
ret

Function at 0x4efec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, 0xffffff00
mov esi, 0x542cc4
fld qword [0x50a3f0]
lea eax, [edi + 0xd2]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul qword [0x50a3e8]
call sub.MSVCRT.dll__CIpow
fstp dword [esi]
add esi, 4
inc edi
cmp esi, 0x5432ac
jl 0x4efed6
xor edi, edi
mov esi, 0x53ac10
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fld qword [0x50a3e0]
call sub.MSVCRT.dll__CIpow
fstp dword [esi]
mov edx, dword [esp + 0x10]
add esi, 4
inc edx
cmp esi, 0x542c4c
mov dword [esp + 0x10], edx
jl 0x4eff0e
mov eax, str.333333
xor ecx, ecx
fld qword [eax]
fld st(0)
fmulp st(1)
add eax, 8
add ecx, 4
cmp eax, str.___f_
fadd qword [0x50a3d8]
fsqrt
fld qword [0x50a3d8]
fdiv st(1)
fstp dword [ecx + 0x537080]
fld qword [eax - 8]
fdiv st(1)
fstp dword [ecx + 0x537060]
fstp st(0)
jl 0x4eff3a
mov eax, 0x13
mov ecx, 0x537110
mov dword [esp + 0x28], eax
lea edx, [eax - 0x12]
add ecx, 4
mov dword [esp + 0x2f], edx
lea edx, [eax + 0x12]
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
lea edx, [eax + 0x24]
add eax, 2
fmul qword [0x50a3d0]
cmp eax, 0x37
fsin
fmul qword [0x50a3c8]
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
fmul qword [0x50a3d0]
fcos
fdivp st(1)
fst dword [ecx + 0x8c]
fstp dword [ecx - 4]
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
fmul qword [0x50a3d0]
fsin
fmul qword [0x50a3c8]
fild dword [esp + 0x30]
mov esi, 0xe8a3d06a
add cl, bl
invalid
Function at 0x4f4a90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jle 0x4f4ac5
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, edi
lea ecx, [esi + ebx]
sub eax, esi
push eax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
test eax, eax
jl 0x4f4ac7
je 0x4f4ac5
add esi, eax
cmp esi, edi
jl 0x4f4aa6
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x3b2443f4
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x5b9d7ccc
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4063d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4324c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x433388]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4330d0]
cmp eax, dword [ecx + 4]
jg 0x406597
cmp dword [0x432498], 0
jne 0x40657a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.004071b0
test al, al
jne 0x406489
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x432488
je 0x406571
mov ecx, dword [0x43249c]
cmp ecx, 0x10
jb 0x40652e
mov edx, dword [0x432488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406524
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4065cd
jmp 0x406524
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040eff0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4064f7
cmp dword [ebp - 0x240], esi
je 0x4064eb
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4064d0
jmp 0x4064f7
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x432488
pop edi
jmp 0x406446
push ecx
push edx
call fcn.0040d493
add esp, 8
mov dword [0x432498], 0
mov dword [0x43249c], 0xf
mov byte [0x432488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x432488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x432498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x432488
mov ecx, ebx
call fcn.00402750
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040d686
mov esp, ebp
pop ebp
ret
push 0x4330d0
call fcn.0040d5b0
add esp, 4
cmp dword [0x4330d0], 0xffffffff
jne 0x40640d
push 0x426640
call fcn.0040d8f3
push 0x4330d0
call fcn.0040d566
add esp, 8
jmp 0x40640d
call fcn.004109df
int3
Function at 0x4065e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4259d6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4324c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040eff0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040ecf0
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406665
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x40675e
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ab50
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406bf0
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x40670f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406705
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067a3
push ecx
push edx
call fcn.0040d493
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x406786
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40677c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067a3
jmp 0x40677c
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040ab50
add esp, 8
jmp 0x40672a
push ecx
push edx
call fcn.0040d493
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d686
mov esp, ebp
pop ebp
ret
call fcn.004109df
int3
Function at 0x40e021
Capabilities:
Parse pe header

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

Function at 0x41914b
Capabilities:
Print debug messages

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

Function at 0x41b991
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 + 0x433a88]
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 0x41b9d1
cmp byte [ebx], 0xa
jne 0x41b9d1
or byte [eax + edi + 0x28], 4
jmp 0x41b9d6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bad4
mov al, byte [edx]
cmp al, 0x1a
je 0x41bab6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ba05
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ba2a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ba34
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 0x41b9e7
jmp 0x41bad4
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 0x41bab1
cmp dword [ebp - 0xc], 0
je 0x41bab1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x433a88]
test byte [eax + edi + 0x28], 0x48
je 0x41ba8b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ba76
mov byte [esi], dl
jmp 0x41ba87
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433a88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bad4
cmp byte [ebp - 1], 0xa
jne 0x41ba9a
cmp esi, ebx
jne 0x41ba9a
mov byte [esi], 0xa
jmp 0x41bad3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c3c5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bad4
mov byte [esi], 0xd
jmp 0x41bad3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x433a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bad4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41badd
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 + 0x433a88]
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 0x41bb20
cmp word [esi], dx
jne 0x41bb20
or byte [edi + eax + 0x28], 4
jmp 0x41bb25
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 0x41bc5e
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 0x41bc3e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bb67
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bb9d
cmp eax, edx
jae 0x41bba9
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 0x41bb3f
jmp 0x41bc5e
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 0x41bc3a
cmp dword [ebp - 0x14], 0
je 0x41bc3a
mov eax, dword [ebx*4 + 0x433a88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bc12
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41bc58
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x433a88]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x433a88]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x433a88]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41bc5b
pop ebx
cmp word [ebp - 4], bx
jne 0x41bc23
cmp esi, dword [ebp + 0xc]
jne 0x41bc23
mov word [esi], bx
jmp 0x41bc5b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c3c5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bc5e
push 0xd
jmp 0x41bc57
mov ecx, dword [ebx*4 + 0x433a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bc55
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bc5e
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
Function at 0x41d776
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1c8
push 0x42b1c0
push str.FlsAlloc
push 0x1e
call fcn.0041d614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d7aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271b4]
call esi
jmp 0x41d7b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d7f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1d8
push 0x42b1d0
push str.FlsGetValue
push 0x20
call fcn.0041d614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d82b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41eb2a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ebc7
push ebx
push esi
call fcn.0041eaf3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d410
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41eb74
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ebc6
push edi
push eax
call fcn.004199fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41eb94
call fcn.004199c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ebc5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d410
add esp, 0x20
test eax, eax
jne 0x41ebb3
push edi
call fcn.004199c3
jmp 0x41ebbb
push ebx
call fcn.004199c3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret