joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49eb30
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00466160
mov eax, dword [0x4eb410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4ed758]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x49ed08
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x49ec57
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x49ec57
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x49ec35
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x49ebb9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49ecc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x49ed28
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x49ed03
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x49ed28
jmp 0x49eb92
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465af0
mov esp, ebp
pop ebp
ret
Function at 0x49ed40
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00466160
mov eax, dword [0x4eb410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4ed758]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x49ef2b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x49ee76
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x49ee76
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x49ee52
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x49edc9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49eee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x49ef4b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x49ef26
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x49ef4b
jmp 0x49eda2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465af0
mov esp, ebp
pop ebp
ret
Function at 0x4a4f40
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004a46a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a4f74
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4c0334]
call dword [ebp - 8]
jmp 0x4a4f7a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4a4fd0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004a46e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a5004
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4c0334]
call dword [ebp - 8]
jmp 0x4a500e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5020
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004a4700
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a5058
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x4c0334]
call dword [ebp - 8]
jmp 0x4a5066
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x4a50f0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004a4780
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a5130
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4c0334]
call dword [ebp - 8]
jmp 0x4a514e
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004a53c0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4aa590
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4eb410]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00467760
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x104
ja 0x4aa5f3
lea edx, [ebp - 0x210]
push edx
call fcn.004aa540
add esp, 4
jmp 0x4aa6d1
push 0x25
push str.minkernelcrtsucrt_srcdesktopcrtmiscdrive.cpp
push 2
push 2
mov eax, dword [ebp - 0x218]
add eax, 1
push eax
call fcn.00470f30
add esp, 0x14
push eax
lea ecx, [ebp - 0x214]
call fcn.0046b850
lea ecx, [ebp - 0x214]
call fcn.0046bbf0
test eax, eax
jne 0x4aa653
call fcn.0047fe30
mov dword [eax], 0xc
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x214]
call fcn.0046d720
mov eax, dword [ebp - 0x21c]
jmp 0x4aa6d1
lea ecx, [ebp - 0x214]
call fcn.0046bbf0
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4aa6a6
call fcn.0047fe30
mov dword [eax], 0xc
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x214]
call fcn.0046d720
mov eax, dword [ebp - 0x224]
jmp 0x4aa6d1
lea ecx, [ebp - 0x214]
call fcn.0046bbf0
push eax
call fcn.004aa540
add esp, 4
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x214]
call fcn.0046d720
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465af0
mov esp, ebp
pop ebp
ret
Function at 0x4b02a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0046b850
lea ecx, [ebp - 4]
call fcn.004b0270
movzx eax, al
test eax, eax
jne 0x4b02dd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x18]
jmp 0x4b0405
lea ecx, [ebp - 4]
call fcn.0046bbf0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004b0230
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.0046bbf0
push eax
push 0
push 0
call fcn.004a91a0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b0343
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x20]
jmp 0x4b0405
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004710f0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00402790
lea ecx, [ebp - 8]
call fcn.00465000
movzx edx, al
test edx, edx
jne 0x4b038c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00464fe0
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x24]
jmp 0x4b0405
lea ecx, [ebp - 8]
call fcn.00401ed0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.0046bbf0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.004a91a0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4b03e7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00464fe0
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x34]
jmp 0x4b0405
lea ecx, [ebp - 8]
call fcn.0046d740
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00464fe0
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x4b0410
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0046b850
lea ecx, [ebp - 4]
call fcn.004b01b0
movzx eax, al
test eax, eax
jne 0x4b044d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x14]
jmp 0x4b0507
lea ecx, [ebp - 4]
call fcn.0046bbf0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004b0230
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.004710f0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0046b850
lea ecx, [ebp - 8]
call fcn.00497f10
movzx ecx, al
test ecx, ecx
jne 0x4b04bd
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.0046d720
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x1c]
jmp 0x4b0507
lea ecx, [ebp - 4]
call fcn.0046bbf0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.0046bbf0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00467b30
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0046d740
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.0046d720
lea ecx, [ebp - 4]
call fcn.004b0190
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x4b60a0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b60c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047fd80
add esp, 4
or eax, 0xffffffff
jmp 0x4b60c9
xor eax, eax
pop ebp
ret

Function at 0x4ba990
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4eb410]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x1a
jbe 0x4baa26
call fcn.0047fe00
mov dword [eax], 0xf
xor eax, eax
je 0x4ba9c0
mov dword [ebp - 0x14], 1
jmp 0x4ba9c7
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x4ba9f6
push str.__Invalid_Drive_Index___0_
push 0x4cef18
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push 2
call fcn.0046ca40
add esp, 0x18
cmp eax, 1
jne 0x4ba9f6
int3
cmp dword [ebp - 0x18], 0
jne 0x4baa26
call fcn.0047fe30
mov dword [eax], 0xd
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push str.is_valid_drive
push str.__Invalid_Drive_Index___0_
call fcn.0046d590
add esp, 0x14
xor eax, eax
jmp 0x4baa7f
cmp dword [ebp + 8], 0
jne 0x4baa33
mov eax, 1
jmp 0x4baa7f
mov eax, dword [ebp + 8]
add eax, 0x40
mov word [ebp - 0x10], ax
mov cx, word [ebp - 0x10]
mov word [ebp - 0xc], cx
mov edx, 0x3a
mov word [ebp - 0xa], dx
mov eax, 0x5c
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4baa76
cmp dword [ebp - 0x1c], 1
jne 0x4baa7a
xor eax, eax
jmp 0x4baa7f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465af0
mov esp, ebp
pop ebp
ret

Function at 0x4bbcd0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.0048cfb0
lea ecx, [ebp - 0x34]
call fcn.0048cfb0
call fcn.0048d080
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048cf80
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bbd23
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.0048d000
lea ecx, [ebp - 0x4c]
call fcn.0048d000
mov eax, dword [ebp - 8]
jmp 0x4bbd98
call fcn.0048d080
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0048cf80
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bbd5e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.0048d000
lea ecx, [ebp - 0x4c]
call fcn.0048d000
mov eax, dword [ebp - 0x10]
jmp 0x4bbd98
lea ecx, [ebp - 0x34]
call fcn.0048d210
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.0048d210
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.0048d000
lea ecx, [ebp - 0x4c]
call fcn.0048d000
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x410e73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040af16
and dword [ebp - 0x14], 0
cmp dword [0x430290], 0
mov dword [ebp - 0x18], eax
jne 0x410f26
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410fce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038c0
push ebx
call edi
test eax, eax
je 0x410fce
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038b0
push ebx
mov dword [0x430290], eax
call edi
push eax
call esi
push 0x40389c
push ebx
mov dword [0x430294], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x430298], eax
call edi
push eax
call esi
mov dword [0x4302a0], eax
test eax, eax
je 0x410f26
push 0x403868
push ebx
call edi
push eax
call esi
mov dword [0x43029c], eax
mov eax, dword [0x43029c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410f7f
cmp dword [0x4302a0], ecx
je 0x410f7f
push eax
call esi
push dword [0x4302a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410f7f
test ebx, ebx
je 0x410f7f
call edi
test eax, eax
je 0x410f76
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410f76
test byte [ebp - 8], 1
jne 0x410f7f
or dword [ebp + 0x10], 0x200000
jmp 0x410fb2
mov eax, dword [0x430294]
cmp eax, dword [ebp - 0x18]
je 0x410fb2
push eax
call esi
test eax, eax
je 0x410fb2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410fb2
mov eax, dword [0x430298]
cmp eax, dword [ebp - 0x18]
je 0x410fb2
push eax
call esi
test eax, eax
je 0x410fb2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430290]
call esi
test eax, eax
je 0x410fce
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410fd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b51
leave
ret
Function at 0x4135f0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004119e0
cmp dword [0x7b402c], 0x37
jne 0x41368a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b5020]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x43507c]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x413910
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b402c]
sub esp, 0x974
push ebx
push ebp
push esi
mov esi, dword [0x43507c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x413b0f
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x413946
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b402c], 0x1c
jne 0x41395d
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42bef8]
mov ebx, dword [0x42bf00]
mov ebp, dword [0x42bf04]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42befc]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x4139a6
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b3f9c], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b3f9c], eax
mov eax, dword [0x7b3f9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x7b402c], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x413a3d
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x7b402c], 0x979
mov dword [0x7b3fa0], 0xff6b3619
mov dword [0x7b3fa4], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x413a87
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x7b402c]
cmp eax, 0x93
je 0x413aad
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x4139a0
cmp eax, 0x8d4
jne 0x413ac4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b402c], 0x17
jne 0x413afe
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404070
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x413940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x974
ret
Function at 0x830370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x83038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x859074
push ecx
mov edi, eax
call fcn.00844198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8303cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0084402e
push esi
call fcn.00843fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret