joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathSkipRootW]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
test eax, eax
je 0x401098
mov ebx, eax
movzx eax, word [eax]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
test ax, ax
jne 0x401064
jmp 0x401098
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401098
cmp ax, 0x5c
jne 0x401058
xor eax, eax
add ebx, 2
mov word [ebx - 2], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 0x5c
mov word [ebx - 2], dx
movzx eax, word [ebx]
sub esp, 8
test ax, ax
jne 0x401064
lea esi, [esi]
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
jne 0x4010c6
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401590
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov edx, eax
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x4015c2
leave
ret
test byte [section..data], 2
jne 0x4015d8
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401540
jmp 0x4015cb
Function at 0x401a20
Capabilities:
Check if process is running under wine
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
sub esp, 0x3c
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineMenuFiles
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x401ab0
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x401aba
cmp word [esi], 0
mov eax, esi
je 0x401acd
nop
add eax, 2
cmp word [eax], 0
jne 0x401a60
sub eax, esi
add eax, 2
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x401a6e

Function at 0x401b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
xor esi, esi
push ebx
mov ebx, edx
sub esp, 0x3c
movzx edx, word [edx]
test dx, dx
je 0x401bf2
mov dword [ebp - 0x20], edi
lea esi, [ebx + 2]
xor eax, eax
mov edi, ebx
lea esi, [esi]
mov dword [ebp - 0x1c], esi
mov ecx, 0x10
mov esi, eax
shr ax, 1
xor esi, edx
mov ebx, eax
xor bx, 0xa001
and esi, 1
cmovne eax, ebx
shr dx, 1
sub ecx, 1
jne 0x401bc0
mov esi, dword [ebp - 0x1c]
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x401bb8
mov ebx, edi
mov edi, dword [ebp - 0x20]
movzx esi, ax
mov edx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x1c], edx
call edx
mov dword [esp + 4], 0x2e
test eax, eax
lea ecx, [eax + 2]
cmovne ebx, ecx
mov dword [esp], ebx
mov edx, dword [ebp - 0x1c]
call edx
mov edx, eax
sub edx, ebx
sar edx, 1
test eax, eax
je 0x401c4e
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], str._04X__.s._d
call fcn.00401ae0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebx], 0
je 0x401c71
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401c60
sub eax, ebx
sar eax, 1
mov edx, eax
jmp 0x401c2a
xor edx, edx
jmp 0x401c2a
Function at 0x401d30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00401690
mov dword [ebp - 0x1c], eax
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [eax + eax*2]
lea eax, [eax + eax + 1]
call fcn.00401590
movzx edx, byte [edi]
mov esi, eax
test dl, dl
je 0x401e60
add edi, 1
xor ebx, ebx
lea esi, [esi]
lea eax, [edx - 0x22]
lea ecx, [esi + ebx]
cmp al, 0x1c
ja case.0x401d7d.1
movzx eax, al
jmp dword [eax*4 + 0x40d160]
mov byte [ecx], dl
add ebx, 1
lea esi, [esi]
movzx edx, byte [edi]
add edi, 1
test dl, dl
jne 0x401d70
add ebx, esi
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov byte [ebx], 0
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.gt_
mov dword [esp], ecx
call fcn.00401490
add ebx, eax
jmp 0x401d90
mov dword [esp + 4], str.lt_
mov dword [esp], ecx
call fcn.00401490
add ebx, eax
jmp 0x401d90
mov dword [esp + 4], str.apos_
mov dword [esp], ecx
call fcn.00401490
add ebx, eax
jmp 0x401d90
mov dword [esp + 4], str.amp_
mov dword [esp], ecx
call fcn.00401490
add ebx, eax
jmp 0x401d90
mov dword [esp + 4], str.quot_
mov dword [esp], ecx
call fcn.00401490
add ebx, eax
jmp 0x401d90
mov ebx, eax
jmp 0x401d9c

Function at 0x401e70
Capabilities:
Get process heap flags
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
mov eax, 0x800
push ebx
mov edi, dword fs:[0x18]
mov ebx, edi
sub esp, 0x4c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x800
jmp 0x401ec7
cmp eax, 0xea
jne 0x401f20
shl dword [ebp - 0x1c], 1
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
call fcn.00401590
mov dword [esp + 0x1c], 0
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x401e98
lea esp, [ebp - 0xc]
mov ebx, edi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
xor ebx, ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401f50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
cmp word [eax], 0
je 0x4020c0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401f68
sub eax, esi
sar eax, 1
lea eax, [eax*8 + 2]
call fcn.00401590
mov ebx, eax
movzx eax, word [esi]
test ax, ax
je 0x4020e0
add esi, 2
xor edx, edx
jmp 0x401fc7
lea ecx, [eax - 9]
cmp cx, 1
jbe 0x401ff8
lea esi, [esi]
add esi, 2
mov word [ebx + edx*2], ax
add edx, 1
movzx eax, word [esi - 2]
test ax, ax
je 0x40207e
lea ecx, [edx + edx]
lea edi, [ebx + ecx]
mov dword [ebp - 0x1c], edi
lea edi, [ebx + ecx + 2]
mov dword [ebp - 0x20], edi
cmp ax, 0x5c
je 0x402040
ja 0x402018
cmp ax, 0x3c
ja 0x402030
cmp ax, 0x1f
jbe 0x401fa0
lea ecx, [eax - 0x20]
mov edi, 0x180007dd
bt edi, ecx
jae 0x401fb0
mov edi, dword [ebp - 0x1c]
mov ecx, 0x5c
add edx, 2
mov word [edi], cx
mov edi, dword [ebp - 0x20]
mov ecx, 0x5c
mov word [edi], cx
jmp 0x401fb0
lea ecx, [eax - 0x60]
cmp cx, 0x1e
ja 0x401fb0
mov edi, 0x50000001
bt edi, ecx
jae 0x401fb0
jmp 0x401ff8
lea ecx, [eax - 0x3e]
cmp cx, 1
ja 0x401fb0
jmp 0x401ff8
mov eax, dword [ebp - 0x1c]
mov edi, 0x5c
add esi, 2
add edx, 4
mov word [eax], di
lea eax, [ebx + ecx + 2]
mov edi, 0x5c
mov word [eax], di
mov eax, 0x5c
mov word [ebx + ecx + 4], ax
mov eax, 0x5c
mov word [ebx + ecx + 6], ax
movzx eax, word [esi - 2]
test ax, ax
jne 0x401fc7
lea eax, [ebx + edx*2]
xor edx, edx
mov word [eax], dx
mov eax, ebx
call fcn.00401690
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
call fcn.00401590
mov ebx, eax
movzx eax, word [esi]
test ax, ax
jne 0x401f8f
lea esi, [esi]
nop
mov eax, ebx
jmp 0x402081
Function at 0x4020f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 1
push ebx
sub esp, 0x2c
mov dword [ebp - 0x24], edx
mov dword [esp + 4], eax
mov dword [esp], 0x40d1d4
call fcn.00401ae0
mov dword [ebp - 0x28], eax
mov dword [esp + 4], 0x40d1f0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40223b
mov eax, 0x1000
mov esi, 0x1000
call fcn.00401590
mov edi, eax
test edi, edi
je 0x402268
nop
xor ebx, ebx
jmp 0x4021b0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0xa
mov dword [esp], edi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
jne 0x402278
add esi, esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x4022e2
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, esi
sub eax, ebx
add ebx, edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fgets]
test eax, eax
jne 0x402158
mov edx, dword fs:[0x18]
mov dword [esp + 8], edi
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_feof]
test eax, eax
setne al
movzx eax, al
mov esi, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fclose]
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
xor esi, esi
jmp 0x40220b
mov byte [eax], 0
cmp byte [edi], 0x23
je 0x402150
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strchr]
mov ebx, eax
test eax, eax
je 0x402150
mov eax, 0x10
call fcn.00401590
mov byte [ebx], 0
mov dword [ebp - 0x20], eax
mov eax, edi
call fcn.00401600
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
lea eax, [ebx + 1]
call fcn.00401600
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebx + 4]
mov dword [edx + 4], eax
lea eax, [edx + 8]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov dword [ecx], eax
mov dword [ebx + 4], eax
jmp 0x402147
test byte [section..data], 2
jne 0x4022f8
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xrealloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401540
jmp 0x4022eb
Function at 0x402320
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegGetValueW]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x30], eax
call eax
sub esp, 0x1c
test eax, eax
jne 0x4023e4
mov eax, dword [ebp - 0x1c]
call fcn.00401590
mov dword [ebp - 0x38], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [ebp - 0x34], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub esp, 0x1c
test eax, eax
jne 0x4023c0
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
xor ecx, ecx
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret
Function at 0x4023f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x45c
cmp word [eax], 0
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x42c], 0x104
je 0x402590
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402420
sub eax, ecx
xor edx, edx
sar eax, 1
add eax, 0x21
cmp eax, 0x104
ja 0x40255c
lea ebx, [ebp - 0x428]
lea esi, [esi]
nop
movzx eax, word [edx + str.SoftwareWineFileOpenBlacklist_]
mov word [ebx + edx], ax
add edx, 2
test ax, ax
jne 0x402448
cmp word [ebp - 0x428], 0
mov edx, ebx
je 0x402479
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x402470
xor eax, eax
lea esi, [esi]
nop
movzx esi, word [ecx + eax]
mov word [edx + eax], si
add eax, 2
test si, si
jne 0x402480
lea eax, [ebp - 0x430]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x40255c
xor esi, esi
lea edi, [ebp - 0x220]
jmp 0x402502
mov ecx, edi
mov edx, ebx
mov eax, 0x80000001
call fcn.00402320
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x43c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x402570
mov dword [ebp - 0x42c], 0x104
add esi, 1
lea eax, [ebp - 0x42c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x4024d0
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
jmp 0x40243d
Function at 0x403040
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp - 0x1c]
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [sym.imp.shlwapi.dll_AssocQueryStringW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x30], ecx
call ecx
sub esp, 0x18
test eax, eax
js 0x403108
mov edx, dword [ebp - 0x1c]
lea eax, [edx + edx]
call fcn.00401590
mov dword [ebp - 0x38], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x34], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x30]
call ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub esp, 0x18
test eax, eax
js 0x4030e0
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esi, [esi]
xor ecx, ecx
jmp 0x4030cc
Function at 0x40b660
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b6d0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b737
xor ecx, ecx
xor edx, edx
jmp 0x40b719
cmp ax, 0x5c
jne 0x40b7a8
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b737
cmp ax, 9
je 0x40b725
cmp ax, 0x20
jne 0x40b700
test ecx, ecx
je 0x40b793
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b719
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40b7c8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408640
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b790
cmp ax, 0x20
je 0x40b790
jmp 0x40b737
cmp ax, 0x22
jne 0x40b729
and edx, 1
jne 0x40b729
xor ecx, 1
jmp 0x40b70d
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40b750
Function at 0x40b6d0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b6d0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b737
xor ecx, ecx
xor edx, edx
jmp 0x40b719
cmp ax, 0x5c
jne 0x40b7a8
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b737
cmp ax, 9
je 0x40b725
cmp ax, 0x20
jne 0x40b700
test ecx, ecx
je 0x40b793
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b719
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40b7c8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408640
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b790
cmp ax, 0x20
je 0x40b790
jmp 0x40b737
cmp ax, 0x22
jne 0x40b729
and edx, 1
jne 0x40b729
xor ecx, 1
jmp 0x40b70d
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40b750
Function at 0x402874
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
push esp
push dword [esp + 0x2c]
call fcn.00438db0
add esp, 8
or eax, eax
je 0x40288c
jmp 0x401512
popfd
popal
ret 4

Function at 0x403323
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4ddd98], 0
push ebx
push esi
mov esi, 0x4ddda0
jne 0x40334f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4dddb8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4ddd98], 1
push dword [0x4dddb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4033ec
push 0x14
push 8
push dword [0x4ddd30]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x403416
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4ddd9c]
test eax, eax
je 0x403391
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4ddd9c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x40341b
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4dddb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4ddd30]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x403416
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x407487
Capabilities:
Parse pe header

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

Function at 0x409f6a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4a5ca0
push str.FlsAlloc
push 0x1f
call fcn.00409c3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409f9e
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x409fa4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409fe8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4a5cc4
push str.FlsGetValue
push 0x21
call fcn.00409c3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a01f
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40a027
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4a5cd8
push str.FlsSetValue
push 0x22
call fcn.00409c3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a061
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]