joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fb00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x449f6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
push 2
mov dword [ebp - 0x234], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
jne 0x41fb40
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004239c1
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x230]
push ecx
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41fbeb
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
jmp 0x41fb70
lea edx, [ebp - 0x20c]
push edx
push 0x43f424
call fcn.00423bd7
add esp, 8
test eax, eax
jne 0x41fba2
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push ecx
call esi
cmp eax, ebx
je 0x41fbcd
lea edx, [ebp - 0x230]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41fb70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004239c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x41fbeb
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41fc05
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004239c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x234]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004239c1
mov esp, ebp
pop ebp
ret
Function at 0x41fc40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push edi
push eax
call fcn.00428a2a
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x41fc61
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x40
lea ecx, [ebp - 0x54]
push ebx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
call fcn.00428a90
mov edx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push ebx
push eax
push 0x8000600
push 1
push ebx
push ebx
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
jne 0x41fd10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x41fd0c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jg 0x41fd0c
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
push 0
push ecx
push 0x8000600
push 1
push 0
push 0
push edi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
je 0x41fcc0
jmp 0x41fd10
test esi, esi
je 0x41fd34
cmp dword [ebp + 0x10], 0
je 0x41fd22
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x41fd42
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call fcn.00424d16
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420390
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push esi
cdq
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov dword [ebp - 4], edx
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4203f7
mov ecx, dword [esi]
lea edx, [ebp - 0xc]
xchg dword [edx], ecx
mov eax, dword [ebp - 0xc]
cmp eax, 0x8b55ff8b
jne 0x4203ea
mov ecx, 0x9090c033
mov edx, esi
xchg dword [edx], ecx
mov eax, 0x900004c2
lea ecx, [esi + 4]
xchg dword [ecx], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 4
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x42048e
xor al, al
pop ebp
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42048a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42048a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4204b1
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4204bd
mov eax, dword [eax + 0x50]
mov dword [ecx], eax
mov al, 1
pop ebp
ret
Function at 0x421a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x44cdf8], 1
je 0x421a25
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 1
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call fcn.00421680
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421a70
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push eax
push eax
mov eax, dword [ebp - 4]
push str.FullDump
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x421a7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4220b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x449f6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00428a90
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 0x105
call fcn.00421780
add esp, 0x14
test eax, eax
jne 0x422117
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004239c1
mov esp, ebp
pop ebp
ret
push str.BugReportConfig.ini
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422163
push eax
push 0x80
push 2
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x422106
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422170
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.0041a090
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004239c1
mov esp, ebp
pop ebp
ret
Function at 0x422c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x422c1f
mov edx, dword [ebx + 0x10]
cmp edx, 0x40
jb 0x422c1f
mov eax, 0x5a4d
mov dword [ebx + 0x1c], ecx
cmp word [ecx], ax
je 0x422c23
xor al, al
pop ebx
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
push esi
mov dword [ebx + 0x20], eax
cmp eax, ecx
jb 0x422d94
add ecx, edx
lea esi, [eax + 0x108]
cmp esi, ecx
ja 0x422d94
lea ecx, [eax + 4]
mov dword [ebx + 0x24], ecx
cmp dword [eax], 0x4550
jne 0x422d94
movzx ecx, word [ecx]
mov esi, 0x8664
cmp cx, si
je 0x422c77
mov esi, 0x200
cmp cx, si
je 0x422c77
mov esi, 0x284
cmp cx, si
jne 0x422c7b
mov byte [ebx + 5], 1
mov byte [ebx + 4], 1
movzx ecx, word [eax + 0x14]
cmp ecx, edx
ja 0x422d94
cmp byte [ebx + 5], 0
push edi
je 0x422ca7
lea esi, [eax + 0x18]
lea edi, [ebx + 0x23c]
mov ecx, 0x3c
rep movsd dword es:[edi], dword [esi]
jmp 0x422d4a
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x23c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x240], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x244], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebx + 0x248], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x24c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x250], ecx
lea esi, [eax + 0x38]
lea edi, [ebx + 0x25c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x70]
lea edi, [ebx + 0x2a4]
mov ecx, 0x22
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x34]
mov dword [ebx + 0x254], ecx
xor ecx, ecx
mov dword [ebx + 0x258], ecx
mov esi, dword [eax + 0x60]
mov dword [ebx + 0x284], esi
mov dword [ebx + 0x288], ecx
mov esi, dword [eax + 0x64]
mov dword [ebx + 0x28c], esi
mov dword [ebx + 0x290], ecx
mov esi, dword [eax + 0x68]
mov dword [ebx + 0x294], esi
mov dword [ebx + 0x298], ecx
mov esi, dword [eax + 0x6c]
mov dword [ebx + 0x29c], esi
mov dword [ebx + 0x2a0], ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [ebx + 0x28], ecx
movzx eax, word [eax + 6]
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
add esi, esi
pop edi
cmp esi, edx
ja 0x422d94
push esi
call fcn.0041f096
add esp, 4
mov dword [ebx + 0x238], eax
test eax, eax
je 0x422d94
mov edx, dword [ebx + 0x28]
push esi
push edx
push eax
call fcn.00428630
add esp, 0xc
mov ecx, ebx
call fcn.00422aa0
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret
Function at 0x4234d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
call edx
mov eax, dword [ebp + 8]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x423567
lea ecx, [ebp - 8]
push ecx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x423560
cmp dword [ebp - 4], ebx
jg 0x423560
mov edx, dword [ebp - 8]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
test ebx, ebx
je 0x423567
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov dword [esi + 4], eax
call edi
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4235d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b410
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x449f6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
xor esi, esi
push esi
push esi
call edx
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x4236cc
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4236c5
cmp dword [ebp - 0x18], esi
jg 0x4236c5
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp - 4], esi
call fcn.0041f096
mov esi, eax
add esp, 4
test esi, esi
je 0x4236c5
mov ecx, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x14]
push eax
push ecx
push esi
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4236a3
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x4236a3
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 4], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00424911
add esp, 4
jmp 0x4236cc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 4], 0
push ebx
lea ebx, [ecx + 4]
push esi
push edi
je 0x4237d8
mov eax, dword [ecx + 0xc]
lea edi, [ecx + 0xc]
mov esi, ebx
mov dword [ebp - 0xc], esi
mov byte [ebp - 0x10], 1
cmp eax, 0xffffffff
je 0x4237fe
test eax, eax
je 0x4237fe
cmp byte [ebp + 8], 0
mov dword [ebp - 4], edi
mov byte [ebp - 8], 1
je 0x4237c8
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x42378d
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 8]
cmp esi, ecx
jbe 0x423796
mov esi, ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx]
mov edx, dword [edi]
push 0
lea eax, [ebp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4237e3
cmp dword [ebp + 8], esi
jne 0x4237e3
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 8]
call fcn.004234a0
lea ecx, [ebp - 0x10]
call fcn.00422bd0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 8]
call fcn.004234a0
lea ecx, [ebp - 0x10]
call fcn.00422bd0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi], 0
je 0x423814
mov ecx, dword [esi]
push ecx
call fcn.00424911
add esp, 4
mov dword [esi], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4239c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449f6c]
jne 0x4239cb
repz ret
jmp fcn.004298e5
Function at 0x4358e9
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.0042a140
and dword [ebp - 4], 0
cmp dword [0x44e414], 0
mov ebx, eax
jne 0x43599a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435a4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x435a4b
push eax
call fcn.0042a0ce
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44e414], eax
call esi
push eax
call fcn.0042a0ce
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44e418], eax
call esi
push eax
call fcn.0042a0ce
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e41c], eax
call esi
push eax
call fcn.0042a0ce
pop ecx
mov dword [0x44e424], eax
test eax, eax
je 0x43599a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a0ce
pop ecx
mov dword [0x44e420], eax
mov eax, dword [0x44e420]
cmp eax, ebx
je 0x4359f2
cmp dword [0x44e424], ebx
je 0x4359f2
push eax
call fcn.0042a149
push dword [0x44e424]
mov esi, eax
call fcn.0042a149
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4359f2
test edi, edi
je 0x4359f2
call esi
test eax, eax
je 0x4359e9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4359e9
test byte [ebp - 0xc], 1
jne 0x4359f2
or dword [ebp + 0x10], 0x200000
jmp 0x435a2b
mov eax, dword [0x44e418]
cmp eax, ebx
je 0x435a2b
push eax
call fcn.0042a149
pop ecx
test eax, eax
je 0x435a2b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435a2b
mov eax, dword [0x44e41c]
cmp eax, ebx
je 0x435a2b
push eax
call fcn.0042a149
pop ecx
test eax, eax
je 0x435a2b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e414]
call fcn.0042a149
pop ecx
test eax, eax
je 0x435a4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435a4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403250
push 0x402140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404184], 0xffffffff
mov dword [0x404188], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404180]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40417c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40418c], ecx
call fcn.00402130
mov eax, dword [0x404130]
test eax, eax
jne 0x401fd1
push 0x402120
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402100
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404178]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404174]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4020df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402045
cmp al, 0x22
jne 0x402037
cmp byte [esi], 0x22
jne 0x40204e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40205e
cmp al, 0x20
ja 0x40205e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40204e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40207f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402084
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4020c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40204e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4020df

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, reloc.kernel32.dll_CancelIo
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x10001d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001d78
cmp byte [esi + ebx - 1], 0xa
je 0x10001d4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10008084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x1002934b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov dword [ebp - 0xc], 0x40
mov dword [ebp - 8], 0x30c7
mov eax, dword [0x1005bd74]
add eax, 9
sub eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 0x1015e834
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [0x1015e838]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x1005bdbc]
add eax, dword [0x1005bd98]
cmp eax, 0x323
jne 0x100293d5
mov eax, dword [0x1005bdec]
sub eax, 0x8b77
add byte [ebx], ch
add eax, 0x1005bdec
mov eax, dword [ebp - 0x10]
sub eax, 0x27
sub eax, dword [0x1005bdec]
mov ecx, dword [0x1005bd8c]
sub ecx, eax
mov dword [0x1005bd8c], ecx
mov eax, dword [0x1005bdec]
mov ecx, dword [0x1005bdec]
lea eax, [ecx + eax + 0x17]
add eax, dword [0x1005bd74]
mov dword [0x1005bd74], eax
Function at 0x100518fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10051908
repz ret
jmp fcn.10051e69

Function at 0x10056e36
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.10054489
and dword [ebp - 4], 0
cmp dword [0x10060400], 0
mov ebx, eax
jne 0x10056ee7
push 0x1000198c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10056f98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10001980
push edi
call esi
test eax, eax
je 0x10056f98
push eax
call fcn.10054417
mov dword [esp], 0x10001970
push edi
mov dword [0x10060400], eax
call esi
push eax
call fcn.10054417
mov dword [esp], 0x1000195c
push edi
mov dword [0x10060404], eax
call esi
push eax
call fcn.10054417
mov dword [esp], 0x10001940
push edi
mov dword [0x10060408], eax
call esi
push eax
call fcn.10054417
pop ecx
mov dword [0x10060410], eax
test eax, eax
je 0x10056ee7
push 0x10001928
push edi
call esi
push eax
call fcn.10054417
pop ecx
mov dword [0x1006040c], eax
mov eax, dword [0x1006040c]
cmp eax, ebx
je 0x10056f3f
cmp dword [0x10060410], ebx
je 0x10056f3f
push eax
call fcn.10054492
push dword [0x10060410]
mov esi, eax
call fcn.10054492
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10056f3f
test edi, edi
je 0x10056f3f
call esi
test eax, eax
je 0x10056f36
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10056f36
test byte [ebp - 0xc], 1
jne 0x10056f3f
or dword [ebp + 0x10], 0x200000
jmp 0x10056f78
mov eax, dword [0x10060404]
cmp eax, ebx
je 0x10056f78
push eax
call fcn.10054492
pop ecx
test eax, eax
je 0x10056f78
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10056f78
mov eax, dword [0x10060408]
cmp eax, ebx
je 0x10056f78
push eax
call fcn.10054492
pop ecx
test eax, eax
je 0x10056f78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10060400]
call fcn.10054492
pop ecx
test eax, eax
je 0x10056f98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10056f9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret