joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c470
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00403b30
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x414d9f
xor al, al
jmp 0x414e29
push esi
lea ecx, [ebp - 0x28]
call fcn.00403a40
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.00417e60
lea ecx, [ebp - 0x28]
call fcn.004038f0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414e0d
lea ecx, [ebp - 0x40]
call fcn.00403a20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041e6b0
test al, al
je 0x414dfc
lea ecx, [ebp - 0x40]
call fcn.004038f0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403930
cmp ebx, 0xffffffff
je 0x414e16
test bl, 0x10
je 0x414e16
mov bl, 1
jmp 0x414e18
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret
Function at 0x415450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00403b30
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x415491
xor al, al
jmp 0x415636
mov ecx, ebx
call fcn.00414d60
test al, al
je 0x4154a3
mov al, 1
jmp 0x415636
push 0
mov ecx, ebx
call fcn.004038f0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x4154f2
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041e6b0
test al, al
je 0x4154e3
push 0
lea ecx, [ebp - 0x28]
call fcn.004038f0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
mov ecx, ebx
call fcn.00414d60
test al, al
jne 0x41549c
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4155d5
nop dword [eax]
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x41551c
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x41553f
mov eax, edi
cmp ecx, 8
jb 0x415535
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x4155cb
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004145e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403b30
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4155bc
lea ecx, [ebp - 0x28]
call fcn.00414a50
test al, al
jne 0x4155bc
push 0
lea ecx, [ebp - 0x28]
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4155bc
lea ecx, [ebp - 0x40]
call fcn.00403a20
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041e6b0
test al, al
je 0x4155b0
push 0
lea ecx, [ebp - 0x40]
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x415510
mov ecx, ebx
call fcn.00414a50
test al, al
jne 0x41562f
push 0
mov ecx, ebx
call fcn.004038f0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x41562f
lea ecx, [ebp - 0x40]
call fcn.00403a20
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0041e6b0
test al, al
je 0x415620
push 0
lea ecx, [ebp - 0x40]
call fcn.004038f0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403930
mov ecx, ebx
call fcn.00414d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret
Function at 0x418460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cb61
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x30], 0
call fcn.00403b30
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4184ad
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4184c4
mov eax, edx
cmp word [eax], 0x25
je 0x4184f8
add eax, 2
sub ecx, 1
jne 0x4184b6
push edi
mov ecx, esi
call fcn.00403a40
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4184c4
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x4184c4
push edi
lea ecx, [ebp - 0x28]
call fcn.00403a40
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x41854b
push edi
mov ecx, esi
call fcn.00403a40
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403930
jmp 0x4184da
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434fc5
mov edx, dword [ebp - 0x2c]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41859f
cmp eax, dword [ebp - 0x2c]
ja 0x41859f
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.00403c60
push ebx
call fcn.00434dc5
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00403b30
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403fc0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403e50
jmp 0x418536
Function at 0x41d830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x480e58], 0
je 0x41d85e
nop word [eax + eax]
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x480e58], 0
jne 0x41d850
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [esp + 8], ecx
cmp byte [eax + 0x481058], 0
je 0x41d9f8
nop dword [eax + eax]
cmp dl, 0x26
jne case.0x41d8a0.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x41d8a0.36
movzx eax, byte [eax + 0x41da38]
jmp dword [eax*4 + 0x41da20]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x41d8ce
cmp byte [esi + 3], 0x70
jne case.0x41d8a0.36
cmp byte [esi + 4], 0x3b
jne case.0x41d8a0.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x41d9e2
cmp al, 0x70
jne case.0x41d8a0.36
cmp byte [esi + 3], 0x6f
jne case.0x41d8a0.36
cmp byte [esi + 4], 0x73
jne case.0x41d8a0.36
cmp byte [esi + 5], 0x3b
jne case.0x41d8a0.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x41d9e2
cmp byte [esi + 2], 0x75
jne case.0x41d8a0.36
cmp byte [esi + 3], 0x6f
jne case.0x41d8a0.36
cmp byte [esi + 4], 0x74
jne case.0x41d8a0.36
cmp byte [esi + 5], 0x3b
jne case.0x41d8a0.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x41d9e2
cmp byte [esi + 2], 0x74
jne case.0x41d8a0.36
cmp byte [esi + 3], 0x3b
jne case.0x41d8a0.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x41d9e2
cmp byte [esi + 2], 0x74
jne case.0x41d8a0.36
cmp byte [esi + 3], 0x3b
jne case.0x41d8a0.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x41d9e2
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x41d9a0
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x480758]
cmp al, 0xff
je 0x41d9c7
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x480758]
cmp al, 0xff
jne 0x41d988
jmp 0x41d9c7
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x480758]
cmp al, 0xff
je 0x41d9c7
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x480758]
cmp al, 0xff
jne 0x41d9b0
lea ecx, [esp + 8]
call fcn.0041d760
cmp byte [esi], 0x3b
jne 0x41da02
mov ecx, dword [esp + 8]
inc esi
jmp 0x41d9e6
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [esp + 8], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x481058], 0
jne 0x41d880
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
add esp, 0x18
ret
push esi
push str.expected__
lea ecx, [esp + 0x14]
call fcn.0041a690
push 0x48ff08
lea eax, [esp + 0x10]
push eax
call fcn.0044afbe
insd dword es:[edi], dx
fld dword [ecx]
cmpsd dword [esi], dword es:[edi]
fadd dword [ecx]
xor al, 0xd9
inc ecx
add byte [ecx + ebx*8 + 0x41], dl
add byte [eax], al
fld dword [ecx]
invalid
Function at 0x41e320
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x41e357
xor al, al
jmp 0x41e3ba
and esi, 0xffffb1af
push esi
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41e372
mov al, 1
jmp 0x41e3ba
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041e6b0
test al, al
je 0x41e3a7
push esi
lea ecx, [ebp - 0x28]
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41e3a7
mov bl, 1
jmp 0x41e3a9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e45e
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041e6b0
test al, al
je 0x41e44d
lea ecx, [ebp - 0x28]
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret
Function at 0x41e480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d810
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004038f0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x41e4c6
mov al, 1
jmp 0x41e5bb
mov ecx, esi
call fcn.004038f0
push eax
lea ecx, [ebp - 0x28]
call fcn.004039d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041e3e0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
cmp ebx, 0xffffffff
jne 0x41e505
xor al, al
jmp 0x41e5bb
mov ecx, esi
call fcn.004038f0
push eax
lea ecx, [ebp - 0x28]
call fcn.004039d0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.0041e320
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
test bl, bl
je 0x41e4fe
mov ecx, esi
call fcn.004038f0
push eax
call edi
test eax, eax
jne 0x41e4bf
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041e6b0
test al, al
je 0x41e57d
lea ecx, [ebp - 0x28]
call fcn.004038f0
push eax
call edi
test eax, eax
je 0x41e57d
mov bl, 1
jmp 0x41e5aa
mov ecx, esi
call fcn.004038f0
push eax
lea ecx, [ebp - 0x44]
call fcn.004039d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.0041e320
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00403930
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403930
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret

Function at 0x41e600
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x492014]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.0044b5b0
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.004038f0
push eax
mov ecx, edi
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41e695
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00403f50
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00403c60
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004345d1
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004345d1
add esp, 0x210
ret
Function at 0x41e770
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x492014]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004345e2
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0044b5b0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41e7cc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004345d1
add esp, 0x120
ret
Function at 0x420e30
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x46dc30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp + 4]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x420ef7
lea edi, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x420f1c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434fc5
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, edi
mov dword [ebp], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x420ee3
cmp eax, ebx
ja 0x420ee3
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x10], ebx
jmp 0x420f40
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x420ef7
push edi
call fcn.00434dc5
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.004345d1
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x420fb3
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x420fb3
mov word [ebp + eax + 4], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x420f98
mov esi, dword [ebp - 0x14]
mov ebx, 2
mov eax, dword [ebp - 0x10]
cmp word [esi + ebx - 2], 0
jne 0x420f8d
cmp ecx, edi
je 0x420f8d
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.004039d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00409140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403930
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x420f53
mov esi, dword [ebp]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x420fac
push esi
call fcn.00434dc5
add esp, 4
mov al, 1
jmp 0x420ef9
call fcn.00434eeb
int3
Function at 0x4228f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x492014]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x422972
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x422972
test ecx, ecx
je 0x42296e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x422930
xor eax, eax
jmp 0x422977
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x422981
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004345d1
add esp, 0xc
ret 0xc

Function at 0x423190
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x492014]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4231f5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4231d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4231f5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004345d1
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004345d1
add esp, 8
ret 4

Function at 0x42e677
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x34
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.0044b5b0
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x34
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x42e6c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x42e6dd
cmp ebx, 0x3e5
je 0x42e6dd
push 0xa
mov ecx, edi
call fcn.0042e91b
jmp 0x42e6e7
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4319d0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, ecx
push 4
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x431a15
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x431a27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp - 0x14], esi
jne 0x431a58
push dword [ebp - 0x18]
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x431a55
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call ebx
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x431a30
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004345d1
mov esp, ebp
pop ebp
ret
Function at 0x431ac0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x124
push 0xffffffffffffffff
push 0x46f97a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x431b05
call fcn.00431d10
cmp byte [0x4963ac], 0
jne 0x431b18
mov eax, 0x80000001
jmp 0x431ce1
mov eax, dword [esi]
test eax, eax
jne 0x431b83
push 8
call fcn.004345e2
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 1
call fcn.004345e2
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 8]
push eax
call fcn.0044b5b0
add esp, 0x14
mov dword [ebp + 4], 0x11c
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x431b72
cmp dword [ebp + 8], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x431cd0
call fcn.0041f2d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x431c76
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
mov eax, dword [esi]
add eax, 4
mov byte [ebp - 0xd], 0
push 0x480474
mov dword [ebp - 0x14], eax
call fcn.004039d0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.00420fc0
mov ecx, eax
call fcn.00421080
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403930
test edi, edi
je 0x431cd0
push str.OpenProcessToken
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x431cd0
push dword [ebp - 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x431cd0
lea eax, [ebp]
mov dword [ebp], 0
push eax
push 0x20008
push edi
call ebx
test eax, eax
je 0x431c43
push dword [ebp]
mov ecx, dword [ebp - 0x14]
call fcn.0041f460
mov bl, al
jmp 0x431c46
mov bl, byte [ebp - 0xd]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x431c59
push ecx
call edi
test bl, bl
je 0x431cd0
mov ecx, dword [esi]
add ecx, 4
call fcn.0041edf0
call fcn.0041f2d0
test al, al
je 0x431cd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x480474
lea ecx, [ebp - 0x30]
call fcn.004039d0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
call fcn.00420fc0
mov ecx, eax
call fcn.00421080
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403930
test edi, edi
je 0x431cd0
push str.RegOpenCurrentUser
push edi
call ebx
test eax, eax
je 0x431cd0
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x431cd0
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x431cdf
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004345d1
lea esp, [ebp + 0x124]
pop ebp
ret 4