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

Disassembly:
jmp 0xf5b0ce
pushal
call 0xf5b0d4
pop ebp
sub ebp, 0x10
sub ebp, 0xb5b0c4
jmp 0xf5b0ea
mov eax, 0xb5b0c4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a1
mov edx, 0xc6e1b74
xor byte [eax], dl
inc eax
dec ecx
jne 0xf5b101
jmp 0xf5b114
invalid

Function at 0x45ce70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
or ebp, 0xffffffff
jmp 0x45ce92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45ce99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ce88
mov eax, 1
add ebx, ebx
jne 0x45ceab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45cea0
jne 0x45cebc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cea0
xor ecx, ecx
sub eax, 3
jb 0x45ced0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45cf42
mov ebp, eax
add ebx, ebx
jne 0x45cedb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45cee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45cf0c
inc ecx
add ebx, ebx
jne 0x45cef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45ceed
jne 0x45cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ceed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cf2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45cf1d
jmp 0x45ce8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cf2c
add edi, ecx
jmp 0x45ce8e
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45cf4a
cmp byte [edi], 1
jne 0x45cf4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45cf4f
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cfbe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c2d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45cf7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c2dc]
or eax, eax
je 0x45cfb8
mov dword [ebx], eax
add ebx, 4
jmp 0x45cf99
call dword [esi + 0x5c2d8]
mov ebp, dword [esi + 0x5c2e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45cff2
sub esp, 0xffffff80
jmp 0x401860
Function at 0x407acc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x407afa
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x407b02
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x407b31
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x407b57
mov eax, 0x40edb8
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x407b80
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x407b80
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x407b80
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00407782
leave
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 0x401000
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x403548], eax
mov ecx, 1
jmp 0x40102a
mov edx, eax
shr eax, 0x1e
xor eax, edx
mov edx, 0x6c078965
mul edx
add eax, ecx
mov dword [ecx*4 + 0x403548], eax
inc ecx
cmp ecx, 0x270
jb 0x401012
mov dword [section..data], ecx
leave
ret 4

Function at 0x40103c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
cmp dword [section..data], 0x270
jb 0x401117
cmp dword [section..data], 0x271
jne 0x401065
push 0x1571
call section..text
xor ecx, ecx
jmp 0x40109c
mov eax, dword [ecx*4 + 0x403548]
and eax, 0x80000000
mov edx, dword [ecx*4 + 0x40354c]
and edx, 0x7fffffff
or eax, edx
shr eax, 1
jae 0x40108d
xor eax, 0x9908b0df
xor eax, dword [ecx*4 + 0x403b7c]
mov dword [ecx*4 + 0x403548], eax
inc ecx
cmp ecx, 0xe3
jb 0x401069
jmp 0x4010d9
mov eax, dword [ecx*4 + 0x403548]
and eax, 0x80000000
mov edx, dword [ecx*4 + 0x40354c]
and edx, 0x7fffffff
or eax, edx
shr eax, 1
jae 0x4010ca
xor eax, 0x9908b0df
xor eax, dword [ecx*4 + 0x4031bc]
mov dword [ecx*4 + 0x403548], eax
inc ecx
cmp ecx, 0x26f
jb 0x4010a6
mov eax, dword [0x403f04]
and eax, 0x80000000
mov edx, dword [0x403548]
and edx, 0x7fffffff
or eax, edx
shr eax, 1
jae 0x401102
xor eax, 0x9908b0df
xor eax, dword [0x403b78]
mov dword [0x403f04], eax
mov dword [section..data], 0
mov ecx, dword [section..data]
shl ecx, 2
mov eax, dword [ecx + 0x403548]
inc dword [section..data]
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
xor edx, edx
div dword [ebp + 8]
xchg edx, eax
leave
ret 4
Function at 0x40116a
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0xd
push 0x20
call fcn.0040103c
mov al, byte [eax + str.23456789ABCDEFGHJKLMNPQRSTUVWXYZ64382957JKLMNPQRSTUVWXYZABCDEFGH]
mov byte [ebx + 0x403003], al
dec ebx
jne 0x401175
mov esi, 1
xor edi, edi
xor ebx, ebx
mov ecx, 0xfff1
movsx eax, byte [ebx + 0x403004]
add eax, esi
xor edx, edx
div ecx
mov esi, edx
lea eax, [edi + esi]
xor edx, edx
div ecx
mov edi, edx
inc ebx
cmp ebx, 0xd
jne 0x401199
shl edi, 0x10
add edi, esi
mov eax, dword [ebp + 8]
xor eax, edi
mov ebx, 7
mov edx, eax
and dl, 0x1f
mov byte [ebx + 0x403010], dl
shr eax, 5
dec ebx
jne 0x4011c6
mov ah, byte [0x403011]
mov al, byte [0x403017]
and al, 7
shl al, 2
or al, ah
mov byte [0x403011], al
mov ebx, 7
movzx eax, byte [ebx + 0x403010]
mov al, byte [eax + 0x403040]
mov byte [ebx + 0x403010], al
dec ebx
jne 0x4011f3
xor ebx, ebx
mov edx, dword [ebp + 8]
movzx eax, byte [ebx + 0x403004]
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x403060]
shr edx, 8
xor edx, eax
inc ebx
cmp ebx, 0x14
jne 0x40120e
mov eax, edx
and dl, 3
shl dl, 3
mov byte [0x403017], dl
mov ebx, 6
shr eax, 2
mov edx, eax
and dl, 0x1f
mov byte [ebx + 0x403010], dl
shr eax, 5
dec ebx
jne 0x401244
mov ah, byte [0x403011]
mov al, byte [0x403017]
and ah, 7
or al, ah
mov byte [0x403017], al
mov ebx, 7
movzx eax, byte [ebx + 0x403010]
mov al, byte [eax + str.23456789ABCDEFGHJKLMNPQRSTUVWXYZ64382957JKLMNPQRSTUVWXYZABCDEFGH]
mov byte [ebx + 0x403010], al
dec ebx
jne 0x40126f
mov ebx, 7
movzx eax, byte [ebx + 0x403018]
mov dh, byte [eax + 0x403004]
mov dl, byte [ebx + 0x403010]
mov byte [ebx + 0x403010], dh
mov byte [eax + 0x403004], dl
dec ebx
jne 0x40128a
mov eax, 0x403004
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4012dc
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403f08], eax
push 0xa
push 0
push 0
push dword [0x403f08]
call 0x4012dc
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x4013ec
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403f08]
pop dword [ebp - 0x1c]
push 1
push dword [0x403f08]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 5
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.executter_window
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
call sub.user32.dll_GetSystemMetrics
sub eax, 0x140
shr eax, 1
mov dword [ebp - 0x54], eax
push 1
call sub.user32.dll_GetSystemMetrics
sub eax, 0xdc
shr eax, 1
mov dword [ebp - 0x58], eax
push 0
push dword [0x403f08]
push 0
push 0
push 0xdc
push 0x140
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push 0xc80000
push 0x403460
push str.executter_window
push 0x40008
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push 0xa
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4013e5
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4013be
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x41e168
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e1c1
test eax, edx
je 0x41e1c4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41e17f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e1a6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41e1a7
add ecx, 4
js 0x41e197
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e1a4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e1a6
xor eax, eax
ret
test eax, eax
je 0x41e1d0
test edx, edx
jne 0x41e170
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426024
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407b7c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b610
mov edi, eax
cmp edi, 0x104
jbe 0x425fcf
mov eax, edi
add eax, eax
call fcn.00404708
mov esi, eax
jmp 0x425fd1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b610
push esi
call fcn.0040d850
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42600a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x425ff4
mov eax, esp
cmp esi, eax
je 0x426017
mov eax, esi
call fcn.00404724
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x426050
cmp bl, 0
je 0x42604c
cmp bl, 0x41
jl 0x426047
cmp bl, 0x5a
jg 0x426047
or bl, 0x20
xor al, bl
inc esi
jmp 0x42602b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x425f90
Function at 0x46fb38
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x46fb3e
ret

Function at 0x47b568
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47b725
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x47b701
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x47b701
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x47b534]
call fcn.00409a08
add esp, 4
lea eax, [ebp - 4]
call fcn.0040b0d8
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x7163b4]
push eax
call fcn.00454a80
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00409840
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00405150
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x46e478]
call fcn.00477ef4
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x47b6df
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00479b70
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.00478814
call fcn.00472bc8
push eax
call fcn.0040d758
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00478b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b701
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b72c
lea eax, [ebp - 8]
mov edx, dword [0x47b534]
call fcn.00409b2c
lea eax, [ebp - 4]
call fcn.0040b0d8
ret
Function at 0x10001c8a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
mov dword [ebp - 0x4c], eax
jne 0x10001cae
mov dword [ebp - 0x48], esi
jmp 0x10001cc0
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push dword [ebp + 0x14]
push eax
call fcn.10009220
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
cmp ebx, esi
jne 0x10001cd4
lea ebx, [ebp - 0xa0]
mov dword [ebp + 0x20], 0x50
push esi
lea eax, [ebp + 0x14]
push esi
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp + 0x14], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x10001d1f
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x50]
push 0x50
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001d1f
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, esi
jne 0x10001d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x10001d34
mov eax, dword [ebp + 0x24]
movzx ecx, word [eax]
mov dword [eax], ecx
cmp dword [ebp + 0x28], esi
je 0x10001d53
cmp edi, esi
je 0x10001d53
cmp dword [ebx], esi
je 0x10001d46
push 1
pop eax
jmp 0x10001d55
mov eax, dword [ebp + 0x24]
mov dword [eax], 0x3a
xor eax, eax
jmp 0x10001d55
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100027b7
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
jne 0x100027d8
and dword [ebp - 0x48], 0
jmp 0x100027ea
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push dword [ebp + 0x14]
push eax
call fcn.10009220
add esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push 0x50
test esi, esi
pop ebx
jne 0x10002800
lea esi, [ebp - 0xc0]
mov dword [ebp + 0x20], ebx
lea eax, [ebp - 0x70]
push 0x20
push eax
push dword [ebp + 8]
call fcn.10002863
mov edi, dword [ebp + 0x24]
add esp, 0xc
lea eax, [ebp - 0x50]
push dword [ebp + 0x2c]
push edi
push dword [ebp + 0x20]
push esi
push ebx
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov ebx, eax
test ebx, ebx
jne 0x10002839
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000283c
movzx eax, word [edi]
cmp dword [ebp + 0x28], 0
mov dword [edi], eax
je 0x1000285c
test ebx, ebx
je 0x1000285c
cmp dword [esi], 0
je 0x10002852
push 1
pop eax
jmp 0x1000285e
mov dword [edi], 0x3a
xor eax, eax
jmp 0x1000285e
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002ac2
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x10002b0e
call fcn.10002aae
cmp dword [ebp + 8], 0
je 0x10002b12
cmp dword [ebp + 0xc], 0
je 0x10002b12
push dword [ebp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10002b03
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10009220
add esp, 0xc
push edi
jmp 0x10002b14
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
jmp 0x10002b1d
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
ret 8
Function at 0x10003292
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
push dword [ebp + 0xc]
xor esi, esi
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.1000698e
add esp, 0x10
lea eax, [ebp - 0x400]
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003308
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003301
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003c6a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.10009a70
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x10], ebx
push edi
jle 0x10003cda
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10009a5d
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x10003cda
and byte [ebp - 0x1000], al
mov ecx, 0x3ff
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1000]
push 0x10019980
push eax
call fcn.100099da
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x10003c83
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003ed8
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 8
add eax, 0x1c
pop edx
xor dword [eax], ecx
mov ecx, dword [eax]
sub eax, 4
dec edx
jne 0x10003ee6
ret

Function at 0x10003ef1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push 8
add eax, 0x1c
pop edx
mov ecx, dword [eax]
mov esi, ecx
xor esi, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov dword [eax], esi
sub eax, 4
dec edx
jne 0x10003efc
pop esi
ret
Function at 0x10005b3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10005cd1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10005cd1
cmp dword [ebp + 0x10], 0
je 0x10005cd1
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10005cd1
cmp dword [ebp + 0x18], 0
je 0x10005cd1
and byte [edi], 0
cmp byte [esi], 0x2e
jne 0x10005b9b
cmp byte [esi + 1], 0x5c
jne 0x10005b9b
add esi, 2
push esi
push dword [ebp + 0x10]
push ebx
push edi
call fcn.1000698e
add esp, 0x10
jmp 0x10005cbe
push 9
push str.WINSYSTEM
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005bc9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi + 9], 0x5c
jne 0x10005cbe
add esi, 0xa
jmp 0x10005c6e
push 0xb
push str.WINCOMMON64
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005c01
push 1
push ebx
push edi
call fcn.10007078
add esp, 0xc
cmp byte [edi], 0
je 0x10005cd1
cmp byte [esi + 0xb], 0x5c
jne 0x10005cbe
add esi, 0xc
jmp 0x10005c6e
push 9
push str.WINCOMMON
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005c2b
push eax
push ebx
push edi
call fcn.10007078
add esp, 0xc
cmp byte [edi], 0
je 0x10005cd1
jmp 0x10005bb7
push 3
push 0x10019d80
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005c52
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi + 3], 0x5c
jne 0x10005cbe
add esi, 4
jmp 0x10005c6e
cmp byte [esi], 0x24
jne 0x10005c75
cmp byte [esi + 1], 0x57
jne 0x10005c75
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi + 2], 0x5c
jne 0x10005cbe
add esi, 3
push esi
push edi
jmp 0x10005b8c
push 0xe
push str.NETSCAPEPLUGIN
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005cd6
push ebx
push edi
call fcn.10005a6c
cmp byte [edi], 0
pop ecx
pop ecx
je 0x10005cb1
cmp byte [esi + 0xe], 0x5c
jne 0x10005cac
add esi, 0xf
push esi
push edi
push ebx
push edi
call fcn.1000698e
add esp, 0x10
cmp byte [edi], 0
jne 0x10005cc3
push ebx
push dword [ebp + 0x10]
push edi
call fcn.10009940
add esp, 0xc
cmp byte [edi], 0
je 0x10005cd1
push dword [ebp + 0x18]
push edi
push ebx
push edi
call fcn.1000698e
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
cmp byte [esi], 0
je 0x10005cb1
cmp byte [esi + 1], 0x3a
jne 0x10005cb1
push ebx
push esi
jmp 0x10005cb5

Function at 0x10006484
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.100103e6
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100064a5
call fcn.1000adb9
mov eax, dword [eax]
ret
sub eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
ret