joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4118d6
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x41d0e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x218], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x278]
push 0x44
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
add esp, 0xc
xor ecx, ecx
stosd dword es:[edi], eax
push 2
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 0x104]
mov eax, edi
mov dword [ebp - 0x220], edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b21c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x411ac3
push 0x104
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x411abb
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ecx, esi
call fcn.0040862a
cmp eax, edi
jae 0x411abb
push 0xffffffffffffffff
push esi
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x411abb
xor eax, eax
mov edi, eax
push dword [edi + 0x401884]
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edx, eax
mov dword [ebp - 0x21c], edx
pop ecx
pop ecx
test edx, edx
je 0x411a41
mov esi, dword [edi + 0x401884]
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x214], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x218]
jne 0x4119d3
sub ecx, dword [ebp - 0x214]
sar ecx, 1
mov dword [ebp - 0x214], ecx
mov ecx, edx
call fcn.0040862a
mov ecx, eax
lea edx, [esi + 2]
sub ecx, dword [ebp - 0x214]
mov dword [ebp - 0x214], ecx
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x218]
jne 0x411a08
push ecx
mov ecx, dword [ebp - 0x21c]
sub esi, edx
sar esi, 1
lea eax, [ecx + esi*2]
push eax
push ecx
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x21c]
add esp, 0xc
mov ecx, dword [ebp - 0x214]
xor edx, edx
mov word [eax + ecx*2], dx
add edi, 4
cmp edi, 0xc
jb 0x4119a7
push 0xffffffffffffffff
push dword [0x401884]
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x411abb
lea eax, [ebp - 0x230]
xor esi, esi
push eax
lea eax, [ebp - 0x278]
push eax
push esi
push esi
push 0x4000000
push 1
call fcn.0040549e
push eax
push ecx
call fcn.0040549e
pop ecx
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411abb
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b570
leave
ret
Function at 0x413f63
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 8
mov edi, ecx
pop ebx
push ebx
push 0x403148
mov esi, dword [edi + 8]
push esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x413fc6
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x114], ecx
mov eax, dword [esi + 8]
mov dword [edi + 0x118], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x120], eax
mov dword [edi + 0x110], ebx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x11c], eax
mov dword [edi + 0x128], 1
jmp 0x4140a4
push ebx
push 0x403154
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4140d1
mov eax, dword [esi + 0xc]
lea edx, [edi + 0x90]
mov dword [edi + 0x114], eax
mov eax, dword [esi + 8]
push 4
pop ebx
mov dword [edi + 0x118], eax
mov dword [edi + 0x110], ebx
mov eax, dword [esi + 0x20]
mov dword [edi + 0x124], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
add ecx, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
push 0x20
mov dword [edi + 0x11c], eax
pop esi
mov eax, dword [ecx]
add ecx, ebx
mov dword [edx], eax
add edx, ebx
sub esi, 1
jne 0x414020
push 0xfffffffffffffff8
pop eax
sub eax, edi
lea ecx, [edi + 0x10]
mov dword [ebp - 8], eax
mov edi, eax
push 0x1f
pop eax
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0x80]
cmp edx, dword [ecx + 0x84]
jae 0x414074
mov ebx, dword [ecx]
lea eax, [edi + ecx]
add edx, eax
inc ebx
mov esi, edx
and esi, 3
je 0x414064
push 4
pop eax
sub eax, esi
add edx, eax
cmp edx, dword [ecx + 0x84]
jb 0x414050
mov eax, dword [ebp - 4]
push 4
mov dword [ecx], ebx
pop ebx
add ecx, ebx
sub eax, 1
mov dword [ebp - 4], eax
jne 0x414040
mov edi, dword [ebp - 0xc]
xor eax, eax
mov edx, dword [edi + 0xc]
cmp edx, 2
jb 0x414098
lea ecx, [edi + 0x14]
dec edx
add eax, dword [ecx]
add ecx, ebx
sub edx, 1
jne 0x41408f
mov ecx, dword [edi + 0x114]
mov dword [edi + 0x120], eax
cmp ecx, 0xe
ja 0x4140d1
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [edi + 0x114]
mov esi, eax
mov ecx, edi
mov dword [edi + 0x12c], esi
call fcn.0041455e
cmp esi, eax
jne 0x4140d1
xor eax, eax
inc eax
jmp 0x4140d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414712
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x41d7dc]
test edi, edi
je 0x4147ba
push dword [ebp + 0x10]
mov esi, edx
sar edx, 4
and esi, 0xf
inc edx
movzx ebx, dx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x414760
mov eax, 0x400
cmp word [ebp + 0x10], ax
je 0x4147ba
push eax
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4147ba
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4147ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x4147ba
test esi, esi
je 0x41478b
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x41477d
mov ebx, dword [ebp + 8]
movzx edi, word [ecx]
test ebx, ebx
je 0x4147b6
mov eax, dword [ebp + 0xc]
dec eax
cmp edi, eax
jl 0x41479f
mov edi, eax
lea esi, [edi + edi]
add ecx, 2
push esi
push ecx
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov eax, edi
jmp 0x4147bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415c20
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x41d0e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x403160
push 0x80000000
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415ce5
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415cd4
cmp dword [ebp - 0x10c], 2
lea eax, [ebp - 0x108]
mov byte [ebp - 5], bl
jne 0x415cc3
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x415cd4
push eax
mov edx, edi
mov ecx, esi
call fcn.00415bb4
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x415ce7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b570
leave
ret
Function at 0x4161ab
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x41d0e8]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
setne byte [esp + 0x134]
test eax, eax
je 0x41625c
cmp dword [esp + 0x1c], 6
jb 0x41625c
lea eax, [esp + 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0x403270
xor esi, esi
mov dword [esp + 0x1c], edi
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416258
lea eax, [esp + 0x14]
mov dword [esp + 0x10], edi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 4
push eax
push edi
push edi
push 0x4032e4
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41624e
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and esi, eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41625e
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.0041b570
mov esp, ebp
pop ebp
ret
Function at 0x417aa4
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41d0e8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.00416815
push 0x403560
lea ecx, [esp + 0x1c]
call fcn.00416771
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x417b24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417b5a
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.004176a2
mov edi, eax
jmp 0x417b5a
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0041798f
mov ebx, eax
test ebx, ebx
jns 0x417b4c
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00417683
mov edi, ebx
jmp 0x417b5a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x417b64
push esi
call fcn.00417720
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b570
mov esp, ebp
pop ebp
ret 8
Function at 0x41ae16
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41d0e8]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 0x13]
push ebx
push esi
push edi
push eax
movzx eax, byte [ecx + 0x12]
mov edi, 0x100
push eax
movzx eax, byte [ecx + 0x11]
xor ebx, ebx
push eax
movzx eax, byte [ecx + 0x10]
push eax
movzx eax, byte [ecx + 0xf]
push eax
movzx eax, byte [ecx + 0xe]
push eax
movzx eax, byte [ecx + 0xd]
mov esi, dword [ebp + 8]
push eax
movzx eax, byte [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xa]
push eax
movzx eax, word [ecx + 8]
push eax
push dword [ecx + 4]
lea eax, [ebp - 0x208]
mov dword [ebp - 0x414], 0x208
push 0x4031e8
push edi
push eax
mov dword [ebp - 0x410], ebx
call fcn.0040864b
add esp, 0x38
test eax, eax
js 0x41af8b
lea eax, [ebp - 0x208]
push eax
push 0x403890
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.0040864b
add esp, 0x10
test eax, eax
js 0x41af8b
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push ecx
lea edx, [ebp - 0x408]
mov ecx, 0x80000002
call fcn.00405108
test eax, eax
jne 0x41b019
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
push ebx
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x410], 2
mov edi, eax
mov dword [ebp - 0x418], edi
mov edx, 0x104
jne 0x41afb0
push 0x208
call fcn.0041b21c
mov edi, eax
mov dword [esp], 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41aff0
cmp eax, 0x104
jae 0x41aff0
mov ecx, edi
call fcn.0040862a
mov ecx, 0x104
cmp eax, ecx
jb 0x41af64
mov edx, ecx
mov ecx, esi
push edi
call fcn.0040e6cb
jmp 0x41af73
push eax
push edi
push ecx
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov eax, ebx
push edi
test eax, eax
je 0x41af9e
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b570
leave
ret 8
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov edi, dword [ebp - 0x418]
mov edx, 0x104
pop ecx
test esi, esi
je 0x41afc7
push edx
push esi
call dword [sym.imp.msvcrt.dll_wcsnlen]
mov edx, 0x104
pop ecx
pop ecx
cmp eax, edx
jne 0x41afc9
mov eax, ebx
test eax, eax
je 0x41b000
push 0x22
pop ecx
cmp word [esi], cx
jne 0x41b000
cmp word [esi + eax*2 - 2], cx
jne 0x41b000
lea ecx, [eax - 2]
lea eax, [esi + 2]
cmp ecx, edx
jb 0x41aff3
push eax
mov ecx, esi
call fcn.0040e6cb
jmp 0x41b000
push edi
jmp 0x41af78
push ecx
push eax
push edx
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41b019
mov ecx, esi
call fcn.0040862a
mov ebx, eax
mov eax, ebx
jmp 0x41af8d
Function at 0x41baa4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41c8c8
call fcn.0041bd58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41bb04
cmp eax, 0xffffffff
je 0x41bb04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41bafd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41bafd
cmp edx, 0x10000000
jae 0x41bafd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41bafa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41bb60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41bb9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41bb96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41bba0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41bb86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41bc70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41bca1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41bca1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41bca1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push esi
push edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x1000113b
mov ecx, dword [ebx + esi + 0x1c]
lea eax, [ebx + esi]
mov edx, dword [eax + 0x24]
add ecx, ebx
mov esi, dword [eax + 0x18]
add edx, ebx
mov dword [esp + 0x20], ecx
xor edi, edi
mov ecx, dword [eax + 0x20]
add ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], esi
test esi, esi
je 0x1000113b
nop word [eax + eax]
mov edx, dword [ecx + edi*4]
xor eax, eax
mov cl, byte [edx + ebx]
add edx, ebx
test cl, cl
je 0x1000112c
nop
ror eax, 0xc
movsx esi, cl
cmp cl, 0x61
jl 0x1000111e
add eax, 0xffffffe0
mov cl, byte [edx + 1]
inc edx
add eax, esi
test cl, cl
jne 0x10001110
mov esi, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
je 0x10001152
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, esi
jb 0x10001100
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10001991
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [edx + eax*4]
mov eax, dword [esp + 0x28]
add edx, ebx
cmp edx, eax
jbe 0x10001227
add eax, dword [esp + 0x24]
cmp edx, eax
jae 0x10001227
xor ebx, ebx
xor eax, eax
nop
mov cl, byte [edx + eax]
cmp cl, 0x2e
je 0x10001194
mov byte [esp + eax + 0x30], cl
inc eax
cmp eax, 0x104
jb 0x10001180
lea ecx, [eax + 4]
mov dword [esp + eax + 0x30], 0x6c6c642e
cmp ecx, 0x104
jae 0x1000123e
lea esi, [edx + 1]
mov byte [esp + ecx + 0x30], bl
add esi, eax
lea edi, [esp + 0x30]
mov al, byte [esp + 0x30]
xor ecx, ecx
test al, al
je 0x100011d9
ror ecx, 0xc
movsx edx, al
cmp al, 0x61
jl 0x100011cf
add ecx, 0xffffffe0
mov al, byte [edi + 1]
inc edi
add ecx, edx
test al, al
jne 0x100011c2
call section..text
mov edi, eax
test edi, edi
je 0x10001210
mov al, byte [esi]
xor edx, edx
test al, al
je 0x10001207
nop dword [eax]
ror edx, 0xc
movsx ecx, al
cmp al, 0x61
jl 0x100011fd
add edx, 0xffffffe0
mov al, byte [esi + 1]
inc esi
add edx, ecx
test al, al
jne 0x100011f0
mov ecx, edi
call fcn.10001090
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10001991
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x13c]
mov eax, edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001991
mov esp, ebp
pop ebp
ret
call fcn.10001ac1
int3
Function at 0x10004dc7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007b2c
push ebx
push esi
call fcn.10007a58
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100079ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007ad9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007b2b
push edi
push eax
call fcn.10008a4a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007af9
call fcn.10006534
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007b2a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100079ec
add esp, 0x20
test eax, eax
jne 0x10007b18
push edi
call fcn.10006534
jmp 0x10007b20
push ebx
call fcn.10006534
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007d99
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f4e8
push 0x1000f4e0
push str.FlsAlloc
push 0x1f
call fcn.10007cb5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007dcd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e108]
call esi
jmp 0x10007dd3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007e17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f4f8
push 0x1000f4f0
push str.FlsGetValue
push 0x21
call fcn.10007cb5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007e4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007e56
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f500
push 0x1000f4f8
push str.FlsSetValue
push 0x22
call fcn.10007cb5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007e90
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e108]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d53d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d53d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ax, word [0x406188]
mov cl, byte [0x40618a]
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SoftwareElaborate_BytesVirtualCloneDriveSettings
push 0x80000001
mov word [esp + 0x14], ax
mov byte [esp + 0x16], cl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401069
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0
push str.LocaleName
push edx
mov dword [esp + 0x20], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 4]
push ecx
push 0x408900
push str._smanual_sindex.html
push 0x408a08
call esi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push 0x408a08
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4010bb
test eax, eax
je 0x4010bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0xc
ret
push 0x408900
push str._smanualenindex.html
push 0x408a08
call esi
add esp, 0xc
pop esi
add esp, 0xc
ret

Function at 0x401440
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4061c0
call fcn.0040226c
push 8
call fcn.00402560
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x408b5c], esi
jne 0x401474
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x408b58], esi
mov al, byte [ebp + 0x10]
mov byte [0x408b54], al
cmp dword [ebp + 0xc], edi
jne 0x4014be
cmp dword [0x409328], edi
je 0x4014ae
mov eax, dword [0x409324]
sub eax, 4
mov dword [0x409324], eax
cmp eax, dword [0x409328]
jb 0x4014ae
mov eax, dword [eax]
cmp eax, edi
je 0x40148f
call eax
jmp 0x40148f
push 0x408020
mov eax, 0x40801c
call fcn.004013be
pop ecx
push 0x408028
mov eax, 0x408024
call fcn.004013be
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4014ef
cmp dword [ebp + 0x10], edi
jne 0x4014fd
mov dword [0x408b5c], esi
push dword [ebp + 8]
call fcn.0040137c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4014fc
push 8
call fcn.004024ab
pop ecx
ret
call fcn.004022a7
ret