joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10002740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100a8854], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x100027fa
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x100a8850], eax
inc ebx
cmp ebx, 0x100
jb 0x10002760
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10002826
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a8850]
sub edi, 1
jne 0x10002805
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002858
nop dword [eax]
cmp cl, 0x23
jne 0x1000283f
cmp byte [esi], cl
jne 0x1000283f
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 + 0x100a8850]
test cl, cl
jne 0x10002830
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003100
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000311e
push 0x555
push str.G:ProjectsNixware_GMODImguiimgui.cpp
push str.filename__file_open_mode
call fcn.10042241
add esp, 0xc
mov edx, 0x1005bc20
mov ecx, esi
call fcn.10002f20
mov esi, eax
test esi, esi
jne 0x10003132
pop esi
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.1003710a
add esp, 0xc
test eax, eax
jne 0x100031d0
push esi
call fcn.10036560
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x100031d0
push 0
push 0
push esi
call fcn.1003710a
add esp, 0xc
test eax, eax
jne 0x100031d0
mov eax, dword [0x100a78c0]
inc dword [eax + 0x310]
mov ecx, dword [eax + 0xbc]
lea eax, [edi + 1]
push eax
call ecx
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100031d0
push esi
push edi
push 1
push ebx
call fcn.1003d024
add esp, 0x10
push esi
cmp eax, edi
je 0x100031be
call fcn.10036df0
mov eax, dword [0x100a78c0]
push ebx
dec dword [eax + 0x310]
mov eax, dword [eax + 0xc0]
call eax
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
ret
mov byte [ebx + edi], 0
call fcn.10036df0
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
ret
push esi
call fcn.10036df0
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x1002a9f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100545a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100a700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x3f800000
call fcn.1002ab50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002cd70
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov edi, 4
mov eax, dword [ebx]
nop
jmp dword [edi*4 + 0x1002cec0]

Function at 0x1002cf40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
cmp dword [esi + 4], edi
jbe 0x1002d02e
xor ebx, ebx
nop
mov esi, dword [esi]
add esi, ebx
je 0x1002d01e
mov eax, dword [esi]
movsx eax, byte [eax]
push eax
call fcn.100365c0
add esp, 4
test eax, eax
jne 0x1002d01e
mov edx, dword [esi + 0x28]
test edx, edx
je 0x1002cf97
cmp dword [edx + 4], eax
je 0x1002cf97
push dword [esi + 0x2c]
mov ecx, dword [ebp - 8]
call fcn.1002cf40
mov ecx, dword [ebp - 8]
call fcn.1002d040
mov dword [ebp - 0xc], eax
mov edx, 0x811c9dc5
mov eax, dword [esi]
mov cl, byte [eax]
test cl, cl
je 0x1002cfc4
nop
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax]
test cl, cl
jne 0x1002cfb0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10031ad0
mov ecx, dword [eax]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
add ecx, 0xc
push eax
call fcn.10031880
mov eax, dword [eax]
cmp dword [eax + 0xc], 0
jg 0x1002d01e
cmp dword [esi + 4], 4
ja 0x1002d01e
mov esi, dword [esi + 0x2c]
lea eax, [ebp - 0xc]
add esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10031ad0
mov ecx, dword [eax]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
add ecx, 0xc
push eax
call fcn.10031880
mov eax, dword [eax]
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x14]
inc edi
add ebx, 0x3c
cmp edi, dword [esi + 4]
jb 0x1002cf60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002d040
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov al, byte [ecx]
mov edx, 0x811c9dc5
test al, al
je 0x1002d064
nop dword [eax + eax]
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x1002d050
mov eax, edx
ret
Function at 0x10030790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x100307b8
push 0
push 0
push dword [ebp + 8]
push 0x10030350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10031e20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x10031f7b
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10030a30
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10031f4e
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x10031ed4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10031f41
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10031f0e
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x10031f06
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x10031f41
cmp ebx, edx
je 0x10031f1e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10031f57
cmp ebx, edx
jne 0x10031f12
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0xc]
mov eax, ecx
cmp ecx, esi
jne 0x10031e82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10031f41
push str.invalid_hash_bucket_count
call fcn.10033615
int3
Function at 0x10031f90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 8
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x100320fd
lea eax, [ecx - 1]
mov esi, dword [0x100a7a5c]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x100a7a64
lea eax, [edi + edi]
push eax
call fcn.10030a30
mov eax, dword [0x100a7a5c]
lea ebx, [edi - 1]
mov dword [0x100a7a70], ebx
mov dword [0x100a7a74], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x100320f4
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x100a7a64]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x10032052
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100320bf
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1003208c
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x10032084
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x100320bf
cmp ebx, edx
je 0x1003209c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x100320d0
cmp ebx, edx
jne 0x10032090
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x100320f4
mov ebx, dword [0x100a7a70]
jmp 0x10032000
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x100320bf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.10033615
int3
Function at 0x100362f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100513a0
mov eax, dword [0x100a700c]
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.10043b12
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10036338
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10036494
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100512f0
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 + 0x100a84d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10043d22
mov ecx, dword [esi*4 + 0x100a84d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1003648d
cmp eax, dword [edi + ecx + 0x24]
jne 0x1003648d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003648d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10043d22
add esp, 0x14
test edx, edx
jl 0x1003648d
jg 0x10036403
test eax, eax
jb 0x1003648d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003648d
jl 0x1003641d
cmp dword [ebp - 0x1008], eax
ja 0x1003648d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003643b
test ebx, ebx
je 0x10036474
cmp ecx, edi
jae 0x10036474
mov al, byte [ecx]
cmp al, 0xd
jne 0x10036455
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10036461
cmp byte [ecx + 1], 0xa
jne 0x10036461
inc ecx
jmp 0x10036461
movzx eax, al
movsx eax, byte [eax + 0x100a71d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003643b
cmp edx, ebx
jne 0x1003643b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10036492
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10032397
leave
ret
Function at 0x10044493
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 + 0x100a84d8]
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 0x100444d3
cmp byte [ebx], 0xa
jne 0x100444d3
or byte [eax + edi + 0x28], 4
jmp 0x100444d8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100445d6
mov al, byte [edx]
cmp al, 0x1a
je 0x100445b8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10044507
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1004452c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10044536
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 0x100444e9
jmp 0x100445d6
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 0x100445b3
cmp dword [ebp - 0xc], 0
je 0x100445b3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100a84d8]
test byte [eax + edi + 0x28], 0x48
je 0x1004458d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10044578
mov byte [esi], dl
jmp 0x10044589
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a84d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100445d6
cmp byte [ebp - 1], 0xa
jne 0x1004459c
cmp esi, ebx
jne 0x1004459c
mov byte [esi], 0xa
jmp 0x100445d5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10043d40
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100445d6
mov byte [esi], 0xd
jmp 0x100445d5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100a84d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100445d2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100445d6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100445df
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 + 0x100a84d8]
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 0x10044622
cmp word [esi], dx
jne 0x10044622
or byte [edi + eax + 0x28], 4
jmp 0x10044627
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 0x1004477a
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 0x1004475a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10044669
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004469f
cmp eax, edx
jae 0x100446ab
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 0x10044641
jmp 0x1004477a
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 0x10044756
cmp dword [ebp - 0x14], 0
je 0x10044756
mov eax, dword [ebx*4 + 0x100a84d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1004472e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100446f7
mov word [esi], cx
jmp 0x1004472a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100a84d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100a84d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100a84d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1004477a
pop ebx
cmp word [ebp - 4], bx
jne 0x1004473f
cmp esi, dword [ebp + 0xc]
jne 0x1004473f
mov word [esi], bx
jmp 0x10044777
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10043d40
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1004477a
push 0xd
jmp 0x10044773
mov ecx, dword [ebx*4 + 0x100a84d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10044771
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004477a
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 0x100457d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057c80
push 0x10057c78
push str.FlsAlloc
push 0x1e
call fcn.10045670
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045806
push dword [ebp + 8]
mov ecx, esi
call dword [0x100551a4]
call esi
jmp 0x1004580c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10045850
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057c90
push 0x10057c88
push str.FlsGetValue
push 0x20
call fcn.10045670
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045887
push dword [ebp + 8]
mov ecx, esi
call dword [0x100551a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10048c1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10048a90

Function at 0x100492a2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10049224
Function at 0x1004aa22
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 0x1004aabf
push ebx
push esi
call fcn.1004a9eb
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.1004a934
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004aa6c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004aabe
push edi
push eax
call fcn.10046bb5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004aa8c
call fcn.100454e9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004aabd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004a934
add esp, 0x20
test eax, eax
jne 0x1004aaab
push edi
call fcn.100454e9
jmp 0x1004aab3
push ebx
call fcn.100454e9
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