joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8fa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4289bc], eax
je 0x41a916
mov eax, 0x10dd
jmp 0x41a9f2
mov eax, dword [0x4289c0]
test eax, eax
jne 0x41a9f2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41a933
push 6
pop eax
jmp 0x41a9f1
cmp dword [edi], 0
push ebx
push esi
jne 0x41a947
push 6
pop eax
mov dword [0x4289c0], eax
jmp 0x41a9e9
push 0x18
call fcn.00418d33
mov esi, eax
test esi, esi
pop ecx
jne 0x41a95a
push 8
pop edi
jmp 0x41a9d3
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041a2e6
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41a9c8
cmp ecx, 0x17
ja 0x41a9c8
cmp dword [edi + 0x1c], eax
jne 0x41a9c8
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41a99e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a9d3
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4289cc]
mov dword [esi], eax
mov dword [0x4289cc], esi
xor eax, eax
jmp 0x41a9ef
cmp dword [0x4289b8], edx
push 9
pop edi
jne 0x41a9d9
mov dword [0x4289c0], edi
test esi, esi
je 0x41a9e4
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4289c4], edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xd0c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d0c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0c06a
add dl, dl
jne 0xd0c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0c0dc
xor eax, eax
add dl, dl
jne 0xd0c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0c17d
add dl, dl
jne 0xd0c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd0c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd0c075
mov eax, 1
add dl, dl
jne 0xd0c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd0c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd0c0e1
sub eax, ebx
mov ebx, 1
jne 0xd0c128
mov ecx, 1
add dl, dl
jne 0xd0c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd0c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd0c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd0c136
cmp eax, 0x7d00
jae 0xd0c16d
cmp eax, 0x500
jb 0xd0c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd0c075
cmp eax, 0x7f
ja 0xd0c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd0c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd0c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x455d09
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00455eb9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x455e07
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x455daa
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x455ded
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x455dc1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x455ddc
test al, 0x40
je 0x455dd3
mov ecx, dword [edi + 0x20]
jmp 0x455dda
test al, 0x80
je 0x455ded
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x455ded
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x455d79
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x409e20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x409e3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409e30
mov eax, 1
add ebx, ebx
jne 0x409e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409e48
jne 0x409e64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409e48
xor ecx, ecx
sub eax, 3
jb 0x409e78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409eea
mov ebp, eax
add ebx, ebx
jne 0x409e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409e90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409eb4
inc ecx
add ebx, ebx
jne 0x409ea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409e95
jne 0x409eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409e95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409ed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409ec5
jmp 0x409e36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409ed4
add edi, ecx
jmp 0x409e36
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409ef2
cmp byte [edi], 1
jne 0x409ef2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x409ef7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409f66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409f24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x909c]
or eax, eax
je 0x409f60
mov dword [ebx], eax
add ebx, 4
jmp 0x409f41
call dword [esi + 0x9098]
mov ebp, dword [esi + 0x90a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x409f9a
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov eax, dword [esp]
add esp, 4
add edi, 0x83d0a44b
or edi, esi
call fcn.00408971
add esi, esi
push edi
mov esi, dword [esp]
add esp, 4
xor dword [ebx], eax
mov esi, 0x5df65f2b
inc ebx
mov edi, edi
cmp ebx, ecx
jne fcn.0040893f
or esi, esi
ret
Function at 0x401980
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x401ed0
call fcn.00401cd8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x402364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4017a8
cmp eax, esi
jne 0x40179b
xor esi, esi
inc esi
mov edi, esi
jmp 0x4017ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40177f
xor esi, esi
inc esi
cmp dword [0x402368], esi
jne 0x4017bd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4017f7
cmp dword [0x402368], ebx
jne 0x4017f1
mov dword [0x402368], esi
push 0x401018
push 0x40100c
call fcn.00492000
pop ecx
pop ecx
test eax, eax
je 0x4017f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4018cc
mov dword [0x402014], esi
cmp dword [0x402368], esi
jne 0x40181a
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x402368], 2
test edi, edi
jne 0x401827
xor eax, eax
mov ecx, 0x402364
xchg dword [ecx], eax
cmp dword [0x40236c], 0
je 0x401853
push 0x40236c
call fcn.00401b30
pop ecx
test eax, eax
je 0x401853
push ebx
push 2
push ebx
mov esi, dword [0x40236c]
mov ecx, esi
call dword [0x40308c]
call esi
push dword [0x402020]
push dword [0x40201c]
push dword [0x402018]
call fcn.00401599
add esp, 0xc
mov dword [0x402010], eax
cmp dword [0x402028], 0
jne 0x4018b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x402014], 0
jne 0x4018c5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00401c25
jmp 0x401763

Function at 0x401a14
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401ef0
call fcn.00401cd8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401a74
cmp eax, 0xffffffff
je 0x401a74
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401a6d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401a6d
cmp edx, 0x10000000
jae 0x401a6d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401a6a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401b1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401b16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401b20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401b06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40b6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
push edx
mov ebp, dword [esp + 0x18]
lea esi, [ebp + 2]
movzx eax, byte [ebp]
mov byte [esp + 3], al
movzx edx, byte [ebp + 1]
mov byte [esp + 2], dl
cmp edi, dword [esp + 0x20]
jge 0x40b728
inc byte [esp + 3]
movzx ecx, byte [esp + 3]
movzx edx, byte [esi + ecx]
add byte [esp + 2], dl
movzx ebx, byte [esp + 2]
movzx eax, byte [esi + ebx]
mov byte [esi + ecx], al
mov byte [esi + ebx], dl
add dl, byte [esi + ecx]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [esi + eax]
xor byte [edx + edi], al
inc edi
jmp 0x40b6ee
movzx eax, byte [esp + 3]
mov byte [ebp], al
movzx edx, byte [esp + 2]
mov byte [ebp + 1], dl
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40f33e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x444610], 0
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
je 0x40f40e
mov edx, dword [0x444b20]
mov eax, 0x40
sub eax, edx
cmp esi, eax
jl 0x40f3f3
mov eax, 0x40
xor ebx, ebx
sub eax, edx
push eax
add edx, 0x444ae0
push edi
push edx
call sub.msvcrt.dll_memcpy
push 0x444ae0
mov edx, dword [0x444b20]
mov eax, edi
push 0x444acc
sub eax, edx
lea esi, [esi + edx - 0x40]
lea edi, [eax + 0x40]
call fcn.00413244
mov ecx, dword [0x444ac8]
add esp, 0x14
movzx edx, byte [ebx + 0x444ae0]
mov eax, ecx
inc ecx
xor byte [eax + 0x444618], dl
cmp ecx, 0x4b0
mov eax, 0
cmovge ecx, eax
inc ebx
cmp ebx, 0x13
jle 0x40f3ab
mov dword [0x444ac8], ecx
cmp ecx, 0x13
jg 0x40f3df
call fcn.0040f21c
mov dword [0x444b20], 0
xor edx, edx
cmp esi, 0x40
jmp 0x40f365
push esi
mov eax, dword [0x444b20]
push edi
add eax, 0x444ae0
push eax
call sub.msvcrt.dll_memcpy
add dword [0x444b20], esi
add esp, 0xc
pop ebx
pop esi
pop edi
ret

Function at 0x40f53a
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push 1
push 0x258
call fcn.00401771
mov ebx, eax
call fcn.0040f21c
push 0x258
mov eax, dword [0x444ac8]
add eax, 0x444618
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov dword [esi], 0x258
add esp, 0x14
mov dword [edi], ebx
pop ebx
pop esi
pop edi
jmp fcn.0040f21c
Function at 0x41e40f
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, edx
push esi
xor esi, esi
push ebx
mov ebx, eax
mov byte [eax], 0
mov eax, dword [0x445430]
cmp dword [0x445420], eax
jl 0x41e429
push dword [0x4453d0]
mov dword [0x445420], 0
push dword [0x43eec0]
push 1
push 0x445440
call sub.msvcrt.dll_fread
mov dword [0x445430], eax
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x41e43b
mov eax, dword [0x445420]
movsx edx, byte [eax + 0x445440]
inc eax
mov dword [0x445420], eax
movsx edx, dl
test edx, edx
je 0x41e456
cmp edx, 0xa
je 0x41e469
cmp edx, 0xd
je 0x41e3ec
xor ecx, ecx
test dl, dl
je 0x41e3ec
cmp esi, edi
jl 0x41e45a
xor eax, eax
jmp 0x41e472
mov byte [esi + ebx], dl
inc ecx
inc esi
shr edx, 8
cmp ecx, 3
jg 0x41e3ec
jmp 0x41e44e
mov byte [esi + ebx], 0
mov eax, 1
pop ebx
pop esi
pop edi
ret

Function at 0x425b92
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
push ecx
push ecx
mov esi, dword [esp + 0x14]
mov dword [esi + 4], 0
push esi
call fcn.00425db2
mov dword [esp + 4], eax
push 0x54
push esi
call fcn.00425d6c
add esp, 0xc
test eax, eax
mov ebx, eax
jne 0x425bd9
push esi
call fcn.00425db5
mov eax, dword [esi]
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x36
mov eax, dword [esi]
push esi
call dword [eax]
pop eax
pop edx
mov dword [ebx + 0x30], 0x3b9aca00
mov eax, dword [esp]
mov dword [esi + 4], ebx
mov dword [ebx], fcn.0042519b
mov dword [ebx + 4], fcn.004252b7
mov dword [ebx + 8], fcn.0042534c
mov dword [ebx + 0xc], fcn.004253dd
mov dword [ebx + 0x10], 0x42547f
mov dword [ebx + 0x14], 0x4254e7
mov dword [ebx + 0x18], 0x42554f
mov dword [ebx + 0x1c], 0x42581a
mov dword [ebx + 0x20], 0x42594c
mov dword [ebx + 0x24], fcn.00425a75
mov dword [ebx + 0x28], 0x425b5b
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
push str.JPEGMEM
call sub.msvcrt.dll_getenv
pop esi
test eax, eax
mov edx, eax
je 0x425cc1
mov byte [esp + 7], 0x78
lea eax, [esp + 7]
push eax
lea eax, [esp + 4]
push eax
push str._ld_c
push edx
call sub.msvcrt.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x425cc1
movzx eax, byte [esp + 7]
cmp al, 0x6d
sete dl
cmp al, 0x4d
sete al
or eax, edx
test al, 1
je 0x425cb7
imul eax, dword [esp], 0x3e8
mov dword [esp], eax
imul eax, dword [esp], 0x3e8
mov dword [ebx + 0x2c], eax
pop ecx
pop ebx
pop ebx
pop esi
ret
Function at 0x200044b5
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
xor ebx, ebx
push 0x5c
inc ebx
push ebp
jmp 0x200044fc
and word [esi], 0
push ebp
call fcn.2000448d
test eax, eax
pop ecx
jne 0x200044f1
test ebx, ebx
je 0x200044ef
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x200044ef
xor ebx, ebx
inc ebx
jmp 0x200044f1
xor ebx, ebx
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x200044cb
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x2000450b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret

Function at 0x2000454d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x200023b4
lea edi, [ebp - 0x218]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1fa
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
or ebx, 0xffffffff
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5f
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x200045ff
push dword [ebp + 8]
call fcn.20004235
pop ecx
push esi
push 0x80
push 3
push esi
push 3
mov word [edi], ax
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x200045ff
cmp edi, 0xffffffff
je 0x200045ff
push esi
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x200045f8
cmp dword [ebp + 0xc], esi
mov ebx, dword [ebp - 0xc]
jne 0x200045f8
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x200049ad
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], 0
jne 0x200049e9
cmp dword [ebp + 0xc], 0
mov cl, 0x14
je 0x200049de
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x200049e4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.200256a0
leave
ret
Function at 0x20004a1e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp word [ebp + 8], bx
je 0x20004b75
push edi
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
call fcn.20004235
add esp, 0x10
cmp dword [ebp + 0xc], ebx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], bx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
mov word [ebp - 2], bx
je 0x20004b3a
push dword [ebp - 8]
call fcn.20004526
test eax, eax
pop ecx
je 0x20004ab6
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov esi, eax
cmp esi, ebx
je 0x20004b74
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
lea eax, [ebp - 0x10]
push eax
push 1
call edi
mov esi, eax
cmp esi, ebx
je 0x20004b74
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x20004b0a
lea eax, [ebp - 8]
push eax
call fcn.2000448d
test eax, eax
pop ecx
jne 0x20004b28
mov dword [ebp + 8], ebx
mov word [ebp - 0x218], bx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 7
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
cmp esi, ebx
je 0x20004b36
cmp dword [ebp + 8], ebx
je 0x20004b36
xor esi, esi
inc esi
jmp 0x20004b74
xor esi, esi
jmp 0x20004b74
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov esi, eax
cmp esi, ebx
jne 0x20004b74
push dword [ebp - 8]
call fcn.20004699
test eax, eax
pop ecx
jne 0x20004b65
lea eax, [ebp - 8]
push eax
call fcn.2000448d
test eax, eax
pop ecx
jne 0x20004b74
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret