joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036c4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x1000fdb8
call fcn.1000f098
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
push 0x20019
push str.SoftwareBearShareGeneral
push SysReAllocString
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.100016ac
test eax, eax
jne 0x100037f1
push 0x10013268
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x18], ebx
call fcn.10007db2
test eax, eax
jne 0x100037f1
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.1000931f
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [esp], 0x10013268
push eax
call fcn.10007db2
test eax, eax
jne 0x100037e5
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.10008aa0
push 0x10013264
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.10007d3e
push str.BearShare.exe
lea eax, [ebp - 0x18]
push eax
call fcn.10007d3e
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x70], 0x44
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x18]
cmp edi, ebx
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.10006979
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
call fcn.1000931a
cmp dword [ebp - 0x14], ebx
pop ecx
je 0x100037e0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
jmp 0x10003801
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
call fcn.1000931a
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x100037ff
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100038bf
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ebx
xor ebx, ebx
cmp ecx, ebx
jne 0x100038d5
xor al, al
jmp 0x10003914
push ebx
lea edx, [ebp - 8]
push edx
add ecx, ecx
push ecx
push eax
push dword [esi + 0xa4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 0xa4]
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
call fcn.100038a3
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x10004b53
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
lea eax, [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x78]
test esi, esi
je 0x10004b78
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret

Function at 0x10007db2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007e0b
cmp dword [ebp + 0xc], 1
je 0x10007de9
cmp dword [ebp + 0xc], 2
jne 0x10007e00
test edi, edi
mov eax, dword [ebp - 4]
je 0x10007e05
test al, 1
jne 0x10007e00
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10007e05
push 0xd
pop eax
jmp 0x10007e0b
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x10008ba6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008bbd
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10008bcf
xor eax, eax
jmp 0x10008c00
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10008bf2
cmp edi, eax
jae 0x10008bcb
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10008be4
cmp edi, eax
jae 0x10008bcb
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x10009d38
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000bcd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009dd3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10016b58]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10009dd3
cmp eax, 1
je 0x10009df4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009dd3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10009da0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009dcf
xor eax, eax
inc eax
jmp 0x10009e13
cmp edi, eax
jae 0x10009dd7
xor eax, eax
jmp 0x10009e13
cmp eax, esi
jae 0x10009dde
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10016b58]
jmp 0x10009df7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009ec8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10009fb8
mov eax, 0x94
call fcn.1000bcd0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000a02d
mov ecx, dword [esi + 0x10]
mov dword [0x10016b58], ecx
mov eax, dword [esi + 4]
mov dword [0x10016b64], eax
mov edx, dword [esi + 8]
mov dword [0x10016b68], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10016b5c], esi
je 0x10009f33
or esi, 0x8000
mov dword [0x10016b5c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10016b60], eax
call fcn.1000a68e
test eax, eax
pop ecx
je 0x1000a02d
call fcn.1000bbd5
test eax, eax
jne 0x10009f60
call fcn.1000a6df
jmp 0x1000a02d
call fcn.1000c4e8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100174d8], eax
call fcn.1000c3c6
mov dword [0x10016b44], eax
call fcn.1000bea7
test eax, eax
jl 0x10009fb1
call fcn.1000c324
test eax, eax
jl 0x10009fac
call fcn.1000c0f1
test eax, eax
jl 0x10009fac
push 0
call fcn.1000a1ba
test eax, eax
pop ecx
jne 0x10009fac
inc dword [0x10016b40]
jmp 0x1000a03e
call fcn.1000c0a5
call fcn.1000b9be
jmp 0x10009f56
test eax, eax
jne 0x10009fe8
cmp dword [0x10016b40], eax
jle 0x1000a02d
dec dword [0x10016b40]
cmp dword [0x10016b94], eax
jne 0x10009fd7
call fcn.1000a2f8
call fcn.1000c0a5
call fcn.1000b9be
call fcn.1000a6df
jmp 0x1000a03e
cmp eax, 2
jne 0x1000a031
push 0x8c
push 1
call fcn.1000bdd0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000a02d
push esi
push dword [0x10016334]
call dword [0x10016d10]
test eax, eax
push esi
je 0x1000a027
call fcn.1000b9db
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000a03e
call fcn.10009247
pop ecx
xor eax, eax
jmp 0x1000a041
cmp eax, 3
jne 0x1000a03e
push 0
call fcn.1000bba6
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000a224
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10011410
call fcn.1000a380
push 8
call fcn.1000a628
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10016b98], esi
jne 0x1000a258
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10016b94], esi
mov al, byte [ebp + 0x10]
mov byte [0x10016b90], al
cmp dword [ebp + 0xc], edi
jne 0x1000a2a2
cmp dword [0x100174cc], edi
je 0x1000a292
mov eax, dword [0x100174c8]
sub eax, 4
mov dword [0x100174c8], eax
cmp eax, dword [0x100174cc]
jb 0x1000a292
mov eax, dword [eax]
cmp eax, edi
je 0x1000a273
call eax
jmp 0x1000a273
push 0x1001603c
mov eax, 0x10016038
call fcn.1000a1a2
pop ecx
push 0x10016048
mov eax, 0x10016040
call fcn.1000a1a2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000a2d3
cmp dword [ebp + 0x10], edi
jne 0x1000a2e1
mov dword [0x10016b98], esi
push dword [ebp + 8]
call fcn.1000a160
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000a2e0
push 8
call fcn.1000a573
pop ecx
ret
call fcn.1000a3bb
ret
Function at 0x1000c6ef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10016710]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100163f0]
je 0x1000c726
inc eax
cmp eax, 0x13
jb 0x1000c717
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100163f0]
jne 0x1000c849
mov eax, dword [0x10016b4c]
cmp eax, 1
je 0x1000c824
cmp eax, edx
jne 0x1000c756
cmp dword [0x10016b50], 1
je 0x1000c824
cmp ecx, 0xfc
je 0x1000c849
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000c78c
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.1000d490
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.1000d5e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000c7c0
mov eax, edi
push eax
call fcn.1000d5e0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10011a78
push edi
call fcn.1000ce80
add esp, 0x10
push edi
call fcn.1000d5e0
push dword [esi + 0x100163f4]
mov ebx, eax
call fcn.1000d5e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000bcd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000d490
push edi
push ebx
call fcn.1000d4a0
push 0x10011a58
push ebx
call fcn.1000d4a0
push dword [esi + 0x100163f4]
push ebx
call fcn.1000d4a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000ddfd
add esp, 0x2c
jmp 0x1000c849
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x100163f4]
push dword [esi]
call fcn.1000d5e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.1000d69c
add ebp, 0x90
leave
ret
Function at 0x1000ddfd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10016ef8], ebx
push esi
push edi
jne 0x1000de7d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000deb8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10016ef8], eax
je 0x1000deb8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10016efc], eax
call esi
cmp dword [0x10016b58], 2
mov dword [0x10016f00], eax
jne 0x1000de7d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10016f08], eax
je 0x1000de7d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10016f04], eax
mov eax, dword [0x10016f04]
test eax, eax
je 0x1000dec2
call eax
test eax, eax
je 0x1000dea9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10016f08]
test eax, eax
je 0x1000dea9
test byte [ebp - 8], 1
jne 0x1000dec2
cmp dword [0x10016b64], 4
jb 0x1000debc
or byte [ebp + 0x12], 0x20
jmp 0x1000dee1
xor eax, eax
jmp 0x1000def1
or byte [ebp + 0x12], 4
jmp 0x1000dee1
mov eax, dword [0x10016efc]
test eax, eax
je 0x1000dee1
call eax
mov ebx, eax
test ebx, ebx
je 0x1000dee1
mov eax, dword [0x10016f00]
test eax, eax
je 0x1000dee1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10016ef8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000eaa2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10016710]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1000ea24
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10009330
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1000eb06
cmp dword [ebp - 0x1c], 5
jb 0x1000eb1e
jmp 0x1000eb1a
cmp dword [ebp - 0x10], 1
jne 0x1000eb1e
cmp dword [ebp - 0x1c], 4
ja 0x1000eb1a
jne 0x1000eb1e
cmp dword [ebp - 0x18], 0
jbe 0x1000eb1e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x100123fc
call fcn.10001a88
test eax, eax
jge 0x1000eb3f
mov byte [0x10017100], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000d69c
add ebp, 0x78
leave
ret
Function at 0x4010dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442004]
jne 0x4010e6
repz ret
jmp fcn.00401547

Function at 0x404f0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x442004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403bf9
and dword [ebp - 0x14], 0
cmp dword [0x444c78], 0
mov dword [ebp - 0x18], eax
jne 0x404fbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405066
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405066
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x444c78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x444c7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x444c80], eax
call edi
push eax
call esi
mov dword [0x444c88], eax
test eax, eax
je 0x404fbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x444c84], eax
mov eax, dword [0x444c84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405017
cmp dword [0x444c88], ecx
je 0x405017
push eax
call esi
push dword [0x444c88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405017
test ebx, ebx
je 0x405017
call edi
test eax, eax
je 0x40500e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40500e
test byte [ebp - 8], 1
jne 0x405017
or dword [ebp + 0x10], 0x200000
jmp 0x40504a
mov eax, dword [0x444c7c]
cmp eax, dword [ebp - 0x18]
je 0x40504a
push eax
call esi
test eax, eax
je 0x40504a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40504a
mov eax, dword [0x444c80]
cmp eax, dword [ebp - 0x18]
je 0x40504a
push eax
call esi
test eax, eax
je 0x40504a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x444c78]
call esi
test eax, eax
je 0x405066
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405068
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010dc
leave
ret
Function at 0x4370e0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test edi, edi
jle 0x4370f3
call fcn.00437080
xor byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x4370e6
cmp edi, 0x2d
jne 0x43710c
mov dword [0x2bea6d8], 0xa62e7790
mov dword [0x2bea6dc], 0xffffffff
ret

Function at 0x437110
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x442004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x442dd0]
push esi
mov esi, dword [0x2be824c]
push edi
mov edi, dword [0x2bea6cc]
call fcn.004370b0
cmp dword [0x2bea6cc], 0x2f
jne 0x43717d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.004370e0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004010dc
add esp, 0x24
ret
Function at 0x4373f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x437408
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x437449
mov dword [0x2bea334], 0x8e46a6f0
cmp dword [0x2bea6cc], 0x3dc
jne 0x437447
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
jmp 0x4373ff
mov dword [ebp - 0x10], 0
jmp 0x43745b
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x4374f6
cmp dword [0x2bea6cc], 0xa5f
jne 0x43747c
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x10], 0x84620b
jne 0x4374a1
mov eax, dword [0x443bf0]
mov dword [0x2bea6cc], eax
mov ecx, dword [0x2bea6cc]
add ecx, 0xa231
mov dword [0x2bea6cc], ecx
cmp dword [0x2bea6cc], 0x141
jne 0x4374f1
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov dword [0x4451b8], 0xec58acac
mov dword [0x4451bc], 0xffffffff
jmp 0x437452
call fcn.004371a0
jmp dword [0x2be824c]
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100080c7
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100080c7
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100080c7
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100080c7
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100080c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100080c7
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100080c7
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100080c7
push 0xd008
push edi
call fcn.100080c7
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100080c7
int3

Function at 0x100080c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100080d6
pop dword [ebp - 0x30]
mov eax, 0xe61cc24a
sub eax, 0xd61c4174
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x36522
push 0
mov eax, 0xd955af9b
add eax, 0x36ab90c9
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3d46
xor ebx, ebx
add ebx, eax
mov esi, 0xcc2a0559
add esi, 0x43d780a7
add esi, dword [ebp - 0x30]
mov edx, 0x8ab86f0d
sub edx, 0x8516613f
sub dword [ebp - 0x18], esi
mov edi, dword [esi]
xor dword [ebp - 0x20], esi
sub edi, edx
xor dword [ebp - 0x14], eax
mov dword [ebx], edi
mov dword [ebp - 0x24], 0xfa9b5da5
add ebx, 0x9137463a
add ebx, 0x6ec8b9ca
add esi, 0x79691005
add esi, 0x8696efff
loop 0x10008131
add eax, 0xec405add
sub eax, 0xec3f72f2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x43b52081
add ecx, 0xcc4adf7f
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1000cc3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002d770
call fcn.10016ea3
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000ccbb
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000ccbb
call fcn.10005a09
mov esi, eax
jmp 0x1000cd92
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000ccde
call fcn.10005a09
jmp 0x1000cd85
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000ccd4
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000cd0e
mov esi, 0x8007000e
jmp 0x1000cd87
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000fb0e
jmp 0x1000cd34
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cd07
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000ccd4
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1000fb0e
mov esi, eax
test edi, edi
je 0x1000cd92
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000cdab
lea ecx, [ebp - 0x418]
call fcn.1000c3cf
mov eax, esi
call fcn.10016df0
ret 0x10