joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46add0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x490ab0], 0
jne 0x46ae51
cmp dword [0x490ad0], 0
jne 0x46ae00
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x490ad0], eax
test eax, eax
jne 0x46ae00
push str.GetEnvironmentStrings_failed
call fcn.0046a650
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x490ad0]
jmp 0x46ae14
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004643b8
pop ecx
mov edi, eax
test eax, eax
jne 0x46ae0c
lea edi, [ebp + 1]
push edi
call fcn.00463df8
pop ecx
mov ebx, eax
mov dword [0x490ab4], ebx
test ebx, ebx
jne 0x46ae3e
xor eax, eax
jmp 0x46af14
push edi
mov edx, dword [0x490ad0]
push edx
push ebx
call fcn.00464268
add esp, 0xc
jmp 0x46ae71
xor esi, esi
mov ebx, dword [0x490ab0]
jmp 0x46ae6b
push eax
call fcn.004643b8
pop ecx
test eax, eax
jne 0x46ae67
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46ae5b
lea ebx, [esi + 4]
push 4
mov dword [0x490ab8], ebx
inc ebx
push ebx
call fcn.004638d0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x46ae94
xor eax, eax
jmp 0x46af14
cmp dword [0x490ab0], 0
jne 0x46aec5
xor esi, esi
mov ebx, dword [0x490ab4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x46aeb6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004643b8
pop ecx
mov edi, eax
test eax, eax
jne 0x46aeac
jmp 0x46aef6
xor esi, esi
mov ebx, dword [0x490ab0]
mov eax, dword [esp]
mov edi, eax
jmp 0x46aef0
push eax
call fcn.004643b8
pop ecx
test eax, eax
je 0x46aee5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x46aee9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46aed4
mov eax, dword [0x490ab0]
test eax, eax
je 0x46af06
push eax
call fcn.00463e08
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x490ab0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4713c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4713ee
mov eax, ebx
call fcn.00471e64
cmp dword [ebx + 0x3c], 0
je 0x4713e7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47145f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x471451
cmp dword [ebx + 8], 0
je 0x471410
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x471422
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x471451
cmp dword [ebx + 8], 0
je 0x471403
cmp eax, 3
je 0x471435
dec eax
jne 0x471403
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x471403
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x471403
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x47147d
cmp dword [ebx + 0x10], 0xcc
je 0x47147d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00471488
pop ebx
ret
Function at 0x401ad0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov ebx, dword [ebp + 4]
push ebx
call fcn.004208cd
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x401b9b
mov eax, dword [edi + 0x14]
add eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call fcn.004242ff
push dword [edi + 0x1c]
lea eax, [esp + 0x20]
push 4
push 1
push eax
call fcn.00423edb
add ebp, 8
lea eax, [esp + 0x2c]
push ebp
push eax
push 0x458190
call fcn.00406d80
push dword [edi + 0x1c]
push ebx
push 1
push esi
call fcn.00423edb
add esp, 0x38
cmp eax, ebx
jne 0x401b81
push dword [ebp]
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push edi
call fcn.00401860
mov edi, eax
add esp, 0x14
test edi, edi
je 0x401b81
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [ebp], edi
mov dword [eax], ecx
cmp ecx, esi
je 0x401b79
push esi
call fcn.004208b2
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x401b92
push eax
call fcn.004208b2
add esp, 4
push esi
call fcn.004208b2
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x401c30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push ebx
xor ebx, ebx
test byte [esp + 0x48], 1
jne 0x401c5a
lea eax, [esp + 8]
push eax
push dword [esp + 0x48]
call fcn.00424e2e
add esp, 8
test eax, eax
jne 0x401c5a
lea eax, [ebx + 1]
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x40]
push ebp
push esi
push edi
mov ebp, dword [eax + 4]
push ebp
call fcn.004208cd
mov edi, dword [esp + 0x4c]
add esp, 4
mov esi, eax
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x401d6a
mov ecx, dword [esp + 0x4c]
mov eax, dword [edi + 0x14]
push 0
add eax, dword [ecx + 0xc]
push eax
push edx
call fcn.004242ff
push dword [edi + 0x1c]
lea eax, [esp + 0x20]
push 4
push 1
push eax
call fcn.00423edb
mov eax, dword [esp + 0x68]
add eax, 8
push eax
lea eax, [esp + 0x30]
push eax
push 0x458190
call fcn.00406d80
push dword [edi + 0x1c]
push ebp
push 1
push esi
call fcn.00423edb
add esp, 0x38
cmp eax, ebp
jne 0x401d50
mov eax, dword [esp + 0x4c]
push dword [eax + 8]
lea eax, [esp + 0x58]
push eax
push ebp
push esi
push edi
call fcn.00401860
mov edi, eax
add esp, 0x14
test edi, edi
je 0x401d50
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x54]
mov dword [eax + 8], edi
cmp ebp, esi
je 0x401d05
push esi
call fcn.004208b2
add esp, 4
push 0x458194
push dword [esp + 0x54]
call fcn.00423ceb
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x401d3d
push eax
push edi
push 1
push ebp
call fcn.004245fe
push dword [esp + 0x64]
mov esi, eax
call fcn.00423c04
xor ebx, ebx
add esp, 0x14
cmp esi, edi
sete bl
push ebp
call fcn.004208b2
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x401d61
push eax
call fcn.004208b2
add esp, 4
push esi
call fcn.004208b2
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x34
ret
Function at 0x402490
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x459cd0]
test eax, eax
jne 0x4024b8
nop dword [eax]
mov ecx, dword [0x459cd4]
test ecx, ecx
jne 0x4024be
call fcn.00402650
mov eax, dword [0x459cd0]
test eax, eax
je 0x4024a0
mov ecx, dword [0x459cd4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ebx
test ebx, ebx
jne 0x4024d5
pop edi
pop esi
xor eax, eax
pop ebx
ret
movzx edx, byte [esi]
shl edx, 7
xor edx, eax
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
imul edx, edx, 0xf4243
xor edx, eax
sub edi, 1
jne 0x4024e0
pop edi
xor ecx, edx
xor ecx, ebx
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x402500
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, edi
test edi, edi
jne 0x402515
pop edi
xor eax, eax
pop esi
ret
movzx ecx, byte [edx]
shl ecx, 7
xor ecx, dword [esp + 0x14]
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
imul ecx, ecx, 0xf4243
xor ecx, eax
sub esi, 1
jne 0x402520
mov eax, dword [esp + 0x18]
xor eax, ecx
xor eax, edi
pop edi
pop esi
ret
Function at 0x41b660
Capabilities:
Hash data using murmur3

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
lea esi, [edx + eax]
mov dword [esp + 8], esi
cmp eax, 0x10
jb 0x41b708
push ebx
push ebp
push edi
mov edi, dword [esp + 0x24]
lea eax, [esi - 0x10]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
lea ebx, [edi + 0x24234428]
lea ebp, [edi - 0x7a143589]
lea eax, [edi + 0x61c8864f]
imul ecx, dword [edx], 0x7a143589
sub ebx, ecx
imul ecx, dword [edx + 4], 0x7a143589
rol ebx, 0xd
imul ebx, ebx, 0x9e3779b1
sub ebp, ecx
imul ecx, dword [edx + 8], 0x7a143589
rol ebp, 0xd
imul ebp, ebp, 0x9e3779b1
sub edi, ecx
imul ecx, dword [edx + 0xc], 0x7a143589
rol edi, 0xd
add edx, 0x10
imul edi, edi, 0x9e3779b1
sub eax, ecx
rol eax, 0xd
imul eax, eax, 0x9e3779b1
cmp edx, esi
jbe 0x41b6a0
mov esi, dword [esp + 0x14]
rol eax, 0x12
rol edi, 0xc
add eax, edi
rol ebp, 7
pop edi
add eax, ebp
rol ebx, 1
pop ebp
add eax, ebx
pop ebx
jmp 0x41b711
mov eax, dword [esp + 0x18]
add eax, 0x165667b1
add eax, dword [esp + 0x14]
lea ecx, [edx + 4]
cmp ecx, esi
ja 0x41b73b
nop dword [eax]
imul ecx, dword [edx], 0x3d4d51c3
add edx, 4
sub eax, ecx
lea ecx, [edx + 4]
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
cmp ecx, esi
jbe 0x41b720
cmp edx, esi
jae 0x41b759
nop
movzx ecx, byte [edx]
inc edx
imul ecx, ecx, 0x165667b1
add ecx, eax
rol ecx, 0xb
imul eax, ecx, 0x9e3779b1
cmp edx, esi
jb 0x41b740
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul ecx, ecx, 0x85ebca77
pop esi
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
add esp, 8
ret

Function at 0x41b9c0
Capabilities:
Hash data using murmur3

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + 0x18]
add edi, dword [esi + 0x28]
lea edx, [esi + 0x18]
cmp dword [esi + 4], 0
je 0x41b9f4
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
rol ecx, 7
rol eax, 0x12
add eax, ecx
mov ecx, dword [esi + 8]
rol ecx, 1
add eax, ecx
mov ecx, dword [esi + 0x10]
rol ecx, 0xc
add eax, ecx
jmp 0x41b9fc
mov eax, dword [esi + 0x10]
add eax, 0x165667b1
add eax, dword [esi]
lea esi, [edx + 4]
cmp esi, edi
ja 0x41ba2b
nop word [eax + eax]
imul ecx, dword [edx], 0x3d4d51c3
add esi, 4
add edx, 4
sub eax, ecx
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
cmp esi, edi
jbe 0x41ba10
cmp edx, edi
jae 0x41ba49
nop
movzx ecx, byte [edx]
inc edx
imul ecx, ecx, 0x165667b1
add ecx, eax
rol ecx, 0xb
imul eax, ecx, 0x9e3779b1
cmp edx, edi
jb 0x41ba30
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul ecx, ecx, 0x85ebca77
pop edi
pop esi
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x41e312
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4591c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4514d8
push esi
call fcn.0042eb79
pop ecx
pop ecx
test eax, eax
jne 0x424da4
xor al, al
jmp 0x424e21
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00424ab7
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x424dde
push dword [ebp - 0x210]
call fcn.004208b2
xor al, al
jmp 0x424e1f
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x424de4
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x424e04
push edx
call fcn.00424cad
pop ecx
test al, al
je 0x424dcf
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x424e12
mov bl, 1
push dword [ebp - 0x210]
call fcn.004208b2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041e471
leave
ret

Function at 0x4285b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452230
push 0x452228
push str.FlsAlloc
push 0x1f
call fcn.00428475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4285ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x439174]
call esi
jmp 0x4285f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x428634
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452240
push 0x452238
push str.FlsGetValue
push 0x21
call fcn.00428475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42866b
push dword [ebp + 8]
mov ecx, esi
call dword [0x439174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x428673
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452248
push 0x452240
push str.FlsSetValue
push 0x22
call fcn.00428475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4286ad
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x439174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42c7df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x45abd8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42c81f
cmp byte [ebx], 0xa
jne 0x42c81f
or byte [edi + eax + 0x28], 4
jmp 0x42c824
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42c923
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42c906
inc eax
cmp dl, 0xd
je 0x42c850
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42c876
cmp eax, ecx
jae 0x42c884
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42c838
jmp 0x42c923
push 0
lea eax, [ebp - 0x10]
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 0x42c901
cmp dword [ebp - 0x10], 0
je 0x42c901
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45abd8]
test byte [eax + edi + 0x28], 0x48
je 0x42c8db
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42c8c6
mov byte [esi], dl
jmp 0x42c8d7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45abd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42c923
cmp byte [ebp - 1], 0xa
jne 0x42c8ea
cmp esi, ebx
jne 0x42c8ea
mov byte [esi], 0xa
jmp 0x42c922
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042d4ff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42c923
mov byte [esi], 0xd
jmp 0x42c922
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45abd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42c920
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42c923
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c92c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45abd8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42c972
cmp word [ebx], dx
jne 0x42c972
or byte [eax + edi + 0x28], 4
jmp 0x42c977
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42cada
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42caba
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42c9b8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42c9ee
cmp eax, edx
jae 0x42c9fc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42c993
jmp 0x42cada
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cab5
cmp dword [ebp - 0x18], 0
je 0x42cab5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45abd8]
test byte [eax + edi + 0x28], 0x48
je 0x42ca8b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42ca4f
mov word [esi], cx
jmp 0x42ca86
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45abd8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45abd8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45abd8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42cada
pop eax
cmp word [ebp - 4], ax
jne 0x42ca9b
cmp esi, ebx
jne 0x42ca9b
mov word [esi], ax
jmp 0x42cad7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042d4ff
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42cada
push 0xd
pop eax
jmp 0x42ca96
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45abd8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42cad4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42cada
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d8c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041d9f0
mov eax, dword [0x4591c0]
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.00429ec9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d90b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42da67
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00438770
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 + 0x45abd8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042d4e1
mov ecx, dword [esi*4 + 0x45abd8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42da60
cmp eax, dword [ecx + edi + 0x24]
jne 0x42da60
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42da60
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042d4e1
add esp, 0x14
test edx, edx
jl 0x42da60
jg 0x42d9d6
test eax, eax
jb 0x42da60
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42da60
jl 0x42d9f0
cmp dword [ebp - 0x1008], eax
ja 0x42da60
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42da0e
test ebx, ebx
je 0x42da47
cmp ecx, edi
jae 0x42da47
mov al, byte [ecx]
cmp al, 0xd
jne 0x42da28
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42da34
cmp byte [ecx + 1], 0xa
jne 0x42da34
inc ecx
jmp 0x42da34
movzx eax, al
movsx eax, byte [eax + 0x4595a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42da0e
cmp edx, ebx
jne 0x42da0e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42da65
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041e471
leave
ret
Function at 0x42fbe1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f6fc
Function at 0x430fe4
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 0x431081
push ebx
push esi
call fcn.00430fad
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.0042ae62
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43102e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431080
push edi
push eax
call fcn.0042762c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43104e
call fcn.004275f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43107f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042ae62
add esp, 0x20
test eax, eax
jne 0x43106d
push edi
call fcn.004275f2
jmp 0x431075
push ebx
call fcn.004275f2
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 0x431084
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431095
pop esi
ret
push ebx
push edi
push esi
call fcn.00430fad
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042762c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4310bd
push ebx
push esi
push edi
call fcn.0041e710
add esp, 0xc
push 0
call fcn.004275f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4350a7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4591c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4350ea
call fcn.0042828b
mov dword [eax], 0xf
call fcn.0042829e
mov dword [eax], 0xd
call fcn.00427961
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e471
leave
ret
test eax, eax
jne 0x4350f1
inc eax
jmp 0x4350de
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4350dc
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4350de