joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4929aa
Capabilities:
Encode data using xor

Disassembly:
popfd
lodsd eax, dword [esi]
std
inc ecx
cmc
mov bh, ch
sub edi, dword [esi]
xlatb
dec ecx
sbb ecx, dword [esi - 0x49]
adc eax, 0x86188660
cmp ebp, ebp
mov bh, 0x15
pushal
xchg byte [eax], bl
xchg byte [ecx], bh
in eax, dx
nop
je 0x4929f9
pop esp
mov bl, 0x9c
mov ch, 0x52
pop ecx
or edx, dword [ebx + 0x5b437fdb]
xor dword [esi - 0x268733bf], ecx
and dl, byte [ebp + edi*8 - 0x13]
add ah, byte [eax]
int1
lea ebp, [edx + 0x62d07a8e]
jle 0x4929d2
dec esi
or eax, 0xee03c6a7
mov byte [ebx], 0xee
test al, 0xe6
sub byte [edx - 0x5f8e2fe2], bl
popfd
bound ecx, qword [ebp + edx*4 - 0x58]
sub dword [esi], 0xd95fe3d2
inc edi
lcall 0xaf20, 0xf120ffa0
daa
cmp ebx, ecx
push edi
inc edx
out 0xce, al
push esp
dec esp
invalid
int 0x1d
push edi
mov eax, dword [0x9361370b]
mov ebp, 0x7f29d93d
or al, 0xa0
salc
daa
js 0x49296d
invalid
mov bl, ah
jecxz 0x4929f3
or al, 0x72
jb 0x49297a
jb 0x492a5b
nop
cmp eax, 0xa05b78a2
sub bh, byte [ecx]
aad 0xb8
cmp al, 0xa1
nop
sbb eax, 0x8a477b90
inc eax
dec ebx
mov eax, 0x1d90a13c
nop
jnp 0x492a42
mov al, byte [eax + 0x4b]
inc ecx
xor eax, 0xb4b3b2d6
nop
push cs
cmp dword [eax], esp
pop ds
jnp 0x4929e6
mov bh, 0x8e
lds dx, [ebp + 0x62c29814]
into
mov esp, 0xfa01198c
add dword [ecx + 0x3e], 0x5256ef8b
mov bl, 0x2d
xor eax, 0x9e1ae853
jle 0x492a37
or esp, dword [esi]
add edi, ecx
fbld tbyte [esi + 0x36f6d299]
loope 0x492a62
inc esp
inc ecx
call 0xc02de52e
ror byte [eax + edi*4 + 0x4c], cl
xor eax, 0x5414efcf
outsd dx, dword [esi]
adc ecx, ecx
xchg dword [edi + 0x7a], ebx
jo 0x492aa1
iretd
jge 0x4929ff
lodsb al, byte [esi]
sbb al, byte [0xd43a7378]
mov al, 0xae
ret
push eax
test al, 0x6a
cmp byte [edx + 0x78085ade], 0x3f
or byte [eax + 0x3f], bh
rcr dword [edx], cl
xor bh, dl
std
push eax
sub ecx, esi
pop eax
test eax, 0x6f6b0247
mov byte [0x24b162f1], al
xchg esp, eax
outsb dx, byte [esi]
mov al, 0xc8
aaa
mov dword [0xd5d973c2], eax
test al, 0x3a
or al, 0x82
sbb byte [ebx], dh
sbb byte [eax], 0x33
imul dword [ebp - 0x41]
dec edi
rcl edi, 1
iretd
and byte [ebp + eax + 0x36043ea1], dl
xlatb
inc ebx
jae 0x492a85
and eax, 0x9a3540f8
sub byte [eax + 0x1f36577a], dh
adc esi, dword [ebx + 0x53dd523]
sub byte [ebx + 0x13], bh
inc ebp
jg 0x492ab1
push ds
xor al, byte [esi + 0x47735612]
das
aad 0x1d
xchg edx, eax
lock adc ebx, dword [edi - 0x378a0da2]
sbb al, 0x2d
pop ds
invalid
Function at 0x49a712
Capabilities:
Encode data using xor

Disassembly:
cmp dh, dl
mov eax, dword [0xdd803075]
push esp
adc byte [edx + 0x27], al
fst qword [eax + edx + 0x42]
daa
bound esi, qword [edx - 0x2ec55cdd]
inc ecx
inc edi
and esp, dword [ebx + 0x4741d13a]
xor eax, 0xb3137e0b
mov cl, 0x86
loopne 0x49a6ea
jle 0x49a6e3
xchg dword [edx + ecx*4], esi
test dword [ebp - 0x7e93c388], edx
xor dword ss:[ebx + 0x49], esp
ficomp dword [esi]
scasd eax, dword es:[edi]
xchg esp, eax
xchg edx, eax
mov ah, 0x3d
adc esp, ebx
invalid
leave
adc al, 0xa3
or ah, byte [ebp - 0x32]
loopne 0x49a6dd
lahf
sub byte [ebx], 0x89
xlatb
pop ds
pop esi
sub edi, 0xa120869e
mov edi, 0x55c65d98
mov edx, dword [0x1e1d521]
cmc
mov cl, 0x86
fidiv word [edi - 0x3b12c42d]
xchg byte [ebp - 0x44], cl
or esp, dword [ebp + 0x2e2a4134]
in al, dx
scasb al, byte es:[edi]
mov esp, dword [ebp + 0x14]
push ebp
cmp dword [ebp - 0x55], ecx
sbb dword [eax - 0x13], esi
ret 0x6ffd

Function at 0x4b72f2
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4c4d00], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4c4cfc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4c4cf8], ecx
shr eax, 0x10
mov dword [0x4c4cf4], eax
push 1
call fcn.004b83e7
pop ecx
test eax, eax
jne 0x4b733b
push 0x1c
call fcn.004b73fd
pop ecx
call fcn.004b81a4
test eax, eax
jne 0x4b734c
push 0x10
call fcn.004b73fd
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004b7fe8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c53b4], eax
call fcn.004b7eb6
mov dword [0x4c4ce4], eax
call fcn.004b7c69
call fcn.004b7bb0
call fcn.004b78c0
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004b7b58
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x4b739b
movzx eax, word [ebp - 0x2c]
jmp 0x4b739e
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004b78ed
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004b79e0
pop ecx
pop ecx
ret

Function at 0x4b7954
Capabilities:
Terminate process

Disassembly:
lodsb al, byte [esi]
push ebx
dec esp
add byte [esi - 0x73], dl
jno 0x4b7958
push esi
lea esi, [ecx - 4]
cmp esi, eax
jb 0x4b7973
mov eax, dword [esi]
test eax, eax
je 0x4b7968
call eax
sub esi, 4
cmp esi, dword [0x4c53b0]
jae 0x4b7960
pop esi
push 0x4c0018
push 0x4c0014
call fcn.004b79c6
pop ecx
pop ecx
push 0x4c0020
push 0x4c001c
call fcn.004b79c6
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x4b79a2
call fcn.004b79bd
pop edi
ret
push dword [esp + 8]
mov dword [0x4c4d30], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4b847d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c0368
cmp edx, dword [eax]
je 0x4b849f
add eax, 8
inc ecx
cmp eax, 0x4c03f8
jl 0x4b8490
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c0368]
jne 0x4b85cd
mov eax, dword [0x4c4cec]
cmp eax, 1
je 0x4b85a7
test eax, eax
jne 0x4b84d0
cmp dword [0x4c0294], 1
je 0x4b85a7
cmp edx, 0xfc
je 0x4b85cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b8507
lea eax, [ebp - 0x1a4]
push 0x4bd8d8
push eax
call fcn.004b8e60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b92f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b854a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b92f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bd8d4
push edi
call fcn.004bb1c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bd8b8
push eax
call fcn.004b8e60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b8e70
lea eax, [ebp - 0xa0]
push 0x4bd8b4
push eax
call fcn.004b8e70
push dword [esi + 0x4c036c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b8e70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bd88c
push eax
call fcn.004bb134
add esp, 0x2c
pop edi
jmp 0x4b85cd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c036c]
push 0
push eax
push dword [esi]
call fcn.004b92f0
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
Function at 0x4265dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42665d
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42665c
push ebx
mov ebx, 0x47ea88
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x427558
mov byte [edi + esi], al
call fcn.0040eeee
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x4265ff
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00405157
pop edi
pop ebp
ret 0x14

Function at 0x408958
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408978
dec eax
xor dword [esi], edi
inc ebx
inc esi
sub ebx, 1
add ebx, 0x5a299d7f
cmp esi, ecx
jne fcn.00408958
ret
Function at 0x4034ac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x40353c
mov eax, dword [ebp + 8]
push dword [eax + 8]
inc dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
call fcn.004050e0
test eax, eax
pop ecx
pop ecx
je 0x403522
test ebx, ebx
je 0x403513
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00404fa7
test eax, eax
pop ecx
pop ecx
jle 0x403522
push ebx
call fcn.004042ab
pop ecx
lea eax, [ebp - 0x110]
push eax
call fcn.0040428a
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x4034da
xor edi, edi
cmp ebx, edi
jne 0x403540
xor eax, eax
jmp 0x4035b4
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push ebx
je 0x403561
call fcn.004042ab
pop ecx
jmp 0x403589
call fcn.004042ab
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403599
cmp dword [ebp - 4], edi
je 0x40353c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40353c
cmp dword [ebp - 4], edi
je 0x4035a7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
call fcn.0040428a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fd3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov esi, edi
call fcn.00403b22
test al, al
pop ecx
jne 0x404001
push 1
push str.Error:_could_not_find_Java_SE_Runtime_Environment.
call fcn.004032f4
pop ecx
pop ecx
push 2
jmp 0x404091
push edi
call fcn.00403d09
push 0
push str.i386
push edi
call fcn.004028ab
add esp, 0x10
cmp eax, 1
jge 0x40402e
push 1
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.004032f4
pop ecx
pop ecx
push 1
jmp 0x404091
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004021b8
mov ebx, dword [ebp + 0x18]
mov esi, eax
push ebx
push edi
mov dword [ebp - 4], esi
mov byte [ebx], 0
call fcn.00402fe5
add esp, 0x14
test al, al
jne 0x404096
push esi
call fcn.00406fb0
push ebx
mov esi, eax
call fcn.00406fb0
mov edi, str.Error:_no___s_JVM_at___s.
push edi
add esi, eax
call fcn.00406fb0
add esi, eax
push esi
call fcn.00404243
push ebx
push dword [ebp - 4]
mov esi, eax
push edi
push esi
call fcn.0040742d
push 1
push esi
call fcn.004032f4
add esp, 0x28
push 4
call fcn.0040760c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40444a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
push 0x10
pop edi
call fcn.004042b0
push 8
mov esi, eax
call fcn.00404243
mov ebx, eax
pop ecx
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40449a
mov dword [ebx], eax
lea eax, [ebp - 0x120]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x4044a1
and dword [ebx + 4], 0
jmp 0x4044be
xor eax, eax
jmp 0x40458d
lea eax, [ebp - 0x28c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
neg edi
sbb edi, edi
lea eax, [ebp - 0x260]
and edi, eax
test edi, edi
je 0x404573
push edi
call fcn.00406fb0
cmp eax, 4
pop ecx
jl 0x40448d
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x40448d
add eax, 0xfffffffd
push 0x414e1c
push eax
mov dword [ebp - 4], eax
call fcn.004077c0
test eax, eax
pop ecx
pop ecx
je 0x404504
push 0x414e18
push dword [ebp - 4]
call fcn.004077c0
test eax, eax
pop ecx
pop ecx
jne 0x40448d
push 0x3b
push edi
call fcn.00408030
test eax, eax
pop ecx
pop ecx
jne 0x40448d
push dword [ebp + 8]
call fcn.00406fb0
push edi
mov ebx, eax
call fcn.00406fb0
mov dword [ebp - 4], eax
add eax, ebx
push eax
call fcn.00404243
lea ecx, [ebx - 1]
push ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
call fcn.004070f0
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
mov edi, dword [ebp - 0xc]
lea eax, [edi + ebx - 1]
push eax
call fcn.004070f0
mov edx, dword [esi + 4]
add esp, 0x24
inc edx
call fcn.00404306
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 8]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x40448d
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.004042ab
push ebx
call fcn.004042ab
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407549
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4153e0
call fcn.0040ae90
push 8
call fcn.0040ace4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x419ebc], esi
jne 0x40757d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x419eb8], esi
mov al, byte [ebp + 0x10]
mov byte [0x419eb4], al
cmp dword [ebp + 0xc], edi
jne 0x4075c7
cmp dword [0x41b76c], edi
je 0x4075b7
mov eax, dword [0x41b768]
sub eax, 4
mov dword [0x41b768], eax
cmp eax, dword [0x41b76c]
jb 0x4075b7
mov eax, dword [eax]
cmp eax, edi
je 0x407598
call eax
jmp 0x407598
push 0x418028
mov eax, 0x418020
call fcn.004074c7
pop ecx
push 0x418030
mov eax, 0x41802c
call fcn.004074c7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4075f8
cmp dword [ebp + 0x10], edi
jne 0x407606
mov dword [0x419ebc], esi
push dword [ebp + 8]
call fcn.00407485
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x407605
push 8
call fcn.0040ac2f
pop ecx
ret
call fcn.0040aecb
ret

Function at 0x40852e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40854e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004081fc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408571
test byte [esp + 8], 2
je 0x408571
call fcn.004081ea
mov dword [eax], 0xd
call fcn.004081f3
mov dword [eax], 5
jmp 0x40854a
xor eax, eax
ret

Function at 0x40863a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x408657
call fcn.004081ea
mov dword [eax], 0x16
xor eax, eax
jmp 0x4086c1
push esi
push 0x8c
push 1
call fcn.004093a3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4086ac
push esi
call fcn.0040bde7
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40868a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4085a5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4086c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00408e34
test ebx, ebx
pop ecx
je 0x4086be
push ebx
call fcn.004081fc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b557
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x419bb0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40b588
xor eax, eax
jmp 0x40b711
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41a640]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40b5c4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040f3cd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b69f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40b6dd
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40b628
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40b619
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40b5f9
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b668
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40b671
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40b5ea
jmp 0x40b673
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40b70c
cmp dword [ebp - 0x6c], edi
je 0x40b6dd
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40b6d2
call fcn.004081ea
mov dword [eax], 9
call fcn.004081f3
mov dword [eax], esi
jmp 0x40b707
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b6c7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40b673
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40b673
push dword [ebp - 0x6c]
call fcn.004081fc
pop ecx
jmp 0x40b707
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b6f5
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40b6f5
xor eax, eax
jmp 0x40b70f
call fcn.004081ea
mov dword [eax], 0x1c
call fcn.004081f3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40b70f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040e943
add ebp, 0x3a0
leave
ret
Function at 0x40b8b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40ba85
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41a640]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40ba85
test cl, 0x48
je 0x40b91c
cmp byte [eax + 5], 0xa
je 0x40b91c
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40b956
call fcn.004081ea
mov dword [eax], 9
call fcn.004081f3
mov dword [eax], esi
jmp 0x40b966
cmp eax, 0x6d
je 0x40ba85
push eax
call fcn.004081fc
pop ecx
or eax, 0xffffffff
jmp 0x40ba87
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40ba80
test eax, eax
je 0x40b995
cmp byte [ebx], 0xa
jne 0x40b995
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40b99e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40ba7a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40ba6a
cmp al, 0xd
je 0x40b9d0
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40ba5c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40b9ea
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40b9e5
add dword [ebp + 0x10], 2
jmp 0x40ba3e
mov dword [ebp + 0x10], eax
jmp 0x40ba58
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x40ba12
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ba58
cmp dword [ebp - 0xc], 0
je 0x40ba58
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40ba33
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40ba3e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40ba5b
cmp ebx, dword [ebp + 0xc]
jne 0x40ba43
cmp byte [ebp - 1], 0xa
jne 0x40ba43
mov byte [ebx], 0xa
jmp 0x40ba5b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040e951
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40ba5c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40b9b4
jmp 0x40ba7a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40ba7a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40ba87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c5b8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40c5d1
or eax, 0xffffffff
jmp 0x40c632
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40c62e
push 0x3d
push esi
call fcn.0040f9cd
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40c62e
cmp esi, eax
je 0x40c62e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x419e9c]
sete cl
cmp eax, dword [0x419ea0]
mov dword [ebp - 8], ecx
jne 0x40c614
mov edi, eax
call fcn.0040c557
mov dword [0x419e9c], eax
cmp eax, ebx
jne 0x40c66d
cmp dword [ebp + 0xc], ebx
je 0x40c636
cmp dword [0x419ea4], ebx
je 0x40c636
call fcn.0040b0e5
test eax, eax
je 0x40c66d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40c63f
xor eax, eax
jmp 0x40c631
push 4
call fcn.00408c75
cmp eax, ebx
pop ecx
mov dword [0x419e9c], eax
je 0x40c62e
mov dword [eax], ebx
cmp dword [0x419ea4], ebx
jne 0x40c66d
push 4
call fcn.00408c75
cmp eax, ebx
pop ecx
mov dword [0x419ea4], eax
je 0x40c62e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x419e9c]
call fcn.0040c50a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40c6ce
cmp dword [esi], ebx
je 0x40c6ce
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00408e34
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40c6b1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40c70f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40c6a8
mov eax, edi
shl eax, 2
push eax
push dword [0x419e9c]
call fcn.00408c87
cmp eax, ebx
pop ecx
pop ecx
je 0x40c70f
jmp 0x40c70a
cmp dword [ebp - 8], ebx
jne 0x40c77a
cmp edi, ebx
jge 0x40c6dd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x419e9c]
call fcn.00408c87
cmp eax, ebx
pop ecx
pop ecx
je 0x40c62e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x419e9c], eax
cmp dword [ebp + 0xc], ebx
je 0x40c764
push dword [ebp - 4]
call fcn.00406fb0
inc eax
inc eax
push eax
call fcn.00408c75
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40c764
push dword [ebp - 4]
push esi
call fcn.004076c0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40c75d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00408e34
pop ecx
cmp dword [ebp - 8], ebx
je 0x40c772
push dword [ebp - 4]
call fcn.00408e34
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40c631
push dword [ebp - 4]
call fcn.00408e34
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40c63b