joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x32aa4cd2
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3070406d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
nop
mov ecx, 0x7def57bd
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1e590e16
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.0135c000
lea eax, [ebp - 0x280]
push eax
call fcn.0100323e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100015c7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
lea edx, [esi + 8]
mov dword [esi + 4], eax
mov dword [edx], eax
test ecx, ecx
je 0x100015f8
mov eax, dword [ebp + 8]
push edx
push 0x40
push ecx
push eax
mov dword [esi + 4], ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10005de2
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x10005e2a
lea edx, [esi + 8]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x10005df2
jmp 0x10005e37
cmp dword [esi], 0x4e0
jb 0x10005e37
call fcn.10005e71
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x10005e71
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x9c4]
mov esi, 0xe3
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10005e8a
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10005ed4
mov esi, dword [ebp - 4]
pop edi
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
and dword [esi], 0
mov dword [esi + 0x9c0], eax
pop esi
pop ebx
leave
ret

Function at 0x1000735b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
push 4
mov esi, ecx
not edx
pop edi
movzx eax, byte [esi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100724c8]
inc esi
sub edi, 1
jne 0x1000736b
pop edi
not edx
pop esi
mov eax, edx
leave
ret
Function at 0x1000738b
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 edx, ebx
test edi, edi
je 0x100073ef
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x100073b7
cmp edi, 2
jb 0x100073b7
cmp byte [esi], al
jne 0x100073b7
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100724c8]
test edi, edi
jne 0x100073a0
jmp 0x100073f6
cmp al, 0x23
jne 0x100073dd
cmp byte [esi], al
jne 0x100073dd
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100724c8]
mov al, byte [esi]
inc esi
test al, al
jne 0x100073cf
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x1000752b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x1000754e
push 0x628
push str.C:UsersAdministratorDesktopSaminRaidenNewimguiimgui.cpp
push str.filename__mode
call fcn.1003ae90
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x10007558
and dword [edi], 0
mov edx, 0x100790b8
mov ecx, esi
call fcn.100073ff
mov esi, eax
test esi, esi
je 0x100075c0
mov ecx, esi
call fcn.100074d2
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100075b9
mov ecx, ebx
call fcn.100092dd
mov dword [ebp + 8], eax
test eax, eax
je 0x100075b9
push esi
push ebx
push 1
push eax
call fcn.10035c0b
add esp, 0x10
push esi
cmp eax, ebx
je 0x100075a8
call fcn.10030aec
pop ecx
mov ecx, dword [ebp + 8]
call fcn.100092f4
jmp 0x100075c0
call fcn.10030aec
pop ecx
test edi, edi
je 0x100075b4
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x100075c2
push esi
call fcn.10030aec
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10022061
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10085040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.10009381
mov edi, eax
xor ebx, ebx
mov ecx, dword [edi + 0x90]
cmp dword [ecx + 0x34], ebx
jle 0x10022092
cmp dword [ecx + 0x14], ebx
jne 0x100220a9
cmp dword [ecx + 0x18], ebx
jne 0x100220a9
push 0xd9
push str.C:UsersAdministratorDesktopSaminRaidenNewimguiimgui_impl_win32.cpp
push str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_back_end._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call fcn.1003ae90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [0x10086a30]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x10]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x10086a38]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x10086a3c]
call fcn.1004b130
mov edx, dword [0x10086a44]
mov ecx, dword [0x10086a40]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x24], xmm0
call fcn.1004b130
movss xmm1, dword [ebp - 0x24]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [0x10086a38], eax
mov dword [0x10086a3c], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], bl
mov byte [edi + 0xfa], al
call fcn.10021d0b
cmp byte [edi + 0xa8], bl
je 0x10022186
or eax, 0xffffffff
jmp 0x10022191
mov eax, dword [0x10086998]
mov eax, dword [eax + 0x1d8c]
cmp dword [0x10085d4c], eax
je 0x100221a3
mov dword [0x10085d4c], eax
call fcn.10021c5f
call fcn.10021dd7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bb83
leave
ret
Function at 0x1003025f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10049580
mov eax, dword [0x10085040]
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.1003c93e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100302a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100303fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100494d0
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 + 0x10086490]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003cb4d
mov ecx, dword [esi*4 + 0x10086490]
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 0x100303f6
cmp eax, dword [ecx + edi + 0x24]
jne 0x100303f6
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 0x100303f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003cb4d
add esp, 0x14
test edx, edx
jl 0x100303f6
jg 0x1003036c
test eax, eax
jb 0x100303f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100303f6
jl 0x10030386
cmp dword [ebp - 0x1008], eax
ja 0x100303f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100303a4
test ebx, ebx
je 0x100303dd
cmp ecx, edi
jae 0x100303dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x100303be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100303ca
cmp byte [ecx + 1], 0xa
jne 0x100303ca
inc ecx
jmp 0x100303ca
movzx eax, al
movsx eax, byte [eax + 0x10085248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100303a4
cmp edx, ebx
jne 0x100303a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100303fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002bb83
leave
ret

Function at 0x1003b42c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003b46b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003b46b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b46b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003b46b
cmp dword [ecx + 0x74], 0xe
jbe 0x1003b46b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003cbc9
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 + 0x10086490]
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 0x1003cc09
cmp byte [ebx], 0xa
jne 0x1003cc09
or byte [edi + eax + 0x28], 4
jmp 0x1003cc0e
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 0x1003cd0d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003ccf0
inc eax
cmp dl, 0xd
je 0x1003cc3a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003cc60
cmp eax, ecx
jae 0x1003cc6e
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 0x1003cc22
jmp 0x1003cd0d
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 0x1003cceb
cmp dword [ebp - 0x10], 0
je 0x1003cceb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10086490]
test byte [eax + edi + 0x28], 0x48
je 0x1003ccc5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003ccb0
mov byte [esi], dl
jmp 0x1003ccc1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10086490]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003cd0d
cmp byte [ebp - 1], 0xa
jne 0x1003ccd4
cmp esi, ebx
jne 0x1003ccd4
mov byte [esi], 0xa
jmp 0x1003cd0c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003cb6b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003cd0d
mov byte [esi], 0xd
jmp 0x1003cd0c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10086490]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003cd0a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003cd0d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003cd16
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10086490]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003cd5c
cmp word [ebx], dx
jne 0x1003cd5c
or byte [eax + edi + 0x28], 4
jmp 0x1003cd61
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003cec4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003cea4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003cda2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003cdd8
cmp eax, edx
jae 0x1003cde6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003cd7d
jmp 0x1003cec4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003ce9f
cmp dword [ebp - 0x18], 0
je 0x1003ce9f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10086490]
test byte [eax + edi + 0x28], 0x48
je 0x1003ce75
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003ce39
mov word [esi], cx
jmp 0x1003ce70
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10086490]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10086490]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10086490]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003cec4
pop eax
cmp word [ebp - 4], ax
jne 0x1003ce85
cmp esi, ebx
jne 0x1003ce85
mov word [esi], ax
jmp 0x1003cec1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003cb6b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003cec4
push 0xd
pop eax
jmp 0x1003ce80
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10086490]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003cebe
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003cec4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003dcdb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10052474
push 0x1005246c
push str.FlsAlloc
push 0x1f
call fcn.1003db77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003dd0f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f1c4]
call esi
jmp 0x1003dd15
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003dd59
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10052484
push 0x1005247c
push str.FlsGetValue
push 0x21
call fcn.1003db77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003dd90
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f1c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003dd98
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005248c
push 0x10052484
push str.FlsSetValue
push 0x22
call fcn.1003db77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003ddd2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f1c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10041644
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100415c6
Function at 0x10042e58
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 0x10042ef5
push ebx
push esi
call fcn.10042e21
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.10042db5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10042ea2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10042ef4
push edi
push eax
call fcn.1003fb1d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10042ec2
call fcn.1003d9f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10042ef3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10042db5
add esp, 0x20
test eax, eax
jne 0x10042ee1
push edi
call fcn.1003d9f0
jmp 0x10042ee9
push ebx
call fcn.1003d9f0
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