joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [ebx + 8]
push ebp
push esi
mov esi, eax
and esi, 7
je 0x41a8fa
cmp eax, esi
jge 0x41a8e8
mov eax, ebx
call fcn.0041a120
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, esi
shr edx, cl
sub eax, esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x41a92f
mov esi, 0xfffffff8
mov edx, ecx
lea ebx, [ebx]
mov cl, byte [ebx + 0xc]
mov ebp, dword [ebx + 0xc]
mov byte [esp + eax + 8], cl
shr ebp, 8
add edx, esi
inc eax
test edx, edx
mov dword [ebx + 0xc], ebp
jg 0x41a910
cmp eax, 4
mov dword [ebx + 8], edx
jge 0x41a94e
mov edx, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edx
jb 0x41a93c
xor ecx, ecx
jmp 0x41a944
mov cl, byte [esi]
inc esi
mov dword [ebx], esi
movzx ecx, cl
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x41a932
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xa]
movzx ebp, ah
movzx edx, al
movzx eax, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
shl eax, 8
mov edx, ebp
add eax, ecx
xor edx, 0xffff
cmp eax, edx
je 0x41a988
pop esi
mov dword [0x434c50], 0x42c860
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, ebp
cmp eax, ecx
jbe 0x41a9a3
pop esi
mov dword [0x434c50], 0x42c84c
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x18]
add ecx, ebp
cmp ecx, eax
push edi
jbe 0x41a9c2
mov ecx, ebp
mov edi, ebx
call fcn.0041a160
test eax, eax
jne 0x41a9c2
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add ecx, ebp
add eax, ebp
pop edi
pop esi
mov dword [ebx + 0x10], eax
mov dword [ebx], ecx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x41f5a0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x4216f1
push 0x128
push 0x42cbe0
call fcn.00427f90
mov eax, dword [0x43355c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x421801
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x4217b2
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00421540
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x42179f
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x421801
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x421801
mov al, byte [edi]
cmp al, 0x5c
je 0x4217c0
cmp al, 0x2f
jne 0x4217c5
cmp al, byte [edi + 1]
je 0x4217fb
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00427e32
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x421801
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427dd3
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x42181d
push edi
call fcn.0041fdac
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00427949
call fcn.00427fcb
ret

Function at 0x41f5c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x41f5dc
mov edi, 0x10
test bl, 2
je 0x41f5e4
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f60e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x41f63b
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x41f679
mov al, byte [esp + 0x40]
test al, al
je 0x41f679
cmp al, 0x2e
jne 0x41f65f
mov al, byte [esp + 0x41]
test al, al
je 0x41f679
cmp al, 0x2e
jne 0x41f65f
mov al, byte [esp + 0x42]
test al, al
je 0x41f679
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.00409a40
push 0x42c418
push esi
call fcn.00409a40
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f620
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x4213e7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x421415
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x42141a
cmp eax, 1
je 0x42141a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42141e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43355c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x4214ae
push ebx
call fcn.004213e7
test eax, eax
pop ecx
jne 0x421483
mov dword [0x434dc0], 0xf
mov dword [0x434dbc], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00427949
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4214bd
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42146a
inc eax
cmp eax, 0x104
ja 0x42146a
test edi, edi
mov ecx, edi
jne 0x4214f9
cmp eax, dword [ebp + 0xa0]
jg 0x4214dd
mov eax, dword [ebp + 0xa0]
push eax
call fcn.0041fd9a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x421510
mov dword [0x434dbc], 0xc
jmp 0x42146a
cmp eax, dword [ebp + 0xa0]
jle 0x421510
mov dword [0x434dbc], 0x22
jmp 0x42146a
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00427820
pop ecx
pop ecx
jmp 0x42146c
Function at 0x42185e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42cbf0
call fcn.00427f90
mov edi, 0x94
mov eax, edi
call fcn.00421540
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x434dc8], ecx
mov eax, dword [esi + 4]
mov dword [0x434dd4], eax
mov edx, dword [esi + 8]
mov dword [0x434dd8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434dcc], esi
cmp ecx, 2
je 0x4218be
or esi, 0x8000
mov dword [0x434dcc], esi
shl eax, 8
add eax, edx
mov dword [0x434dd0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4218f9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4218f9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x421911
cmp eax, 0x20b
je 0x4218fe
mov dword [ebp - 0x1c], esi
jmp 0x421925
cmp dword [ecx + 0x84], 0xe
jbe 0x4218f9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42191f
cmp dword [ecx + 0x74], 0xe
jbe 0x4218f9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00422aa7
pop ecx
test eax, eax
jne 0x421951
cmp dword [0x434db8], 1
jne 0x42193e
call fcn.0042825d
push 0x1c
call fcn.004280e5
push 0xff
call fcn.00421a3a
pop ecx
pop ecx
call fcn.0042885b
mov dword [ebp - 4], esi
call fcn.00423f96
test eax, eax
jge 0x42196a
push 0x1b
call fcn.00421839
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4363f4], eax
call fcn.00428739
mov dword [0x434db0], eax
call fcn.00428697
test eax, eax
jge 0x421990
push 8
call fcn.00421839
pop ecx
call fcn.00428464
test eax, eax
jge 0x4219a1
push 9
call fcn.00421839
pop ecx
push 1
call fcn.00421a6a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4219b7
push eax
call fcn.00421839
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00428407
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4219d8
movzx eax, word [ebp - 0x40]
jmp 0x4219db
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00419020
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4219f9
push edi
call fcn.00421b95
call fcn.00421bb7
jmp 0x421a2b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00427fcb
ret
Function at 0x421ad4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x434e08], esi
push edi
jne 0x421af4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x434e04], esi
mov byte [0x434e00], al
jne 0x421b5a
mov ecx, dword [0x4363ec]
test ecx, ecx
je 0x421b3b
mov eax, dword [0x4363e8]
sub eax, 4
cmp eax, ecx
jmp 0x421b34
mov eax, dword [eax]
test eax, eax
je 0x421b26
call eax
mov eax, dword [0x4363e8]
sub eax, 4
cmp eax, dword [0x4363ec]
mov dword [0x4363e8], eax
jae 0x421b1e
mov eax, 0x43302c
mov esi, 0x433034
cmp eax, esi
mov edi, eax
jae 0x421b5a
mov eax, dword [edi]
test eax, eax
je 0x421b53
call eax
add edi, 4
cmp edi, esi
jb 0x421b4b
mov eax, 0x433038
mov esi, 0x433040
cmp eax, esi
mov edi, eax
jae 0x421b79
mov eax, dword [edi]
test eax, eax
je 0x421b72
call eax
add edi, 4
cmp edi, esi
jb 0x421b6a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x421b93
push dword [ebp + 8]
mov dword [0x434e08], 1
call fcn.00421a3a
pop ebp
ret
Function at 0x422559
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 [0x4362a8]
push edi
jae 0x422730
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4362c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x422730
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x422604
test dl, 2
jne 0x422604
test dl, 0x48
je 0x4225ce
cmp byte [eax + 5], 0xa
je 0x4225ce
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 0x422617
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4225ff
mov dword [0x434dc0], ecx
jmp 0x422737
cmp eax, 0x6d
jne 0x42260b
xor eax, eax
jmp 0x422744
push eax
call fcn.00427dd3
pop ecx
jmp 0x422741
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x42272b
test eax, eax
je 0x42263e
cmp byte [ebx], 0xa
jne 0x42263e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x422647
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 0x422725
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x422715
cmp al, 0xd
je 0x422679
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x422707
dec ecx
cmp dword [ebp - 8], ecx
jae 0x422693
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x42268e
add dword [ebp - 8], 2
jmp 0x4226e7
mov dword [ebp - 8], eax
jmp 0x422703
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 0x4226bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422703
cmp dword [ebp - 0x10], 0
je 0x422703
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4226dc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4226e7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x422706
cmp ebx, dword [ebp + 0xc]
jne 0x4226ec
cmp byte [ebp - 1], 0xa
jne 0x4226ec
mov byte [ebx], 0xa
jmp 0x422706
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004292ad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422707
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x42265d
jmp 0x422725
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x422725
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 0x422744
and dword [0x434dc0], 0
mov dword [0x434dbc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424141
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43355c]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x4362a8]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x4242e3
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4362c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4242e3
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x4241b7
xor eax, eax
jmp 0x4242f7
test al, 0x20
je 0x4241ca
push 2
push 0
push 0
push ecx
call fcn.004292ad
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42425f
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x4242c0
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x424224
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x424215
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4241f7
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424284
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x42428d
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x4241ec
jmp 0x42428d
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424284
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x42428d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x4242de
cmp dword [ebp - 0x68], eax
je 0x4242bd
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x4242b2
mov dword [0x434dbc], 9
mov dword [0x434dc0], eax
jmp 0x4242f4
push dword [ebp - 0x68]
call fcn.00427dd3
pop ecx
jmp 0x4242f4
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4242d2
cmp byte [edi], 0x1a
je 0x4241b0
mov dword [0x434dbc], 0x1c
jmp 0x4242ed
sub eax, dword [ebp - 0x7c]
jmp 0x4242f7
mov dword [0x434dbc], 9
and dword [0x434dc0], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427949
add ebp, 0x3a4
leave
ret
Function at 0x427eaa
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.00421540
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x427f45
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 [0x434dc8]
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 0x427f45
cmp eax, 1
je 0x427f66
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 0x427f45
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x427f12
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x427f41
xor eax, eax
inc eax
jmp 0x427f85
cmp edi, eax
jae 0x427f49
xor eax, eax
jmp 0x427f85
cmp eax, esi
jae 0x427f50
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 [0x434dc8]
jmp 0x427f69
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 0x4280e5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43355c]
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 + 0x4339e0]
je 0x42811c
inc eax
cmp eax, 0x13
jb 0x42810d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4339e0]
jne 0x42823f
mov eax, dword [0x434db8]
cmp eax, 1
je 0x42821a
cmp eax, edx
jne 0x42814c
cmp dword [0x433504], 1
je 0x42821a
cmp ecx, 0xfc
je 0x42823f
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 0x428182
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00427820
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00426660
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4281b6
mov eax, edi
push eax
call fcn.00426660
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x431048
push edi
call fcn.004201f0
add esp, 0x10
push edi
call fcn.00426660
push dword [esi + 0x4339e4]
mov ebx, eax
call fcn.00426660
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421540
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00427820
push edi
push ebx
call fcn.00427830
push 0x431028
push ebx
call fcn.00427830
push dword [esi + 0x4339e4]
push ebx
call fcn.00427830
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042a9ba
add esp, 0x2c
jmp 0x42823f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4339e4]
push dword [esi]
call fcn.00426660
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.00427949
add ebp, 0x90
leave
ret
Function at 0x42a791
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 0x42a7bf
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 0x42a7c6
cmp ebx, dword [eax + 4]
jae 0x42a7c6
xor eax, eax
jmp 0x42a9b6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42a7d7
xor eax, eax
inc eax
jmp 0x42a9b5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42a7ed
cmp ecx, edx
jae 0x42a932
cmp dword [eax + 4], 0
je 0x42a7f6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42a7de
cmp dword [ebp + 8], 0
je 0x42a818
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42a932
cmp eax, esi
jae 0x42a932
mov eax, dword [0x434fe0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42a83d
cmp dword [esi*4 + 0x434fe8], edi
je 0x42a936
inc esi
cmp esi, eax
jl 0x42a82b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a9b2
cmp dword [ebp - 8], 0x1000000
jne 0x42a9b2
test byte [ebp - 0xc], 0xcc
je 0x42a8bb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42a9b2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42a9b2
cmp word [eax + 0x18], 0x10b
jne 0x42a9b2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42a9b2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42a8bb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42a8bb
test byte [ecx + 0x27], 0x80
jne 0x42a932
push 1
push 0x435028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42a7cf
mov ecx, dword [0x434fe0]
test ecx, ecx
mov edx, ecx
jle 0x42a8ef
lea eax, [ecx*4 + 0x434fe4]
cmp dword [eax], edi
je 0x42a8ef
dec edx
sub eax, 4
test edx, edx
jg 0x42a8e3
test edx, edx
jne 0x42a920
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42a8fc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42a914
lea eax, [edx*4 + 0x434fe8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42a902
cmp ecx, 0x10
jge 0x42a920
inc ecx
mov dword [0x434fe0], ecx
push 0
push 0x435028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42a7cf
xor eax, eax
jmp 0x42a9b5
test esi, esi
jle 0x42a7cf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x435028
call ebx
test eax, eax
jne 0x42a7cf
cmp dword [esi*4 + 0x434fe8], edi
je 0x42a98c
mov eax, dword [0x434fe0]
lea esi, [eax - 1]
test esi, esi
jl 0x42a97a
cmp dword [esi*4 + 0x434fe8], edi
je 0x42a976
dec esi
jns 0x42a96a
test esi, esi
jge 0x42a98a
cmp eax, 0x10
jge 0x42a985
inc eax
mov dword [0x434fe0], eax
lea esi, [eax - 1]
jmp 0x42a98c
je 0x42a9a4
xor ecx, ecx
test esi, esi
jl 0x42a9a4
lea eax, [ecx*4 + 0x434fe8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42a992
push 0
push 0x435028
call ebx
jmp 0x42a7cf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a9ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43502c], ebx
push esi
push edi
jne 0x42aa3a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42aa75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431364
push edi
call esi
test eax, eax
mov dword [0x43502c], eax
je 0x42aa75
push 0x431354
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x435030], eax
call esi
cmp dword [0x434dc8], 2
mov dword [0x435034], eax
jne 0x42aa3a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43503c], eax
je 0x42aa3a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x435038], eax
mov eax, dword [0x435038]
test eax, eax
je 0x42aa7f
call eax
test eax, eax
je 0x42aa66
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43503c]
test eax, eax
je 0x42aa66
test byte [ebp - 8], 1
jne 0x42aa7f
cmp dword [0x434dd4], 4
jb 0x42aa79
or byte [ebp + 0x12], 0x20
jmp 0x42aa9e
xor eax, eax
jmp 0x42aaae
or byte [ebp + 0x12], 4
jmp 0x42aa9e
mov eax, dword [0x435030]
test eax, eax
je 0x42aa9e
call eax
mov ebx, eax
test ebx, ebx
je 0x42aa9e
mov eax, dword [0x435034]
test eax, eax
je 0x42aa9e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43502c]
pop edi
pop esi
pop ebx
leave
ret