joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59e0f0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x59e170
cmp dword [ebp - 0xc], 1
je 0x59e118
cmp dword [ebp - 0xc], 2
je 0x59e170
jmp 0x59e174
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c], 0
jne 0x59e125
xor eax, eax
jmp 0x59e179
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x59e150
mov eax, 0x80004005
jmp 0x59e179
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
add edx, dword [eax + 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], edx
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], 0
xor eax, eax
jmp 0x59e179
xor eax, eax
jmp 0x59e179
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
Function at 0x5d1f90
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x5d1fd2
mov ecx, dword [ebp + 8]
push ecx
call fcn.005fa120
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
je 0x5d1fc8
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcf
mov eax, 1
jmp 0x5d20dd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0xcb
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xcb
jne 0x5d20a3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1b8]
cmp dword [ecx + 0x10], 0
je 0x5d208f
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x5d200a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call dword [edx]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1b8]
call dword [edx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5d2029
xor eax, eax
jmp 0x5d20dd
cmp dword [ebp - 4], 2
jne 0x5d2031
jmp 0x5d208f
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x5d208a
cmp dword [ebp - 4], 3
je 0x5d2046
cmp dword [ebp - 4], 1
jne 0x5d208a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 8]
jl 0x5d208a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x144]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov dword [edx + 8], ecx
jmp 0x5d1ff5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
mov dword [eax + 0x9c], edx
jmp 0x5d20d4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x5d20d4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x14], 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
mov ecx, dword [ebp + 8]
push ecx
call fcn.005d20f0
mov esp, ebp
pop ebp
ret 4

Function at 0x5d20f0
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x5d2127
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
call dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x8c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
cmp dword [ecx + 8], 0
je 0x5d214f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x30
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
jmp 0x5d2127
mov ecx, dword [ebp + 8]
xor edx, edx
cmp dword [ecx + 0x44], 0
setne dl
add edx, 0xcd
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, 1
pop ebp
ret 4
Function at 0x5fe69b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x5fe6c9
test ecx, ecx
jne 0x5fe6d3
test esi, esi
jne 0x5fe6d3
mov eax, edx
jmp 0x5fe744
cmp eax, 0xffffffff
jne 0x5fe6d3
push 0xfffffffffffffffe
pop eax
jmp 0x5fe744
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x5fe744
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x5fe709
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x5fe728
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x5fe7f1
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x5fe769
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5fe773
xor ecx, ecx
jmp 0x5fe7b2
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x5fe795
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.006127ce
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x5fe7dd
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x5fe7f1
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5fe6ab
pop edi
pop esi
leave
ret
Function at 0x5ff1a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5ff1b7
xor eax, eax
jmp 0x5ff298
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x5ff278
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
inc edx
dec edi
jne 0x5ff1d5
pop edi
test eax, eax
je 0x5ff292
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x67cba8]
inc edx
dec eax
jne 0x5ff27c
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc

Function at 0x602d00
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6ee2dc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0
mov byte [ebp - 1], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push str._TEMP_
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
mov byte [ebp - 0xd], 0
push 0x67f7e0
lea ecx, [ebp - 0x110]
push ecx
call fcn.00635248
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x602d65
mov byte [ebp - 1], 1
jmp 0x602db6
push 0
push 0x4000100
push 1
push 0
push 0
push 0x10000000
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0xc], 0xffffffff
jne 0x602d99
mov byte [ebp - 1], 1
jmp 0x602db6
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x602e20
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], 0x602eb0
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], 0x602f40
movzx eax, byte [ebp - 1]
test eax, eax
je 0x602ded
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x14], 0x3f
push 0x50
push 0x6495e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0x18
push ecx
call fcn.00630a00
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx]
cmp dword [ebp - 0x114], 0
je 0x602e05
mov edx, dword [ebp - 0x114]
push edx
call fcn.0063263b
add esp, 4
mov ecx, dword [ebp - 8]
call fcn.0062fcdf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6100c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
shl ecx, 3
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xf4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0060fd60
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
jmp 0x61010d
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0xc]
jge 0x6101c1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4 + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], 0
jmp 0x61015a
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x6101b3
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
add edx, ecx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
add edx, ecx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 1]
add edx, dword [ebp - 8]
add ecx, edx
sar ecx, 2
mov edx, dword [ebp - 0x18]
mov byte [edx], cl
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
xor ecx, 3
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x610151
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x610104
mov esp, ebp
pop ebp
ret 0x10
Function at 0x62f010
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x62f0b0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x62f062
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x6ede3c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x62f043
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x62f08b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x6ede3c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x62f06e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret

Function at 0x62fef9
Capabilities:
Terminate process

Disassembly:
push 8
push 0x688e20
call fcn.00636948
push 8
call fcn.00636ae7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0xa3fe24], esi
jne 0x62ff2d
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0xa3fe20], esi
mov al, byte [ebp + 0x10]
mov byte [0xa3fe1c], al
cmp dword [ebp + 0xc], edi
jne 0x62ff77
cmp dword [0xa417c0], edi
je 0x62ff67
mov eax, dword [0xa417bc]
sub eax, 4
mov dword [0xa417bc], eax
cmp eax, dword [0xa417c0]
jb 0x62ff67
mov eax, dword [eax]
cmp eax, edi
je 0x62ff48
call eax
jmp 0x62ff48
push 0x695094
mov eax, 0x695088
call fcn.0062fe77
pop ecx
push 0x6950a0
mov eax, 0x695098
call fcn.0062fe77
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x62ffa8
cmp dword [ebp + 0x10], edi
jne 0x62ffb6
mov dword [0xa3fe24], esi
push dword [ebp + 8]
call fcn.0062fe35
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x62ffb5
push 8
call fcn.00636a32
pop ecx
ret
call fcn.00636983
ret
Function at 0x632dec
Capabilities:
Get common file path

Disassembly:
push pe_nt_image_headers32
push 0x689040
call fcn.00636948
mov eax, dword [0x6ee2dc]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x632e90
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.006312b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x632e7d
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x632e90
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x632eab
cmp byte [edi + 1], 0x3a
jne 0x632eab
movzx eax, byte [edi]
push eax
call fcn.00632864
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x632ebb
push edi
call fcn.0063263b
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0062fcdf
call fcn.00636983
ret

Function at 0x632ed1
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x689050
call fcn.00636948
mov eax, dword [0x6ee2dc]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x632fde
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 0x632f8f
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.006312b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x632f7c
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x632fde
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x632fde
mov al, byte [edi]
cmp al, 0x5c
je 0x632f9d
cmp al, 0x2f
jne 0x632fa2
cmp al, byte [edi + 1]
je 0x632fd8
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0063e56b
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 0x632fde
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0063098b
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x632ffa
push edi
call fcn.0063263b
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0062fcdf
call fcn.00636983
ret

Function at 0x633014
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x633042
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 0x633047
cmp eax, 1
je 0x633047
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x63304b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6ee2dc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x6330c3
push ebx
call fcn.00633014
test eax, eax
pop ecx
jne 0x633092
call fcn.00630982
mov dword [eax], 0xf
call fcn.00630979
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0062fcdf
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
jmp 0x6330d5
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x633085
inc eax
cmp eax, 0x104
ja 0x633085
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x63310d
cmp eax, dword [ebp + 0x10]
jg 0x6330f0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0063292d
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x633122
call fcn.00630979
mov dword [eax], 0xc
jmp 0x633085
cmp eax, dword [ebp + 0x10]
jle 0x633122
call fcn.00630979
mov dword [eax], 0x22
jmp 0x633085
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0063abe0
pop ecx
pop ecx
jmp 0x633087
Function at 0x6335b4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x6890c0
call fcn.00636948
mov edi, 0x94
mov eax, edi
call fcn.006312b0
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 [0xa3fde4], ecx
mov eax, dword [esi + 4]
mov dword [0xa3fdf0], eax
mov edx, dword [esi + 8]
mov dword [0xa3fdf4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xa3fde8], esi
cmp ecx, 2
je 0x633614
or esi, 0x8000
mov dword [0xa3fde8], esi
shl eax, 8
add eax, edx
mov dword [0xa3fdec], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x63364f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x63364f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x633667
cmp eax, 0x20b
je 0x633654
mov dword [ebp - 0x1c], esi
jmp 0x63367b
cmp dword [ecx + 0x84], 0xe
jbe 0x63364f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x633675
cmp dword [ecx + 0x74], 0xe
jbe 0x63364f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0063d117
pop ecx
test eax, eax
jne 0x63368f
push 0x1c
call fcn.00633590
pop ecx
call fcn.0063763b
test eax, eax
jne 0x6336a0
push 0x10
call fcn.00633590
pop ecx
call fcn.00636b18
mov dword [ebp - 4], esi
call fcn.0063a846
test eax, eax
jge 0x6336b9
push 0x1b
call fcn.0063356b
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0xa417b4], eax
call fcn.0063ed09
mov dword [0xa3fe2c], eax
call fcn.0063ec67
test eax, eax
jge 0x6336df
push 8
call fcn.0063356b
pop ecx
call fcn.0063ea34
test eax, eax
jge 0x6336f0
push 9
call fcn.0063356b
pop ecx
push 1
call fcn.0062fe8f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x633706
push eax
call fcn.0063356b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.0063e9d7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x633727
movzx eax, word [ebp - 0x40]
jmp 0x63372a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040a080
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x633748
push edi
call fcn.0062ffbc
call fcn.0062ffde
jmp 0x63377a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00636983
ret
Function at 0x639ffc
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 0x63a1d0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0xa40680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x63a1d0
test cl, 0x48
je 0x63a067
cmp byte [eax + 5], 0xa
je 0x63a067
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 0x63a0b9
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x63a0a1
call fcn.00630979
mov dword [eax], 9
call fcn.00630982
mov dword [eax], esi
jmp 0x63a0b1
cmp eax, 0x6d
je 0x63a1d0
push eax
call fcn.0063098b
pop ecx
or eax, 0xffffffff
jmp 0x63a1d2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x63a1cb
test eax, eax
je 0x63a0e0
cmp byte [ebx], 0xa
jne 0x63a0e0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x63a0e9
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 0x63a1c5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x63a1b5
cmp al, 0xd
je 0x63a11b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x63a1a7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x63a135
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x63a130
add dword [ebp + 0x10], 2
jmp 0x63a189
mov dword [ebp + 0x10], eax
jmp 0x63a1a3
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 0x63a15d
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x63a1a3
cmp dword [ebp - 0xc], 0
je 0x63a1a3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x63a17e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x63a189
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x63a1a6
cmp ebx, dword [ebp + 0xc]
jne 0x63a18e
cmp byte [ebp - 1], 0xa
jne 0x63a18e
mov byte [ebx], 0xa
jmp 0x63a1a6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0063aa44
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x63a1a7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x63a0ff
jmp 0x63a1c5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x63a1c5
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 0x63a1d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret