joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a7c98
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5a7d4e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004857f8
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x5a7d38
lea eax, [ebp - 4]
mov edx, edi
call fcn.00485974
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.004857f8
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x5a7d38
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5a7d60
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x5a7d38
cmp dword [ebp - 0xc], 0x34
jne 0x5a7d38
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7d55
lea eax, [ebp - 4]
call fcn.00484994
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5af180
call fcn.005b0548
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x5af19f
test bl, 1
je 0x5af19f
call fcn.005b7318
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x5af380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.005b00c4
test byte [ebp + 0xd], 0xc0
jne 0x5af3a4
mov eax, dword [0x5e45b8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x5af3b1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x5af3de
je 0x5af3f0
sub ecx, 0x100
je 0x5af402
sub ecx, 0x100
je 0x5af40b
sub ecx, 0x100
je 0x5af3f9
jmp 0x5af414
sub ecx, 0x600
je 0x5af40b
sub ecx, 0x100
je 0x5af3f0
jmp 0x5af414
mov dword [ebp - 8], 1
jmp 0x5af41b
mov dword [ebp - 8], 2
jmp 0x5af41b
mov dword [ebp - 8], 4
jmp 0x5af41b
mov dword [ebp - 8], 5
jmp 0x5af41b
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x5af442
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5e4030]
test al, 0x80
je 0x5af43b
mov ebx, 0x80
jmp 0x5af454
mov ebx, 1
jmp 0x5af454
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5af454
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x5af466
je 0x5af46f
dec eax
je 0x5af478
jmp 0x5af481
mov dword [ebp - 4], SysStringLen
jmp 0x5af490
mov dword [ebp - 4], 0x40000000
jmp 0x5af490
mov dword [ebp - 4], 0xc0000000
jmp 0x5af490
push 1
call fcn.005b04dc
pop ecx
mov ebx, eax
jmp 0x5af590
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x5af4ac
sub eax, 0x10
je 0x5af4b0
sub eax, 0x10
je 0x5af4b7
sub eax, 0x10
je 0x5af4be
jmp 0x5af4be
xor edi, edi
jmp 0x5af4c3
mov edi, 1
jmp 0x5af4c3
mov edi, 2
jmp 0x5af4c3
mov edi, 3
test byte [ebp + 0xc], 4
je 0x5af4db
cmp dword [ebp - 4], 0x80000000
jne 0x5af4d9
mov edi, 1
jmp 0x5af4db
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x5af549
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x5af53e
test byte [ebp + 0xd], 1
je 0x5af539
mov ebx, 0x50
jmp 0x5af53e
mov ebx, 2
push ebx
call fcn.005b04dc
pop ecx
mov ebx, eax
jmp 0x5af590
mov edi, esi
push edi
call fcn.005af2e4
pop ecx
test eax, eax
je 0x5af55d
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x5af569
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.005b0204
add esp, 8
mov ebx, eax
inc eax
jne 0x5af590
push 4
call fcn.005b04dc
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.005b00f8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b3a24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.005adec8
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.005adf78
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.005adf78
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5e51e5
lea ecx, [ebp - 0x200]
push ecx
call fcn.005adec8
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.005adf78
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.005b4e3c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x5b3b35
push esi
call fcn.005adf78
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.005adf78
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.005ad020
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x5b3b0c
xor eax, eax
jmp 0x5b3bbc
push esi
call fcn.005adf78
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.005adf78
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.005addf7
add esp, 0xc
jmp 0x5b3b75
mov edi, dword [ebx + 0x24]
push edi
call fcn.005adf78
pop ecx
push eax
push esi
call fcn.005adf78
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.005adf78
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.005ad040
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x5b3b75
xor eax, eax
jmp 0x5b3bbc
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.005adec8
add esp, 8
push 0x5e51e7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.005adec8
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.005adec8
add esp, 8
push 0x5e51e9
mov edx, dword [ebx + 0x24]
push edx
call fcn.005adec8
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b72ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x5b72d9
jmp 0x5b7310
call fcn.005b725c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.005adf78
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.005adf78
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5b7394
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5e5820], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x5b746e
cmp dword [0x5e581c], 0
jne 0x5b746e
cmp dword [0x5e5a44], 0
je 0x5b7428
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.005b6d64
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5b740e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.005b6d64
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5b740e
lea ebx, [ebp - 0x84]
jmp 0x5b740f
inc ebx
call fcn.005b734c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x5b74a9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5e5824
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.005adf78
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5e5827
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x5b74a9
cmp dword [0x5e581c], 0
je 0x5b7488
cmp dword [0x5e581c], 0xffffffff
je 0x5b74a9
push esi
call dword [0x5e581c]
pop ecx
mov eax, dword [0x5e5820]
test eax, eax
je 0x5b74a9
cmp dword [0x5e5820], 0xffffffff
je 0x5b74a9
cmp byte [eax], 0
je 0x5b74a9
push esi
push eax
call fcn.005b72ac
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b7dc0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x66fa28], 0
jne 0x5b7e4c
cmp dword [0x66fa5c], 0
jne 0x5b7df0
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x66fa5c], eax
test eax, eax
jne 0x5b7df0
push str.GetEnvironmentStrings_failed
call fcn.005b74c0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x66fa5c]
jmp 0x5b7e09
lea eax, [edi + 1]
add edi, edi
add edi, 2
add ebp, eax
inc esi
add ebx, edi
push ebx
call fcn.005ae238
pop ecx
mov edi, eax
test eax, eax
jne 0x5b7dfc
lea edi, [ebp + 1]
mov eax, edi
add eax, eax
push eax
call fcn.005ad020
pop ecx
mov ebx, eax
mov dword [0x66fa2c], ebx
test ebx, ebx
jne 0x5b7e37
xor eax, eax
jmp 0x5b7f13
add edi, edi
mov edx, dword [0x66fa5c]
push edi
push edx
push ebx
call fcn.005adc2c
add esp, 0xc
jmp 0x5b7e6c
xor esi, esi
mov ebx, dword [0x66fa28]
jmp 0x5b7e66
push eax
call fcn.005ae238
pop ecx
test eax, eax
jne 0x5b7e62
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5b7e56
lea ebx, [esi + 4]
push 4
mov dword [0x66fa30], ebx
inc ebx
push ebx
call fcn.005acf84
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x5b7e8f
xor eax, eax
jmp 0x5b7f13
cmp dword [0x66fa28], 0
jne 0x5b7ec4
xor esi, esi
mov ebx, dword [0x66fa2c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x5b7eb5
mov dword [ebp], ebx
add edi, edi
add ebp, 4
add edi, 2
inc esi
add ebx, edi
push ebx
call fcn.005ae238
pop ecx
mov edi, eax
test eax, eax
jne 0x5b7ea7
jmp 0x5b7ef5
xor esi, esi
mov ebx, dword [0x66fa28]
mov eax, dword [esp]
mov edi, eax
jmp 0x5b7eef
push eax
call fcn.005ae238
pop ecx
test eax, eax
je 0x5b7ee4
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x5b7ee8
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5b7ed3
mov eax, dword [0x66fa28]
test eax, eax
je 0x5b7f05
push eax
call fcn.005ad030
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x66fa28], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5bafa0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004857f8
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x469015
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46900f
test ah, 4
je 0x46900f
test al, 0x10
je 0x46900f
mov eax, esi
call fcn.004857f8
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x469015
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
jmp 0x468fc0
Function at 0x5bc4e8
Capabilities:
Delete registry key

Disassembly:
fsub qword [ecx]
inc ebx
add byte [eax + 0xc0043dd], bl
and dword [ebx], eax
nop
fiadd word [ebx]
cmp ch, bl
inc ebx
add byte [eax + 0x540043de], ah
loop 0x5bc546
add byte [ebp - 0x214fffbd], al
inc ebx
add byte [eax - 0x73ffbc22], ch
in eax, 0x43
add al, dh
or byte [ecx], bl
push 0x540043e4
or eax, 0xc5980059
pop ebx
add byte [eax], al
add byte [ecx], al
add byte [esi], bh
lds ebx, [ebx]
dec edx
add byte [esi], cl
add byte [0x41644954], cl
outsb dx, byte [esi]
je 0x5bc5a1
inc esi
jb 0x5bc5a0
jp 0x5bc5a3
daa
add byte [eax + 0x7005bc5], bl
push eax
jb 0x5bc5b7
arpl word [ebp + 0x73], sp
jae 0x5bc550
add byte [eax], al
add byte [eax], al
add byte [eax], cl
add byte [ecx], al
or byte [eax - 0x3b], ch
pop ebx
add byte [eax], al
add byte [eax], al
or byte [eax], al
add dword [eax], ecx
push 0x5bc5
add byte [ebx + edx*2], al
insb byte es:[edi], dx
add al, byte [eax]
add al, byte [eax]
nop
nop
nop
insb byte es:[edi], dx
lds ebx, [ebx]
push cs
mov eax, dword [0x5e7530]
mov eax, dword [eax]
call fcn.004d0498
jmp 0x5bc5d1
jne 0x5bc603
add byte [ebx + 0x3eebe800], cl
int1
invalid
lea eax, [esp + 0x10]
push eax
call sub.USER32.DLL_PeekMessageW
test eax, eax
je 0x5bc5d1
mov eax, dword [0x5e7530]
mov eax, dword [eax]
call fcn.004d04b0
add esp, 0x1c
ret
push ecx
invalid
invalid

Function at 0x5bc56c
Capabilities:
Delete registry key

Disassembly:
pop es
or eax, 0x41644954
outsb dx, byte [esi]
je 0x5bc5de
inc esi
jb 0x5bc5dd
jp sym.default.exe__Idantifreeze_initialization_qqrv
call 0xec5c2144
or ebx, dword [ecx]
push es
add byte [ecx + ecx*2], cl
inc ecx
outsb dx, byte [esi]
je 0x5bc5f5
inc esi
jb fcn.005bc5f4
jp 0x5bc5f7
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add bl, al
nop
ret
and eax, sym.imp.ADVAPI32.DLL_RegCreateKeyExW
push ecx
add bh, bh
jmp dword [sym.imp.ADVAPI32.DLL_RegDeleteKeyW]
Function at 0x4066e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41595b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4049bc
call fcn.00407341
push 4
mov dword [esp + 0x18], 0
call fcn.00408077
mov edi, eax
add esp, 4
test edi, edi
je 0x406754
push ebx
call fcn.00407219
mov dword [edi], eax
call fcn.00406fd8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407302
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406748
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040732a
pop ebx
jmp 0x406756
xor edi, edi
mov dword [esi + 0x38], 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
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 ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408af1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419510]
jne 0x408afb
repz ret
jmp fcn.0040ccfc
Function at 0x410e13
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.0040aeb6
and dword [ebp - 0x14], 0
cmp dword [0x4300d0], 0
mov dword [ebp - 0x18], eax
jne 0x410ec6
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410f6e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038c0
push ebx
call edi
test eax, eax
je 0x410f6e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038b0
push ebx
mov dword [0x4300d0], eax
call edi
push eax
call esi
push 0x40389c
push ebx
mov dword [0x4300d4], eax
call edi
push eax
call esi
push 0x403880
push ebx
mov dword [0x4300d8], eax
call edi
push eax
call esi
mov dword [0x4300e0], eax
test eax, eax
je 0x410ec6
push 0x403868
push ebx
call edi
push eax
call esi
mov dword [0x4300dc], eax
mov eax, dword [0x4300dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410f1f
cmp dword [0x4300e0], ecx
je 0x410f1f
push eax
call esi
push dword [0x4300e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410f1f
test ebx, ebx
je 0x410f1f
call edi
test eax, eax
je 0x410f16
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410f16
test byte [ebp - 8], 1
jne 0x410f1f
or dword [ebp + 0x10], 0x200000
jmp 0x410f52
mov eax, dword [0x4300d4]
cmp eax, dword [ebp - 0x18]
je 0x410f52
push eax
call esi
test eax, eax
je 0x410f52
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410f52
mov eax, dword [0x4300d8]
cmp eax, dword [ebp - 0x18]
je 0x410f52
push eax
call esi
test eax, eax
je 0x410f52
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4300d0]
call esi
test eax, eax
je 0x410f6e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410f70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408af1
leave
ret
Function at 0x413590
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.00411980
cmp dword [0x7b3e6c], 0x37
jne 0x41362a
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 [0x7b4e60]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x434ebc]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x4138b0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b3e6c]
sub esp, 0x974
push ebx
push ebp
push esi
mov esi, dword [0x434ebc]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x413aaf
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4138e6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b3e6c], 0x1c
jne 0x4138fd
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 [0x42bd50]
mov ebx, dword [0x42bd58]
mov ebp, dword [0x42bd5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42bd54]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x413946
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 [0x7b3ddc], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b3ddc], eax
mov eax, dword [0x7b3ddc]
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 [0x7b3e6c], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x4139dd
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 [0x7b3e6c], 0x979
mov dword [0x7b3de0], 0xff6b3619
mov dword [0x7b3de4], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x413a27
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 [0x7b3e6c]
cmp eax, 0x93
je 0x413a4d
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x413940
cmp eax, 0x8d4
jne 0x413a64
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 [0x7b3e6c], 0x17
jne 0x413a9e
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 0x4138e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x974
ret
Function at 0xab735d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ab735d
ret
Function at 0x9ca370
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 0x9ca38e
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 0x9f3074
push ecx
mov edi, eax
call fcn.009de198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9ca3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009de02e
push esi
call fcn.009ddfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret