joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401060
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x844904], 0x594
mov dword [ebp - 8], eax
jne 0x40108c
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x4260c8]
mov edx, dword [0x4260cc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.00401050
mov eax, dword [0x4260d0]
mov ecx, dword [0x4260d4]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x4010d0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x844904]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401156
push edi
lea edx, [ebp - 0x470]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x6c]
push edi
push ecx
mov dword [ebp - 0x70], edi
call fcn.00403250
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.sulabuwaxase
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x844904]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401170
mov dword [0x844900], 0xedeb2e40
jmp 0x401190
cmp ecx, 0x3eb
jne 0x401190
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x8442b4], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x8448fc], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.00401040
sub ebx, 1
jne 0x4010d0
cmp dword [0x844904], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x401233
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x844904]
sub esp, 0x48
shr eax, 3
push esi
mov esi, dword [0x8442b8]
test eax, eax
jbe 0x4012ad
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x844904], 0x959
jne 0x40129c
push 0
push 0
call edi
lea eax, [ebp - 0x48]
push eax
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.00401060
add esi, 8
sub dword [ebp - 4], 1
jne 0x401270
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Get system information on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x844904], 0x400
push esi
push edi
jne 0x4016b5
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.giyefurefotonigukefezofokalapo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
lea eax, [ebp - 0x24]
call fcn.00401780
lea esi, [ebp - 0x24]
call fcn.004017a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af2a3
jle 0x4016d3
cmp ebx, 0x78abdb45
jne 0x4016dc
inc esi
cmp esi, 0x1c5d
jl 0x4016c1
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40170d
inc esi
cmp esi, 0x4f6a4
jl 0x4016f0
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40172c
cmp ebx, 0x785074d5
jne 0x401735
inc esi
cmp esi, 0x11915
jl 0x401718
mov ecx, dword [0x42630c]
mov dword [0x844904], ecx
call fcn.004013b0
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0x844904], 0x51f
jne 0x401764
lea edx, [ebp - 0x2c]
push edx
call esi
sub edi, 1
jne 0x401752
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4036c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425248]
jne 0x4036ca
repz ret
jmp fcn.00407a11
Function at 0x402f70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
neg edx
sub eax, 0xcc
not esi
rol eax, 0x95
or edx, 0xb3
rol ebx, 1
or eax, 0xb5
inc ebx
imul edx
sbb edi, 0x98
bswap edi
rcr eax, 0xe7
mov esi, 0xc6
sbb ebx, 0x1d
inc edi
neg edi
rol edx, 0x57
sub esi, 0xd4
add edi, 0xef
neg edx
inc edx
dec ebx
sub ebx, 0xe0
dec eax
dec ebx
ror eax, 0xf1
neg eax
inc edi
rcr ebx, 3
bswap esi
bswap esi
rcl ebx, 0xe
neg ebx
imul eax
rol edx, 0x7a
rcr eax, 0x2b
rcl edx, 0x72
add edi, 0x71
bswap eax
neg ebx
mov ebx, 0x91
rcl ebx, 0xfb
dec edi
bswap esi
sub edx, 0x97
bswap ebx
rcr edi, 0x6d
rol ebx, 0x97
rcl edi, 0x1b
bswap eax
xor ecx, ecx
xor edi, edi
mov esi, 0x1a
inc ebx
and esi, 0x7d
sbb eax, 0xb6
rcr edx, 0xa8
sub ebx, 0xb9
and esi, 0x1a
dec eax
imul edi
mov esi, 0xdb
rcl edx, 0x30
neg eax
sbb esi, 0x19
and edi, 0xd8
neg eax
dec edx
sub edi, 0xb0
sbb edx, 5
neg eax
imul ebx
dec esi
inc edi
rol ebx, 0x7e
bswap esi
not edi
sbb eax, 0xd5
add esi, 0x6b
rcl eax, 0x2c
rcr eax, 0x4f
not edx
mov ebx, 0xc4
bswap ebx
imul eax
inc edx
bswap ebx
rcl edx, 0x65
and edx, 0xfd
neg ebx
and edi, 0xd2
rcl ebx, 0xb
bswap esi
and eax, 0
and eax, 0x4b
imul ebx
rcr edx, 0xc3
inc edx
neg esi
imul eax
ror edi, 0x3c
not ebx
mov ecx, dword [ebp + 0xc]
rcr ebx, 0xfb
bswap esi
rcl edx, 7
neg eax
mov esi, 0xf3
neg eax
rol esi, 0x1a
and eax, 0xb1
dec edi
rol edi, 0x47
bswap eax
add edi, 0xde
add ebx, 0x89
not esi
mov ebx, 0x90
sub ebx, 0xcf
inc ebx
neg edi
neg esi
imul ebx
sub edx, 0x23
neg edx
imul ebx
imul edx
rcl edi, 0x8a
bswap edi
inc edx
ror edi, 0xca
add esi, 0x77
or eax, 0x3e
bswap ebx
not edx
bswap edi
rcl edx, 0x26
sub esi, 0x1f
bswap eax
sub ebx, 0xe5
imul esi
dec esi
rcr esi, 0x1c
rcr esi, 0x37
rol edx, 9
ror edi, 0x29
dec ebx
sbb eax, 0xb6
or ebx, 0xda
imul edi
or esi, 0x59
imul edx
not eax
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, esi
xor ebx, ebx
xor ebx, esi
xor eax, esi
mov esi, esi
xor ebx, esi
xor ebx, esi
mov esi, ebx
xor eax, eax
xor esi, esi
mov ebx, eax
not byte [edi]
mov eax, esi
xor esi, esi
mov ebx, esi
mov ebx, eax
xor esi, eax
mov esi, ebx
xor ebx, esi
mov eax, ebx
mov ebx, esi
sub byte [edi], 0x36
mov eax, eax
mov ebx, eax
mov ebx, ebx
mov esi, esi
xor esi, ebx
mov eax, eax
xor ebx, esi
mov eax, esi
mov ebx, esi
add byte [edi], 0x87
xor eax, eax
xor esi, eax
xor esi, esi
xor esi, esi
mov eax, ebx
mov eax, ebx
xor eax, ebx
xor esi, esi
mov esi, esi
imul byte [edi]
inc edi
loop 0x40313a
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ed77
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40edb6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40edb6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40edb6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40edb6
cmp dword [ecx + 0x74], 0xe
jbe 0x40edb6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41041b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x41043c
jl 0x410433
test edi, edi
jne 0x41043c
xor eax, eax
xor edx, edx
jmp 0x4104fd
cmp dword [ebx + 0x38], 0
je 0x410451
push eax
push edi
push dword [ebp + 8]
call fcn.00410503
jmp 0x4104fd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x410498
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x410498
cmp eax, edi
jb 0x410472
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00411470
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x41049e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4104f2
mov ecx, ebx
call fcn.0040fc2f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4104dd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041a4ff
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4104f2
jmp 0x4104b0
test edx, edx
je 0x4104f2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041a4ff
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41d90f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432bd0
push 0x432bc8
push str.FlsAlloc
push 0x1e
call fcn.0041d77c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d943
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e160]
call esi
jmp 0x41d949
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d98d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432be0
push 0x432bd8
push str.FlsGetValue
push 0x20
call fcn.0041d77c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d9c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420ae9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x420b86
push ebx
push esi
call fcn.00420ab2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004209fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420b33
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420b85
push edi
push eax
call fcn.0041e7ac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420b53
call fcn.0041dc65
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420b84
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004209fb
add esp, 0x20
test eax, eax
jne 0x420b72
push edi
call fcn.0041dc65
jmp 0x420b7a
push ebx
call fcn.0041dc65
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x425080
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424ef1

Function at 0x42547a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042cb60
mov eax, dword [0x4882d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041f5e1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4254bc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425618
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c990
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x489a38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00426471
mov ecx, dword [esi*4 + 0x489a38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x425611
cmp eax, dword [edi + ecx + 0x24]
jne 0x425611
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425611
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426471
add esp, 0x14
test edx, edx
jl 0x425611
jg 0x425587
test eax, eax
jb 0x425611
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425611
jl 0x4255a1
cmp dword [ebp - 0x1008], eax
ja 0x425611
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4255bf
test ebx, ebx
je 0x4255f8
cmp ecx, edi
jae 0x4255f8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4255d9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4255e5
cmp byte [ecx + 1], 0xa
jne 0x4255e5
inc ecx
jmp 0x4255e5
movzx eax, al
movsx eax, byte [eax + 0x488a78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4255bf
cmp edx, ebx
jne 0x4255bf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425616
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f1b6
leave
ret
Function at 0x42590f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x489a38]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42594f
cmp byte [ebx], 0xa
jne 0x42594f
or byte [eax + edi + 0x28], 4
jmp 0x425954
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425a52
mov al, byte [edx]
cmp al, 0x1a
je 0x425a34
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425983
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4259a8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4259b2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x425965
jmp 0x425a52
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425a2f
cmp dword [ebp - 0xc], 0
je 0x425a2f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x489a38]
test byte [eax + edi + 0x28], 0x48
je 0x425a09
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4259f4
mov byte [esi], dl
jmp 0x425a05
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489a38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425a52
cmp byte [ebp - 1], 0xa
jne 0x425a18
cmp esi, ebx
jne 0x425a18
mov byte [esi], 0xa
jmp 0x425a51
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042648f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425a52
mov byte [esi], 0xd
jmp 0x425a51
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x489a38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425a4e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425a52
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425a5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x489a38]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425a9e
cmp word [esi], dx
jne 0x425a9e
or byte [edi + eax + 0x28], 4
jmp 0x425aa3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425bf6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425bd6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425ae5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425b1b
cmp eax, edx
jae 0x425b27
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425abd
jmp 0x425bf6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425bd2
cmp dword [ebp - 0x14], 0
je 0x425bd2
mov eax, dword [ebx*4 + 0x489a38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425baa
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425b73
mov word [esi], cx
jmp 0x425ba6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x489a38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x489a38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x489a38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425bf6
pop ebx
cmp word [ebp - 4], bx
jne 0x425bbb
cmp esi, dword [ebp + 0xc]
jne 0x425bbb
mov word [esi], bx
jmp 0x425bf3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042648f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425bf6
push 0xd
jmp 0x425bef
mov ecx, dword [ebx*4 + 0x489a38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425bed
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425bf6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c8b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c8dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c8dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d9d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edi, dword [0x404050]
cdq
or di, 1
idiv edi
mov edx, dword [0x404050]
mov ebx, esi
add edx, eax
mov eax, 0x404054
call fcn.00401cc0
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x403135
push eax
sub edi, fcn.004028df
push edi
push fcn.004028df
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401e13
mov eax, fcn.004028df
mov ebx, esi
mov edx, edi
call fcn.00401cc0
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00402423
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret