joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4ea05359
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x87900f2
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4353bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042716b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4353f7
xor eax, eax
jmp 0x435423
cmp esi, dword [ebp - 4]
je 0x435420
cmp dword [ebp + 0xc], 0
je 0x435420
push dword [edi + 0x9c]
call fcn.00434fcd
push dword [edi + 0x9c]
mov esi, eax
call fcn.004250ad
pop ecx
pop ecx
cmp esi, eax
je 0x4353f3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
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 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x401b40
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0x41f27c
mov dword [ebp - 0x808], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x401b9c
push str.EHNULL
push 0x400
push 0x42a890
call fcn.00409a5f
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x808]
push esi
push ecx
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00409a5f
lea eax, [ebp - 0x804]
push eax
push 0x400
push 0x42a890
call fcn.00409a5f
mov ecx, dword [ebp - 0x808]
add esp, 0x18
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.PerfsLog
push 0x400
push 0x42a890
call fcn.0040a82d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push 0x42a890
call esi
cmp eax, 0xffffffff
je 0x401c08
test al, 0x10
jne 0x401c55
push 0
push 0x42a890
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401c3f
push str.EHNULL
push 0x400
push 0x42a890
call fcn.00409a5f
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
push 0x42a890
call esi
or eax, 2
push eax
push 0x42a890
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409a50
mov esp, ebp
pop ebp
ret

Function at 0x401c70
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x42a890
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401ca6
test dx, dx
je 0x401ca2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401ca6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401c80
xor eax, eax
jmp 0x401cab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401cc7
push str.EHNULL
push 0x400
push 0x42b090
call fcn.00409a5f
add esp, 0xc
ret
push esi
push 0x42a890
push 0x400
push 0x42b090
call fcn.00409a5f
push str.Sys
push 0x400
push 0x42b090
call fcn.0040a82d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x42b090
call esi
cmp eax, 0xffffffff
je 0x401d09
test al, 0x10
jne 0x401d49
push 0
push 0x42b090
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401d33
push str.EHNULL
push 0x400
push 0x42b090
call fcn.00409a5f
add esp, 0xc
pop esi
ret
push 0x42b090
call esi
or eax, 2
push eax
push 0x42b090
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
Function at 0x401d50
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x42a890
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d86
test dx, dx
je 0x401d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d86
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d60
xor eax, eax
jmp 0x401d8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401da7
push str.EHNULL
push 0x400
push 0x42b890
call fcn.00409a5f
add esp, 0xc
ret
push esi
push 0x42a890
push 0x400
push 0x42b890
call fcn.00409a5f
push str.Log
push 0x400
push 0x42b890
call fcn.0040a82d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x42b890
call esi
cmp eax, 0xffffffff
je 0x401de9
test al, 0x10
jne 0x401e29
push 0
push 0x42b890
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e13
push str.EHNULL
push 0x400
push 0x42b890
call fcn.00409a5f
add esp, 0xc
pop esi
ret
push 0x42b890
call esi
or eax, 2
push eax
push 0x42b890
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x401e30
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x42a890
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e66
test dx, dx
je 0x401e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e40
xor eax, eax
jmp 0x401e6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401e87
push str.EHNULL
push 0x400
push 0x42c090
call fcn.00409a5f
add esp, 0xc
ret
push esi
push 0x42a890
push 0x400
push 0x42c090
call fcn.00409a5f
push str.WinLog
push 0x400
push 0x42c090
call fcn.0040a82d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x42c090
call esi
cmp eax, 0xffffffff
je 0x401ec9
test al, 0x10
jne 0x401f09
push 0
push 0x42c090
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401ef3
push str.EHNULL
push 0x400
push 0x42c090
call fcn.00409a5f
add esp, 0xc
pop esi
ret
push 0x42c090
call esi
or eax, 2
push eax
push 0x42c090
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
Function at 0x401f10
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x42a890
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f46
test dx, dx
je 0x401f42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f46
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f20
xor eax, eax
jmp 0x401f4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f67
push str.EHNULL
push 0x400
push 0x42c890
call fcn.00409a5f
add esp, 0xc
ret
push esi
push 0x42a890
push 0x400
push 0x42c890
call fcn.00409a5f
push str.WinRm
push 0x400
push 0x42c890
call fcn.0040a82d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x42c890
call esi
cmp eax, 0xffffffff
je 0x401fa9
test al, 0x10
jne 0x401fe9
push 0
push 0x42c890
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fd3
push str.EHNULL
push 0x400
push 0x42c890
call fcn.00409a5f
add esp, 0xc
pop esi
ret
push 0x42c890
call esi
or eax, 2
push eax
push 0x42c890
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x402250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x427494]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, str.EHNULL
mov eax, 0x42b890
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40229a
test dx, dx
je 0x402296
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40229a
add eax, 4
add ecx, 4
test dx, dx
jne 0x402274
xor eax, eax
jmp 0x40229f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022cc
push str.EHNULL
push 0x400
push 0x42a090
call fcn.00409a5f
add esp, 0xc
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
lea eax, [esp]
push eax
call fcn.00401ff0
push 0x42b890
push 0x400
push 0x42a090
call fcn.00409a5f
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x400
push 0x42a090
call fcn.0040a82d
add esp, 0xc
call fcn.00401760
test al, al
je 0x402316
push 0x42a090
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
Function at 0x404000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e338
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404191
cmp byte [ebx + 0x49], 0
je 0x404191
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404185
lea esi, [ebp - 0x2c]
call fcn.00403a90
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404073
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4040ac
dec eax
je 0x4040b0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40418c
call fcn.00402660
xor al, al
jmp 0x404193
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4040c0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4040ed
cmp edi, 0x10
jae 0x4040cf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040b024
add esp, 0x10
cmp esi, eax
jne 0x40417d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404189
test esi, esi
jne 0x404067
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4041ae
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4041ae
cmp edi, esi
jae 0x404166
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404830
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404067
mov ecx, eax
cmp edi, 0x10
jae 0x404142
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40415d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404061
test esi, esi
jne 0x404138
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404175
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404061
lea ecx, [ebp - 0x2c]
call fcn.00402660
xor al, al
jmp 0x404193
lea ecx, [ebp - 0x2c]
call fcn.00402660
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004097d3
int3
Function at 0x404500
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e2db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x427494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040988e
push 4
mov dword [ebp - 4], 0
call fcn.0040a0b1
mov edi, eax
add esp, 4
test edi, edi
je 0x40457c
call fcn.00409182
mov dword [edi], eax
call fcn.00408f41
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00408e76
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404572
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00408e9e
jmp 0x40457e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
lea eax, [ebp - 0xc0c]
push eax
mov edi, ecx
push 4
lea ecx, [ebp - 0xc10]
push ecx
push esi
mov dword [ebp - 0xc0c], 0
call ebx
test eax, eax
jne 0x405002
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc0c], 4
jne 0x404ff0
mov eax, dword [ebp - 0xc10]
push 0
lea edx, [ebp - 0xc0c]
push edx
push eax
mov dword [ebp - 0xc14], eax
lea eax, [ebp - 0x408]
push eax
push esi
call ebx
test eax, eax
je 0x404ff0
mov ecx, dword [ebp - 0xc14]
cmp ecx, dword [ebp - 0xc0c]
jne 0x404ff0
mov edx, dword [ebp - 0xc10]
lea eax, [ebp - 0x408]
mov byte [ebp + edx - 0x408], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405054
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0xc08]
push ecx
lea edx, [ebp - 0xc24]
push edx
call fcn.0040b86e
lea eax, [ebp - 0xc08]
push eax
push 0x400
push edi
call fcn.00409a5f
add esp, 0x20
push 0
lea ecx, [ebp - 0xc0c]
push ecx
push 8
lea edx, [ebp - 0xc20]
push edx
push esi
call ebx
test eax, eax
je 0x404ff0
cmp dword [ebp - 0xc0c], 8
jne 0x404ff0
mov eax, dword [ebp - 0xc20]
mov ecx, dword [ebp - 0xc1c]
push 0
lea edx, [ebp - 0xc0c]
push edx
mov dword [edi + 0x800], eax
mov dword [edi + 0x804], ecx
push 1
add edi, 0x808
push edi
push esi
call ebx
test eax, eax
je 0x404ff0
cmp dword [ebp - 0xc0c], 1
mov ecx, dword [ebp - 4]
sete al
pop edi
xor ecx, ebp
pop ebx
call fcn.00409a50
mov esp, ebp
pop ebp
ret
Function at 0x405110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov eax, ebx
push edi
mov dword [ebp - 0x410], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405135
sub eax, edx
sar eax, 1
inc eax
push eax
push ebx
push 0x400
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.0040a80d
lea eax, [ebp - 0x408]
add esp, 0x14
lea edx, [eax + 1]
jmp 0x405170
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405170
sub eax, edx
push 0
lea edx, [ebp - 0x40c]
push edx
mov dword [ebp - 0x414], eax
push 4
lea eax, [ebp - 0x414]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40c], 0
call esi
test eax, eax
jne 0x4051bb
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x40c], 4
jne 0x4051a8
lea eax, [ebp - 0x408]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051d0
push 0
sub eax, edx
lea ecx, [ebp - 0x40c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x410]
push edi
lea edx, [ebp - 0x408]
push edx
push eax
mov dword [ebp - 0x40c], 0
call esi
test eax, eax
je 0x4051a8
cmp edi, dword [ebp - 0x40c]
jne 0x4051a8
mov edx, dword [ebx + 0x804]
xor edi, edi
xor ecx, ecx
add ecx, dword [ebx + 0x800]
push edi
adc edx, edi
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], edx
push 8
lea edx, [ebp - 0x420]
mov dword [ebp - 0x40c], edi
mov edi, dword [ebp - 0x410]
push edx
push edi
call esi
test eax, eax
je 0x4051a8
cmp dword [ebp - 0x40c], 8
jne 0x4051a8
push 0
lea eax, [ebp - 0x40c]
push eax
push 1
add ebx, 0x808
push ebx
push edi
mov dword [ebp - 0x40c], 0
call esi
test eax, eax
je 0x4051a8
cmp dword [ebp - 0x40c], 1
mov ecx, dword [ebp - 4]
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a50
mov esp, ebp
pop ebp
ret
Function at 0x405530
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e5b6
mov eax, dword fs:[0]
push eax
mov eax, 0x184c
call fcn.00417d20
mov eax, dword [0x427494]
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
push 0x400
lea eax, [ebp - 0x810]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x184c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1818], 7
mov dword [ebp - 0x181c], esi
mov word [ebp - 0x182c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4055a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x182c]
call fcn.00404630
push 0x422144
mov ebx, 1
lea edi, [ebp - 0x182c]
mov dword [ebp - 4], esi
call fcn.00403ce0
lea ecx, [eax + 1]
lea eax, [ebp - 0x1848]
mov edx, edi
call fcn.00402c30
mov edi, eax
lea esi, [ebp - 0x182c]
mov byte [ebp - 4], bl
call fcn.00403bc0
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1834], esi
jb 0x405619
mov edx, dword [ebp - 0x1848]
push edx
call fcn.00409c38
add esp, 4
mov eax, dword [ebp - 0x182c]
cmp dword [ebp - 0x1818], esi
jae 0x40562d
lea eax, [ebp - 0x182c]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
lea ecx, [ebp - 0x1854]
push ecx
lea edx, [ebp - 0x1810]
push edx
mov dword [ebp - 0x1858], eax
mov dword [ebp - 0x1854], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
push 0x22c
mov dword [ebp - 0x1850], ebx
call fcn.0040a0b1
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40572a
lea eax, [ebp - 0x810]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.0040abd0
add esp, 8
test eax, eax
jne 0x40571e
mov ecx, dword [esi + 8]
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40571e
push edi
lea ecx, [ebp - 0x1010]
call fcn.00405370
add esp, 4
push edi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x405718
lea edx, [ebp - 0x1810]
push edx
lea eax, [ebp - 0x1010]
push eax
call fcn.0040abd0
add esp, 8
test eax, eax
jne 0x405718
mov ecx, dword [ebp - 0x1858]
cmp dword [esi + 8], ecx
jne 0x405776
mov ebx, dword [ebp - 0x1850]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4056aa
mov edi, dword [ebp - 0x184c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00409c38
add esp, 4
cmp dword [ebp - 0x1818], 8
jb 0x405758
mov edx, dword [ebp - 0x182c]
push edx
call fcn.00409c38
add esp, 4
mov eax, edi
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.00409a50
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1850]
mov edi, 1
jmp 0x405730
Function at 0x405cd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e4d6
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x427494]
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
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov dword [ebp - 0x854], eax
mov edi, 0x41
xor esi, esi
jmp 0x405d20
fld dword [0x423f70]
mov eax, esi
fstp dword [ebp - 0x850]
cmp esi, ebx
jge 0x405d34
neg eax
fld1
fstp dword [ebp - 0x84c]
lea esp, [esp]
fld dword [ebp - 0x850]
test al, 1
je 0x405d58
fld dword [ebp - 0x84c]
fmul st(1)
fstp dword [ebp - 0x84c]
shr eax, 1
je 0x405d66
fmul st(0), st(0)
fstp dword [ebp - 0x850]
jmp 0x405d40
fstp st(0)
fld dword [ebp - 0x84c]
cmp esi, ebx
jge 0x405d76
fld1
fdivrp st(1)
fstp dword [ebp - 0x850]
fld dword [ebp - 0x850]
call fcn.0041afc0
mov dword [ebp - 0x834], 0xf
mov dword [ebp - 0x838], ebx
mov byte [ebp - 0x848], bl
mov dword [ebp - 4], ebx
test dword [ebp - 0x854], eax
je 0x405e3f
movzx edx, di
push edx
push str._c:_
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0040acfa
add esp, 0x10
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
lea edx, [eax + 2]
jmp 0x405df0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405df0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x82c]
call fcn.00404630
lea ecx, [ebp - 0x82c]
mov ebx, 0x42d0b0
mov byte [ebp - 4], 1
call fcn.00408750
cmp dword [ebp - 0x818], 8
jb 0x405e3d
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00409c38
add esp, 4
xor ebx, ebx
inc esi
inc edi
mov dword [ebp - 4], 0xffffffff
cmp esi, 0x20
jb 0x405d20
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.00409a50
mov esp, ebp
pop ebp
ret