joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422950
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e2fa
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x44ff00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
lea eax, [ebp + 0xc]
push eax
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], 1
call fcn.004221b0
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x4229af
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x34], ebx
jb 0x4229d4
mov edx, dword [ebp - 0x48]
push edx
call fcn.00428ac6
add esp, 4
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea edx, [ebp - 0x26c]
xor ecx, ecx
push edx
mov dword [ebp - 0x2a0], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
call fcn.0042c723
add esp, 4
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041dc50
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00422860
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x422a47
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00428ac6
add esp, 4
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x422ac8
nop
lea eax, [ebp - 0x26c]
xor edx, edx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.0042c723
add esp, 4
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041dc50
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00422860
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x422ab0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00428ac6
add esp, 4
mov edx, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422a60
cmp dword [ebp + 0x20], 0x10
jb 0x422ada
mov eax, dword [ebp + 0xc]
push eax
call fcn.00428ac6
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428baa
mov esp, ebp
pop ebp
ret 0x20
Function at 0x425060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x42506e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x42514d
mov esi, edx
shr esi, 3
push edi
jmp 0x425090
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445d00]
add ecx, 8
sub edx, 8
dec esi
jne 0x425090
pop edi
test edx, edx
je 0x42516a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x445d00]
inc ecx
dec edx
jne 0x425151
not eax
pop esi
pop ebp
ret

Function at 0x425170
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x445d00]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x445d00]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x425700
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x4257eb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x425737
cmp dword [esi + 0x40], edi
jae 0x425737
push eax
call fcn.00428ac6
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x42574f
lea eax, [edi + edi]
push eax
call fcn.0042ad81
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0042a110
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4257e8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x445d00]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x445d00]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x425767
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42582a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42580f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0042a110
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42584c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x462760]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x426de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x426ff5
cmp dword [esi + 0x6af90], 3
jb 0x426e57
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x426e97
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x426e97
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x426e7f
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.00424560
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x426e97
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x426f74
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.00424030
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x426f3e
cmp eax, 3
jb 0x426f3e
mov eax, 1
sub edi, eax
lea ecx, [ecx]
add dword [esi + 0x6af84], eax
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, eax
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x426ee0
add dword [esi + 0x6af84], eax
jmp 0x426f97
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
xor edi, edi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
jmp 0x426f97
movzx edx, byte [ecx + esi + 0x1af70]
push edx
push 0
push esi
call fcn.00424030
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x426fd3
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x426fb0
lea ecx, [eax + esi + 0x1af70]
jmp 0x426fb2
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00426c50
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x426fe8
push esi
call fcn.004246c0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x426e03
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x427008
lea ecx, [eax + esi + 0x1af70]
jmp 0x42700a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00426c50
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x428baa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ff00]
jne 0x428bb4
repz ret
jmp fcn.0042f475

Function at 0x4379fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44ff00]
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.00430b41
and dword [ebp - 0x14], 0
cmp dword [0x463910], 0
mov dword [ebp - 0x18], eax
jne 0x437aaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x437b57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x437b57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x463910], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x463914], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x463918], eax
call edi
push eax
call esi
mov dword [0x463920], eax
test eax, eax
je 0x437aaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46391c], eax
mov eax, dword [0x46391c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x437b08
cmp dword [0x463920], ecx
je 0x437b08
push eax
call esi
push dword [0x463920]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x437b08
test ebx, ebx
je 0x437b08
call edi
test eax, eax
je 0x437aff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x437aff
test byte [ebp - 8], 1
jne 0x437b08
or dword [ebp + 0x10], 0x200000
jmp 0x437b3b
mov eax, dword [0x463914]
cmp eax, dword [ebp - 0x18]
je 0x437b3b
push eax
call esi
test eax, eax
je 0x437b3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x437b3b
mov eax, dword [0x463918]
cmp eax, dword [ebp - 0x18]
je 0x437b3b
push eax
call esi
test eax, eax
je 0x437b3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x463910]
call esi
test eax, eax
je 0x437b57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x437b59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428baa
leave
ret
Function at 0x6735cba0
Capabilities:
Check http status code
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
mov edi, dword [eax]
mov eax, dword [edi + 0x85dc]
mov dword [ebp - 0x1c], eax
cmp ecx, 0xd
jae 0x6735ccf0
mov eax, dword [edi + 0x1fc]
test dl, dl
je 0x6735cc40
mov dword [ebx + 0x330], 0
test eax, eax
je 0x6735cc4c
mov esi, dword [ebx + 0x330]
test esi, esi
jle 0x6735cbf8
xor edx, edx
jmp 0x6735cbec
test eax, eax
je 0x6735cc4c
mov eax, dword [eax + 4]
inc edx
cmp edx, esi
jl 0x6735cbe8
test eax, eax
je 0x6735cc4c
mov eax, dword [eax]
cmp byte [eax], 0x2a
je 0x6735cd14
mov dword [ebx + 0x334], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x67399b32
lea eax, [ebx + 0x2d8]
mov dword [esp], eax
mov dword [ebp - 0x20], ecx
call fcn.6736df08
test eax, eax
mov ecx, dword [ebp - 0x20]
jne 0x6735cc37
mov dword [ebx + 0x33c], ecx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
inc dword [ebx + 0x330]
test eax, eax
jne 0x6735cbd7
nop
cmp ecx, 0xe
je 0x6735cd24
cmp ecx, 0xf
je 0x6735cdb7
cmp ecx, 0xd
je 0x6735cd34
cmp byte [ebx + 0x326], 0
jne 0x6735cda9
mov dword [ebx + 0x334], 0
xor eax, eax
cmp dword [edi + 0x28c], 2
sete al
mov dword [ebx + 0x338], eax
cmp byte [ebx + 0x12d], 0
jne 0x6735cd8c
mov ecx, dword [ebx + 0x318]
test ecx, ecx
je 0x6735cda9
mov dword [ebx + 0x330], 1
mov eax, dword [ebx + 0x314]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.CWD__s
lea eax, [ebx + 0x2d8]
mov dword [esp], eax
call fcn.6736df08
test eax, eax
jne 0x6735cc37
mov dword [ebx + 0x33c], 0x10
jmp 0x6735cc37
cmp ecx, 0xe
ja 0x6735cd00
mov eax, dword [edi + 0x204]
jmp 0x6735cbc5
cmp ecx, 0xf
jne 0x6735cbbf
mov eax, dword [edi + 0x200]
jmp 0x6735cbc5
inc eax
mov dword [ebx + 0x334], 1
jmp 0x6735cc0d
xor edx, edx
mov eax, ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp fcn.6735bc94
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x6735cd7b
mov edx, dword [ebx + 0x348]
mov eax, dword [ebx + 0x34c]
mov ecx, edx
and ecx, eax
inc ecx
je 0x6735cdbe
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.673527e4
mov edx, dword [ebx + 0x348]
mov ecx, dword [ebx + 0x34c]
mov eax, ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp fcn.6735b9f8
mov dword [ebx + 0x33c], 0
xor eax, eax
jmp 0x6735cc37
mov eax, dword [ebx + 0x310]
test eax, eax
je 0x6735cc9d
mov dword [ebx + 0x330], 0
jmp 0x6735ccbd
mov eax, ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp fcn.6735cb3c
xor eax, eax
jmp 0x6735cc37
mov eax, dword [ebx + 0x320]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x67399adb
lea eax, [ebx + 0x2d8]
mov dword [esp], eax
call fcn.6736df08
test eax, eax
jne 0x6735cc37
mov dword [ebx + 0x33c], 0x18
jmp 0x6735cc37
Function at 0x6737e40c
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [edx], 0x2c
je 0x6737e428
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp fcn.6737594c
mov edx, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov edi, dword [edx + 4]
test ecx, ecx
je 0x6737e4ac
mov edx, dword [eax + 0x104]
xor ebx, ebx
lea ecx, [eax + 4]
mov dword [ebp - 0x20], ecx
mov esi, eax
jmp 0x6737e465
mov ecx, edx
inc edx
mov byte [esi + ecx + 4], al
mov dword [esi + 0x104], edx
mov byte [esi + 0x108], al
inc ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x6737e4ac
mov al, byte [edi + ebx]
cmp edx, 0xff
jne 0x6737e44c
mov byte [esi + 0x103], 0
mov edx, dword [esi + 0x110]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
mov byte [ebp - 0x24], al
call dword [esi + 0x10c]
inc dword [esi + 0x124]
mov edx, 1
xor ecx, ecx
mov al, byte [ebp - 0x24]
jmp 0x6737e44f
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6737e4b4
Capabilities:
Encode data using xor
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, eax
mov eax, dword [edx]
test eax, eax
je 0x6737e520
cmp eax, 6
je 0x6737e520
mov eax, dword [ebx + 0x104]
cmp eax, 0xff
je 0x6737e560
lea ecx, [eax + 1]
mov byte [ebx + eax + 4], 0x28
mov dword [ebx + 0x104], ecx
mov byte [ebx + 0x108], 0x28
mov eax, ebx
call fcn.6737594c
mov eax, dword [ebx + 0x104]
cmp eax, 0xff
je 0x6737e52c
lea edx, [eax + 1]
mov byte [ebx + eax + 4], 0x29
mov dword [ebx + 0x104], edx
mov byte [ebx + 0x108], 0x29
add esp, 0x24
pop ebx
leave
ret
mov eax, ebx
add esp, 0x24
pop ebx
leave
jmp fcn.6737594c
mov byte [ebx + 0x103], 0
mov eax, dword [ebx + 0x110]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xff
lea eax, [ebx + 4]
mov dword [esp], eax
call dword [ebx + 0x10c]
inc dword [ebx + 0x124]
mov edx, 1
xor eax, eax
jmp 0x6737e505
mov byte [ebx + 0x103], 0
mov eax, dword [ebx + 0x110]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xff
lea eax, [ebx + 4]
mov dword [esp], eax
mov dword [ebp - 0xc], edx
call dword [ebx + 0x10c]
inc dword [ebx + 0x124]
mov ecx, 1
xor eax, eax
mov edx, dword [ebp - 0xc]
jmp 0x6737e4dc

Function at 0x67380ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x673a1a20
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x67380f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x67380f66
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x67380ffa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x67380fb5
cmp eax, 0x40
je 0x67380fb5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x67380f59
cmp eax, 0x40
je 0x67380f59
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x67380f59
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.67380ef0
lea esi, [esi]
lea edi, [edi]
Function at 0x1000abf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x3c8c56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.1002d014
mov eax, dword [0x3dd6d0]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x3cbeb4
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x1000ac64
push ebx
call dword [0x3cb2b8]
inc eax
push eax
call fcn.1002dfff
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [0x3cb2bc]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x10012150
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x3c9177
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x3ce174
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.1002c08e
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.1002c08e
mov edi, dword [0x3cb448]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x3cbebc
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x3cb3d0]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x3cb0f4]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.10012c70
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret