joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419840
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push ecx
mov edx, 0x47e150
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040fa80
add esp, 4
push 0x2001f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x10]
push SysReAllocString
call fcn.0040e910
or edi, 0xffffffff
test eax, eax
je 0x4198f6
sub esp, 0x14
lea ecx, [ebp - 0x28]
push dword [ebp - 0x10]
push SysReAllocString
call fcn.0040e840
test eax, eax
jne 0x4198ec
push 0x2001f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
push SysReAllocString
call fcn.0040e910
test eax, eax
jne 0x4198ec
mov esi, dword [ebp - 0x28]
jmp 0x419943
mov esi, dword [ebp - 0x28]
xor bl, bl
jmp 0x4199a1
push ecx
mov edx, 0x47e1cc
lea ecx, [ebp - 0x18]
call fcn.0040fa80
add esp, 4
mov dword [ebp - 0x14], 4
mov ecx, dword [eax]
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x48]
mov esi, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419943
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edx, 0x47e208
lea ecx, [ebp - 0x14]
call fcn.0040fa80
add esp, 4
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
push 0
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419988
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x419998
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0
mov bl, 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4199bd
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test esi, esi
je 0x4199c8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4199e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push ecx
mov edx, str.GycuPD8pOi0UBSErOic7Jy48FAEmPC06Ji08aA0wOCQnOi06FBs8MSQtOw
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040fa80
add esp, 4
lea ecx, [ebp - 0x28]
push 0xf003f
push dword [eax]
push SysReAllocString
call fcn.0040e910
mov edx, dword [ebp - 0x18]
test eax, eax
setne byte [ebp - 0xd]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419a6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x28]
jne 0x419ad2
mov eax, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
cmp dword [eax + 0x48], 0
je 0x419af2
mov edx, 0x47e244
call fcn.0040fa80
add esp, 4
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
push 4
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x419acc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x419b2c
xor bl, bl
test esi, esi
je 0x419adf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.BSkwGys6ITg8GzwpPC0lLSY8Ow
call fcn.0040fa80
add esp, 4
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x419b26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x419ad2
test esi, esi
je 0x419b39
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov bl, 1
jmp 0x419ad4
Function at 0x41c200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465ec9
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0x14]
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi], 0xffffffff
jne 0x41c276
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x41c3a5
push ebx
push ecx
mov byte [ebp - 4], 1
mov ebx, esp
mov dword [ebp - 0xa8], ebx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004079c0
add eax, 0x10
push ecx
push dword [ebp + 8]
mov dword [ebx], eax
lea eax, [ebp - 0xac]
push eax
call fcn.0041be70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x9c]
push 0xfde9
push dword [ebp - 0xac]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], eax
call fcn.00413550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
push dword [ebp - 0xa0]
call fcn.004064b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
cmp eax, ecx
je 0x41c2fc
push eax
call fcn.00448d6b
add esp, 4
push 1
push 0x47fcec
lea ecx, [ebp - 0xa4]
call fcn.00407520
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
push 0
push ecx
mov dword [ebp - 0xa8], 0
push dword [eax - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0xa4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c357
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0xac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c389
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41c389
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41c3af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41da00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41daac
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41daac
call fcn.004014a0
mov edi, eax
jmp 0x41dbcb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41dacf
call fcn.004014a0
jmp 0x41dbbe
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41daed
call fcn.004014a0
jmp 0x41dbbe
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41db0e
mov edi, 0x8007000e
jmp 0x41dbc0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
jne 0x41db45
cmp eax, 0xffffffff
ja 0x41db45
cmp eax, 0x400
jbe 0x41db37
push eax
lea ecx, [ebp - 0x418]
call fcn.00424c50
jmp 0x41db67
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x41db67
push 0x80070216
call fcn.004012a0
mov eax, 0x41db55
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41db7e
mov edi, 0x8007000e
jmp 0x41dbc0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41db9e
call fcn.004014a0
jmp 0x41dbbe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0041e780
mov edi, eax
test esi, esi
je 0x41dbcb
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41dbe4
lea ecx, [ebp - 0x418]
call fcn.00424c40
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 - 0x14]
xor ecx, ebp
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4205d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466246
mov eax, dword fs:[0]
push eax
sub esp, 0xa38
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push 0x104
push eax
push dword [0x49a154]
mov dword [ebp - 0xa40], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov dword [ebp - 0xa24], 0
mov dword [ebp - 0xa20], 0
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x61c]
lea ecx, [ebp - 0xa24]
push eax
call fcn.004137c0
test eax, eax
jns 0x4206aa
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x420668
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x483340
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00407350
test al, al
jne 0x420696
push 0
push 0x483340
mov ecx, edi
call fcn.00407a80
mov eax, dword [ebp - 0xa24]
test eax, eax
je 0x4207cf
push eax
jmp 0x4207c9
mov ebx, dword [ebp - 0xa24]
lea eax, [ebp - 0xa30]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov dword [ebp - 0xa34], esi
cmp esi, 0xffffffff
jne 0x4206e4
call fcn.004014a0
test eax, eax
jns 0x4206de
push 0x483344
jmp 0x4207bd
mov esi, dword [ebp - 0xa34]
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00441bb0
mov eax, dword [ebp - 0xa30]
add esp, 0xc
sub esi, 0x400
mov dword [ebp - 0xa3c], esi
sbb eax, 0
push 0
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa38]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42073e
call fcn.004014a0
test eax, eax
jns 0x42073e
push 0x483348
jmp 0x4207bd
push 0
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa28], 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x420778
call fcn.004014a0
test eax, eax
jns 0x420778
push 0x48334c
jmp 0x4207bd
xor esi, esi
nop word [eax + eax]
mov al, byte [ebp + esi - 0x414]
inc esi
cmp al, 0x43
jne 0x4207b0
mov al, byte [ebp + esi - 0x414]
inc esi
cmp al, 0x44
jne 0x4207b0
mov al, byte [ebp + esi - 0x414]
inc esi
cmp al, 0x3a
jne 0x4207b0
mov al, byte [ebp + esi - 0x414]
inc esi
cmp al, 0x40
je 0x4207ef
cmp esi, 0x400
jl 0x420780
push 0x483350
mov ecx, edi
call fcn.00406ad0
test ebx, ebx
je 0x4207cf
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
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 - 0x14]
xor ecx, ebp
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret 4
push 0x400
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.00441bb0
add esp, 0xc
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp - 0x414]
add eax, esi
push eax
lea eax, [ebp - 0xa1c]
push eax
call fcn.00441d10
add esp, 0xc
lea eax, [ebp - 0xa1c]
mov ecx, edi
push eax
call fcn.00424b00
jmp 0x4207c4
Function at 0x430140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466a48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x49806c]
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
cmp dword [ebx + 0x38], 0
je 0x430286
cmp byte [ebx + 0x3d], 0
je 0x430286
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x430194
xor al, al
jmp 0x430288
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042ed30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4301ef
sub eax, 1
je 0x4301f3
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x430249
xor bl, bl
jmp 0x43024b
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x43022b
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0044b249
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x4301eb
cmp byte [ebx + 0x3d], 0
je 0x430249
test esi, esi
jne 0x4301b0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0042ffc0
jmp 0x4301a7
mov bl, 1
cmp edx, 0x10
jb 0x43027d
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x430274
test al, 0x1f
jne 0x430281
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x430281
sub eax, ecx
cmp eax, 4
jb 0x430281
cmp eax, 0x23
ja 0x430281
mov eax, ecx
push eax
call fcn.0043f6bc
add esp, 4
mov al, bl
jmp 0x430288
call fcn.00448ab6
mov al, 1
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.0043f6c1
mov esp, ebp
pop ebp
ret
Function at 0x430790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4656a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043fb3f
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0043e18b
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43ae89
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
xor ebx, ebx
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x43ae9c
sub esi, ecx
sar esi, 1
push 2
lea eax, [esi + 1]
push eax
call fcn.0044536c
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43aec6
push 0xffffffffffffff98
pop eax
jmp 0x43af4f
push dword [ebp - 4]
lea eax, [esi + 1]
push eax
push edi
call fcn.00448e53
add esp, 0xc
push 0x2f
pop eax
cmp word [edi + esi*2 - 2], ax
jne 0x43aee7
xor eax, eax
mov word [edi + esi*2 - 2], ax
push edi
call fcn.004506b6
pop ecx
test eax, eax
je 0x43af43
lea esi, [edi + 2]
cmp word [esi], bx
je 0x43af12
push 0x2f
pop ecx
movzx eax, word [esi]
cmp eax, 0x5c
je 0x43af12
cmp ax, cx
je 0x43af12
add esi, 2
cmp word [esi], bx
jne 0x43aefd
movzx eax, word [esi]
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov word [esi], ax
call fcn.004506b6
pop ecx
cmp eax, 0xffffffff
jne 0x43af33
call fcn.00448b7f
cmp dword [eax], 2
je 0x43af46
mov eax, dword [ebp - 4]
test ax, ax
je 0x43af43
mov word [esi], ax
add esi, 2
jmp 0x43aef5
xor ebx, ebx
inc ebx
push edi
call fcn.00448d6b
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4401fa
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x495808
call fcn.004405d0
push 1
call fcn.0043fccf
pop ecx
test al, al
jne 0x4400b1
push 7
call fcn.004403b8
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0043fc9a
mov byte [ebp - 0x24], al
mov eax, dword [0x49a784]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4400aa
test eax, eax
jne 0x44011b
mov dword [0x49a784], ecx
push 0x4694fc
push 0x4694d8
call fcn.00453071
pop ecx
pop ecx
test eax, eax
je 0x4400fe
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4401f4
push 0x4694d4
push 0x4694a0
call fcn.00453015
pop ecx
pop ecx
mov dword [0x49a784], 2
jmp 0x440120
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0043fe3c
pop ecx
call fcn.004408d8
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x440150
push esi
call fcn.0043fdb2
pop ecx
test al, al
je 0x440150
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00440204
call esi
call fcn.004408de
mov esi, eax
cmp dword [esi], edi
je 0x44016e
push esi
call fcn.0043fdb2
pop ecx
test al, al
je 0x44016e
push dword [esi]
call fcn.004523d1
pop ecx
call fcn.004404d4
movzx eax, ax
push eax
call fcn.00452fc2
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004522e0
test al, al
jne 0x440199
push esi
call fcn.00452409
test bl, bl
jne 0x4401a2
call fcn.004523ac
push edi
push 1
call fcn.0043fe59
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4401f4
call fcn.00440616
ret
call fcn.00440829
jmp 0x440092

Function at 0x443a73
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x46cf58
push 0x46cf50
push str.FlsAlloc
push 0
call fcn.004439f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x443aa5
push dword [ebp + 8]
mov ecx, esi
call fcn.00440204
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsAlloc]

Function at 0x443ae7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x46cf68
push 0x46cf60
push str.FlsGetValue
push 2
call fcn.004439f3
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x443b18
mov ecx, esi
call fcn.00440204
call esi
jmp 0x443b1e
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x443b21
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x46cf70
push 0x46cf68
push str.FlsSetValue
push 3
call fcn.004439f3
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x443b55
mov ecx, esi
call fcn.00440204
call esi
jmp 0x443b5b
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x45837b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004581fa

Function at 0x45cde6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045caa6
Function at 0x1000f840
Capabilities:
Get session information

Disassembly:
sub esp, 8
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000f8a7
lea ecx, [esp + 4]
mov dword [esp + 8], 0
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
push ecx
push 0x19
push eax
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, 1
jne 0x1000f8a7
cmp dword [esp + 4], 0
jbe 0x1000f8a7
mov eax, dword [esp + 8]
cmp dword [eax], 1
jne 0x1000f89f
cmp dword [eax + 0x10], 0
jne 0x1000f89f
push eax
mov bl, 1
call sub.WTSAPI32.dll_WTSFreeMemory
mov al, bl
pop ebx
add esp, 8
ret
push eax
xor bl, bl
call sub.WTSAPI32.dll_WTSFreeMemory
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x10015dc0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x24
mov eax, dword [0x1011a204]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, ecx
lea eax, [esi + 0x14]
lea edx, [esi + 0x2c14]
cmp eax, edx
je 0x10015dea
nop
and dword [eax], 0xfffffffd
add eax, 0x2c
cmp eax, edx
jne 0x10015de0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x10
lea ecx, [esp + 8]
movzx eax, ax
push ecx
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov byte [esi + 0x2c15], 0
test eax, eax
je 0x10015e35
xor eax, eax
mov ecx, 1
test dword [esp + 0x12], 0x800
cmovne eax, ecx
mov dword [esi + 8], eax
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100d4904
add esp, 0x24
ret
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], 0
pop esi
xor ecx, esp
call fcn.100d4904
add esp, 0x24
ret