joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1029c0c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x102b92b4]
mov dword [0x102b92bc], 0
mov dword [0x102b92c0], 0
mov dword [0x102b92cc], 0
mov ebx, edi
add ebx, 0xffffe517
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
mov dword [0x102b92b8], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
jne 0x1029c263
mov eax, dword [ebp - 0x28]
add eax, 0xffffdbf0
mov dword [0x102b92b8], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov edi, 0x100
mov ebx, esi
add ebx, 1
add eax, 1
mov dword [0x102b92b8], ecx
mov dword [0x102b92b4], 0x14b6
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x102b92bc], edx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x102b92c0], edx
mov dword [0x102b92b4], 0x44
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x40]
mov cl, byte [ecx + edi]
mov byte [0x102b92c4], cl
mov dword [0x102b92b4], 0xe50
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x1c]
mov byte [edx + edi], cl
mov cl, byte [0x102b92c4]
mov edx, dword [0x102b92c0]
mov edi, dword [ebp - 0x1c]
mov byte [edi + edx], cl
mov edx, dword [0x102b92b4]
mov ecx, edx
add ecx, 0xb7f
mov dword [0x102b92b8], ecx
mov ecx, dword [0x102b92bc]
movzx ecx, byte [edi + ecx]
mov edi, dword [0x102b92c0]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edi]
mov ecx, dword [ebp - 0x44]
add edi, ecx
mov dword [0x102b92b8], 0x10dd
and edi, 0xff
mov dword [0x102b92cc], edi
add edx, 0xffffe052
mov dword [0x102b92b4], edx
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + edi]
mov edx, dword [ebp - 0x14]
mov ch, byte [edx + esi]
mov dword [0x102b92b8], 0xfffffdd5
xor ch, cl
mov edi, dword [ebp - 0x18]
mov byte [edi + esi], ch
mov dword [0x102b92b4], 0xc10
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x48], ebx
je 0x1029c2a8
jmp 0x1029c283
xor eax, eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffff5ed
mov edx, eax
mov esi, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], eax
jmp 0x1029c145
mov eax, 0x1fd
mov ecx, dword [0x102b92bc]
mov edx, dword [0x102b92c0]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], ecx
jmp 0x1029c145
mov eax, 0xc10
mov dword [ebp - 0x28], eax
jmp 0x1029c130
Function at 0x10005159
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
push edi
mov edi, ecx
cmp word [edx], ax
jne 0x10005174
mov eax, edi
jmp 0x100051fa
movzx eax, word [edi]
push ebx
push esi
test ax, ax
je 0x100051f6
mov esi, edi
mov ebx, edx
test ax, ax
je 0x100051d9
movzx eax, word [ebx]
test ax, ax
je 0x100051fd
movzx ecx, word [esi]
sub ecx, eax
jne 0x100051d9
push esi
call dword [0x10010104]
push ebx
mov dword [ebp - 4], eax
call dword [0x10010104]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, esi
xor ecx, eax
test ecx, 0xfffffffe
jne 0x100051d9
jmp 0x100051ce
add esi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [esi]
sub ecx, eax
je 0x100051d2
cmp esi, edx
jb 0x100051be
xor eax, eax
cmp word [esi], ax
jne 0x10005187
xor edx, edx
cmp word [ebx], dx
je 0x100051fd
push edi
call dword [0x10010104]
mov edx, dword [ebp - 8]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x1000517e
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
mov eax, edi
jmp 0x100051f8
Function at 0x10009304
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1000f144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov esi, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x44]
mov byte [eax], bl
mov dword [ebp - 0x4c], ecx
mov eax, dword [edi + 0x94]
test eax, eax
je 0x1000934b
push eax
call dword [0x100101a4]
pop ecx
mov dword [edi + 0x94], ebx
push 2
pop eax
push eax
push dword [ebp - 0x48]
push 0x100029fc
call dword [0x1001016c]
add esp, 0xc
test eax, eax
je 0x1000937d
push 0x1000f198
call dword [0x10010184]
mov dword [edi + 0x94], eax
xor eax, eax
pop ecx
jmp 0x100094e5
mov eax, dword [ebp - 0x48]
add eax, 2
push 0x40
push eax
call dword [0x10010168]
mov edx, eax
mov dword [ebp - 0x54], edx
pop ecx
pop ecx
test edx, edx
je 0x10009364
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000939f
sub ecx, dword [ebp - 0x48]
add edx, ecx
mov ecx, dword [ebp - 0x54]
push 0x100029d8
call fcn.1000aa69
test eax, eax
je 0x100094cc
mov ecx, dword [ebp - 0x50]
add eax, 8
mov byte [ecx], 1
mov cl, byte [eax]
cmp cl, 0x20
je 0x100093d5
cmp cl, 9
jne 0x100093d8
inc eax
jmp 0x100093c9
cmp cl, 0x3d
jne 0x100094c5
inc eax
mov cl, byte [eax]
cmp cl, 0x20
je 0x100093e1
cmp cl, 9
je 0x100093e1
test cl, cl
je 0x1000941f
mov dl, cl
cmp cl, 0x20
je 0x10009416
cmp cl, 9
je 0x10009416
cmp cl, 0x25
je 0x10009416
cmp esi, 0x3f
jae 0x10009416
mov byte [ebp + esi - 0x44], dl
inc esi
inc eax
mov dl, byte [eax]
mov cl, dl
test dl, dl
jne 0x100093f4
cmp esi, 0x40
jae 0x100094f6
mov byte [ebp + esi - 0x44], bl
jmp 0x1000942b
cmp cl, 0x25
je 0x1000943a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x10009425
cmp cl, 0x25
jne 0x100094c5
cmp byte [eax + 1], 0x3e
jne 0x100094c5
mov al, byte [ebp - 0x44]
cmp al, 0x27
je 0x1000944f
cmp al, 0x22
jne 0x10009457
lea esi, [ebp - 0x43]
mov dword [ebp - 0x4c], esi
jmp 0x1000945a
lea esi, [ebp - 0x44]
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009460
sub ecx, edx
mov al, byte [ebp + ecx - 0x45]
cmp al, 0x27
je 0x10009475
cmp al, 0x22
jne 0x1000947f
dec ecx
cmp ecx, 0x40
jae 0x100094f6
mov byte [ebp + ecx - 0x44], bl
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10009482
sub esi, ecx
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000b61f
mov dword [edi + 0x94], eax
pop ecx
test eax, eax
je 0x100094be
mov ecx, dword [ebp - 0x4c]
push esi
push ecx
push eax
call dword [0x10010164]
add esp, 0xc
jmp 0x100094e3
mov ebx, 0x8007000e
jmp 0x100094e3
mov eax, 0x80070057
jmp 0x100094e5
push 0x1000f198
call dword [0x10010184]
pop ecx
mov ecx, dword [ebp - 0x50]
mov dword [edi + 0x94], eax
mov byte [ecx], bl
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c300
leave
ret 8
call fcn.1000c57d
int3
Function at 0x1000c832
Capabilities:
Encode data using xor

Disassembly:
push 0x1998bc00
pop ebx
sbb al, 0xc0
fadd dword [eax - 0x3a91e4e3]
cmp edx, dword [esi + 0x3fbe5890]
sbb al, 0x6e

Function at 0x1000cbf3
Capabilities:
Encode data using xor

Disassembly:
popfd
add byte [esi], dl
push ss
pop eax
invalid
push cs
jge 0x1000cbe9
movsd dword es:[edi], dword [esi]
xchg ecx, eax
ja 0x1000cbfc
nop
push cs
or al, 0x6f
adc al, 0x2d
jg 0x1000cb6d
add eax, 0xa6846779
int 0x87
bound esp, qword [edx - 0x4a]
and dword [edi], ecx
cmp al, 0x4e
bound esi, qword [esi + 0x4e3c0f21]
mov bl, 0x60
add eax, 0x9f0b3f25
mov edx, 0xb6f24490
xor dword [ecx], edx
xor dword [ecx], edx
cli
or edi, esi
out dx, eax
imul esp, edx, 0xffffff9f
sti
div dword [0x28f5b3d1]
dec ebx
loop 0x1000cbf6
les edi, [edi]
retf
Function at 0x1002fb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100138c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100300d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10013c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003000
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100300f
xor eax, eax
pop esi
leave
ret 4

Function at 0x6b001d90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x6b0070c0]
test eax, eax
je 0x6b001e48
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x6b001dd0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x6b001dbc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6b001e7d
mov dword [esp + 4], 0x6b0050e8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6b0070c0], eax
sub esp, 8
test eax, eax
jne 0x6b001dad
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x6b001dbe
Function at 0x10009330
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, ecx
mov eax, dword [0x10023040]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [ecx + 0x10], 0
sete byte [esp + 0x2b]
mov eax, 0x28116a6b
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esp + 0x44]
lea edi, [esp + 0x34]
nop word cs:[eax + eax]
cmp eax, 0x19799d0b
jle 0x100093b0
cmp eax, 0x19799d0c
je 0x100093c7
cmp eax, 0x1d48cd50
je 0x10009451
cmp eax, 0x28116a6b
jne 0x10009370
cmp byte [esp + 0x2b], 0
mov eax, 0x19799d0c
mov ecx, 0x17f35cfa
cmovne eax, ecx
jmp 0x10009370
cmp eax, 0x937166bf
je 0x10009463
cmp eax, 0x17f35cfa
jne 0x10009370
jmp 0x1000949d
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x40], 0
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movups xmmword [eax], xmm0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10009405
mov eax, dword [esi]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebp
movaps xmm0, xmmword [0x1001f970]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
mov eax, 0x937166bf
mov ecx, 0x1d48cd50
cmove eax, ecx
jmp 0x10009370
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov eax, 0x17f35cfa
jmp 0x10009370
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, 0x1d48cd50
jmp 0x10009370
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100111ea
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10012116
Capabilities:
Parse pe header

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

Function at 0x10013490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100134bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100134bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100137e0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d620
push 0x1001d618
push str.FlsAlloc
push 0x1f
call fcn.10013ac3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013814
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1001381a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001385e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d630
push 0x1001d628
push str.FlsGetValue
push 0x21
call fcn.10013ac3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013895
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001389d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d638
push 0x1001d630
push str.FlsSetValue
push 0x22
call fcn.10013ac3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100138d7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001679e
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 0x1001683b
push ebx
push esi
call fcn.1001683e
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.100166a2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100167e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001683a
push edi
push eax
call fcn.10016a9c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016808
call fcn.10014d90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016839
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100166a2
add esp, 0x20
test eax, eax
jne 0x10016827
push edi
call fcn.10014d90
jmp 0x1001682f
push ebx
call fcn.10014d90
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
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ebx
push edi
push eax
lea ecx, [esp + 0x1c]
push 0x80
push ecx
push 0x409b00
xor ebx, ebx
push edx
push str.FONT
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x18]
test al, al
jne 0x40104f
pop edi
xor eax, eax
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x18]
push 0x407280
push eax
call fcn.004029b0
add esp, 8
cmp eax, ebx
jne 0x401070
pop edi
xor eax, eax
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x407280
push ebx
call fcn.004029b0
add esp, 8
cmp eax, ebx
jne 0x40109c
pop edi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0xa
push eax
call fcn.004023a0
push 0x407280
push ebx
mov dword [esp + 0x20], eax
call fcn.004029b0
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x4010c7
pop edi
xor eax, eax
pop ebx
add esp, 0x110
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push esi
mov esi, 0x407030
mov edx, dword [esi]
push edx
push edi
call ebp
test eax, eax
je 0x4010ec
add esi, 8
inc ebx
cmp esi, 0x4070c8
jl 0x4010d4
jmp 0x4010f7
mov eax, dword [ebx*8 + 0x407034]
mov dword [esp + 0x14], eax
push 0x407280
push 0
call fcn.004029b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401136
xor edi, edi
mov esi, 0x4070c8
mov ecx, dword [esi]
push ecx
push ebx
call ebp
test eax, eax
je 0x40112b
add esi, 8
inc edi
cmp esi, str.BLACK
jl 0x401113
jmp 0x401136
mov edx, dword [edi*8 + 0x4070cc]
mov dword [esp + 0x10], edx
push 0x407280
push 0
call fcn.004029b0
add esp, 8
test eax, eax
je 0x401158
push str.UNDERLINE
push eax
call ebp
neg eax
sbb eax, eax
inc eax
jmp 0x40115c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa0]
push ecx
push 0
push 0
push 0
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x30]
push 0
push eax
mov eax, dword [esp + 0x40]
push 0
push 0
neg eax
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x110
ret

Function at 0x4011a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
test esi, esi
jne 0x4011b6
pop esi
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0x86
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4011d4
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x401c40
Capabilities:
Create pipe
Create thread

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
push 0x409b04
push str.DEFAULT
push esi
call fcn.00401000
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0xc
mov edi, eax
push 0
push 0x40
push 0xc5
push 0x3ee
push esi
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebp
push 0
push 0x40
push 0xc5
push 0x3f0
push esi
call ebx
push eax
call ebp
push 0x409b04
push 0
push 0x407358
push edi
push esi
call fcn.00402260
add esp, 0x14
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push esi
call fcn.004021a0
mov eax, dword [esp + 0x12c]
add esp, 8
lea edx, [esp + 0x14]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
push str..pipe_s_Msg_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x14]
push 0
push 0x3e8
push 0x1000
push 0x1000
push 0xff
push 0
push 0x400c0003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
jne 0x401d1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
push eax
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push 0x401960
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xfffffffffffffffe
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret

Function at 0x401d70
Capabilities:
Create mailslot

Disassembly:
sub esp, 0x20
push esi
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x401d8c
pop esi
add esp, 0x20
ret
lea eax, [esp + 0x10]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 2
push 0x400
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x401db9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
add esp, 0x20
ret
push 0x407600
push 0xf01fffff
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x401dde
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
add esp, 0x20
ret
push 0
push esi
lea ecx, [esp + 0x18]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x401e00
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0x28]
lea eax, [esp + 4]
push edi
push eax
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
Function at 0x401f80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
sub esp, 0x800
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x80c]
push 0x800
push ecx
push 0x409b00
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp]
push eax
push edx
call fcn.00401ef0
mov eax, dword [esp + 0x818]
add esp, 8
test eax, eax
je 0x401fef
mov ecx, dword [esp + 0x814]
push eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esp, 0x800
ret
mov eax, dword [esp + 0x814]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x800
ret

Function at 0x402010
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1100
call fcn.00402a50
mov ecx, dword [esp + 0x1114]
push ebx
push esi
mov esi, dword [esp + 0x1110]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov edi, dword [esp + 0x1118]
push esi
lea eax, [esp + 0x10]
push 0x100
push eax
push 0x409b00
push ecx
push edi
call ebx
mov eax, dword [esp + 0x111c]
push esi
lea edx, [esp + 0x110]
push 0x800
push edx
push str.ERROR
push eax
push edi
call ebx
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10c]
push eax
push edx
call fcn.00401ef0
mov eax, dword [esp + 0x1130]
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
je 0x4020c7
push eax
lea eax, [esp + 0x104]
lea ecx, [esp + 0x904]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x900]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x1118]
lea edx, [esp]
or ecx, 0x10000
lea eax, [esp + 0x100]
push ecx
mov ecx, dword [esp + 0x1108]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x1100
ret

Function at 0x402410
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40249c
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x402459
mov edi, dword [esp + 0xc]
xor ecx, ecx
cmp ecx, edi
pop edi
sbb eax, eax
neg eax
inc eax
add esp, 0x94
ret
cmp eax, 2
jne 0x40249c
mov eax, dword [esp + 8]
cmp eax, 4
jne 0x402474
mov eax, 3
pop edi
add esp, 0x94
ret
cmp eax, 5
jne 0x40248f
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
setne al
add eax, 4
pop edi
add esp, 0x94
ret
cmp eax, 6
jne 0x40249c
pop edi
add esp, 0x94
ret
xor eax, eax
pop edi
add esp, 0x94
ret