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

Disassembly:
push 0xffffffffffffffff
push 0x42c128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
push 0x2e
mov ecx, dword [edi + 0x10]
add ecx, 0x50
call fcn.00415544
mov ecx, dword [edi + 0x10]
push eax
lea eax, [esp + 0x1c]
add ecx, 0x50
push eax
call fcn.00415413
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push edx
push bind
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40804b
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ebx
push ebx
push 0x47f484
push ecx
call esi
test eax, eax
jne 0x408040
mov edx, dword [0x47f64c]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.0041c12a
mov edx, dword [esp + 0x14]
push eax
push ebx
push ebx
push 0x47f484
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0041c179
cmp esi, ebx
jne 0x408033
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041bae2
push ecx
mov byte [esp + 0x34], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x47f474
call fcn.0041bddb
mov ecx, edi
mov byte [esp + 0x34], 1
call fcn.004060f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call fcn.0041bd6d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041bd6d
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x408420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42c240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x47f64c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov ebx, 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0041c2ab
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
je 0x4085c2
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x14]
add edx, 0x50
push edx
call fcn.0041be5a
push 0xa
lea ecx, [esp + 0x14]
call fcn.0041c1c1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4084b4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004032d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0041bcf8
jmp 0x40850f
lea edx, [esp + 0x2c]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.004154cc
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2c], 2
call fcn.004032d0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0041bd6d
inc esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00415413
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.0041be5a
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0041bd6d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408523
test al, 0x10
je 0x408537
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408475
jmp 0x4085c2
lea ecx, [esp + 0x14]
mov ebp, ebx
push ecx
mov ecx, edi
call fcn.00405bd0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x408558
push 0x3f
lea ecx, [esp + 0x18]
call fcn.0041c0fd
push 0x12e
mov ecx, edi
call fcn.00406000
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041bae2
push ecx
mov byte [esp + 0x2c], 4
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x47f2fc
call fcn.0041bddb
mov ecx, edi
mov byte [esp + 0x2c], bl
call fcn.004060f0
push 0x47f2b4
lea ecx, [esp + 0x30]
call fcn.0041bddb
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
mov byte [esp + 0x28], 5
call fcn.00405de0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0041bd6d
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0041bd6d
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041bd6d
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8

Function at 0x41aacd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41ab0f
call fcn.00428e15
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ab0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ab06
xor eax, eax
jmp 0x41ab17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ab1d
pop edi
pop esi
pop ebx
ret 4
Function at 0x40fa20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416442
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
push str.SoftwareAutoTester3_
lea edx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40fad0
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x14], 0
je 0x40fac4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x2c], 0
sete cl
mov byte [ebp - 0x18], cl
lea ecx, [ebp - 0x1c]
call fcn.0041437e
mov edx, dword [ebp - 0x18]
and edx, 0xff
test edx, edx
je 0x40fb1e
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x14], 0
je 0x40fb3f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x14], 0
je 0x40fb6a
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041437e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fbd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareAutoTester3
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], 0
je 0x40fc24
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 8], 0
jne 0x40fc57
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
je 0x40fc4b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x40fd00
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x30], 0
je 0x40fca9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0
jne 0x40fcdc
mov dword [ebp - 0x28], 0
cmp dword [ebp - 4], 0
je 0x40fcd0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x1c], 0
jne 0x40fd00
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x38], 0
cmp dword [ebp - 4], 0
je 0x40fd21
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 4], 0
je 0x40fd42
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10009e5f
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x12c]
push edi
mov edi, dword [esp + 0x13c]
je 0x10009fd9
and dword [esp + 0x10], 0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x10009eaa
sub ecx, edx
push 1
sar ecx, 1
lea eax, [ecx + 1]
xor edx, edx
push edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x24], eax
add eax, eax
push eax
push edx
push 0x78
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.10029a64
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10009f88
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
push eax
push dword [esp + 0x28]
push esi
push ecx
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x138]
test esi, esi
je 0x10009fd3
cmp esi, 2
jbe 0x10009f22
cmp esi, 7
jne 0x10009fd3
test ebx, ebx
jne 0x10009f41
xor eax, eax
push eax
push edi
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10009f8b
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov eax, ebx
shr eax, 1
push eax
push edi
push ecx
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push 1
xor ecx, ecx
push ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xb4]
push eax
push ebx
push ecx
push 0x78
lea ecx, [esp + 0x34]
call fcn.10029a64
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x10009f98
lea ecx, [esp + 0x1c]
call fcn.100089b8
push 0xe
pop esi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, esi
jmp 0x10009ff1
xor eax, eax
push eax
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x28]
push edi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push dword [esp + 0x10]
push ebx
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.100089b8
jmp 0x10009f8b
push ebx
jmp 0x10009f29
push ebx
push edi
push dword [esp + 0x140]
push dword [esp + 0x140]
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x118
ret 0x18
Function at 0x1000a463
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x94]
je 0x1000a4ff
push ebx
mov ecx, esi
push ebp
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000a499
push 1
sub ecx, edx
push ebx
sar ecx, 1
lea eax, [esp + 0x24]
push eax
lea ebp, [ecx*2 + 2]
push ebp
push ebx
push 0x78
lea ecx, [esp + 0x28]
call fcn.10029a64
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1000a4e1
xor eax, eax
push eax
push eax
push ebp
push ebx
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000a4e6
push 0xe
pop esi
jmp 0x1000a4f0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.100089b8
pop ebp
mov eax, esi
pop ebx
jmp 0x1000a507
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 8

Function at 0x1000a520
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0xa4]
je 0x1000a5b5
push ebp
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
lea eax, [edi + edi]
push eax
push 0
push 0x78
lea ecx, [esp + 0x28]
call fcn.10029a64
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000a5a2
lea eax, [edi + edi]
push eax
push ebp
push dword [esp + 0xa8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1000a5a7
push edi
push ebx
push 0xffffffffffffffff
push ebp
push eax
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000a5a7
mov esi, 0x8007000e
lea ecx, [esp + 0x10]
call fcn.100089b8
mov eax, esi
pop ebp
jmp 0x1000a5c5
push edi
push ebx
push dword [esp + 0xa4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 0x10
Function at 0x1000b115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2a
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x1000b26b
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b26a
push 0x1003a274
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.msvcr100.dll_strcat_s]
add esp, 0xc
test eax, eax
jne 0x1000b26a
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
cmp dword [0x10043820], eax
je 0x1000b1d1
push 0x8000
call edi
push str.USER32.DLL
mov esi, eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043da4], eax
call edi
mov eax, dword [0x10043da4]
test eax, eax
je 0x1000b1d1
push str.SendIMEMessageExA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10043d58], eax
test eax, eax
jne 0x1000b1d1
push dword [0x10043da4]
call ebx
and dword [0x10043da4], 0
push 0x8000
call edi
mov esi, eax
push str.IMM32.DLL
lea eax, [ebp - 0x10c]
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
call fcn.10029a64
test eax, eax
je 0x1000b268
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043d5c], eax
call edi
mov ecx, dword [0x10043d5c]
test ecx, ecx
je 0x1000b268
xor esi, esi
cmp dword [0x1003a068], esi
je 0x1000b268
xor eax, eax
mov edi, 0x1003a068
push dword [eax + 0x1003a06c]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [edi]
mov dword [ecx], eax
test eax, eax
je 0x1000b259
inc esi
mov eax, esi
shl eax, 3
lea edi, [eax + 0x1003a068]
cmp dword [edi], 0
je 0x1000b268
mov ecx, dword [0x10043d5c]
jmp 0x1000b22b
push dword [0x10043d5c]
call ebx
and dword [0x10043d5c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret
Function at 0x10016940
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.msvcr100.dll__read]
add esp, 0xc
ret 0xc

Function at 0x10017236
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 2
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.10029a64
push 2
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.10029a64
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcr100.dll_rename]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x100172bb
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
dec eax
dec eax
je 0x100172b2
sub eax, 0xb
je 0x100172ae
sub eax, 4
je 0x100172aa
dec eax
je 0x100172a6
push 5
jmp 0x100172b4
push 0x4a
jmp 0x100172b4
push 0x3a
jmp 0x100172b4
push 0x4b
jmp 0x100172b4
push 0x35
pop eax
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret 8
Function at 0x10017979
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x35
pop edi
test esi, esi
je 0x100179b4
cmp word [esi], 0
je 0x100179b4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100179a3
sub ecx, edx
cmp ecx, 0x104
jbe 0x100179ba
push edi
call fcn.1000c0de
push 1
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.10029a64
mov esi, dword [ebp + 0xc]
mov eax, esi
or eax, 0x27
cmp eax, 0x27
je 0x100179dd
push 5
call fcn.1000c0de
test esi, esi
jne 0x100179e6
mov esi, 0x80
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x10017a29
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10017a19
call esi
cmp eax, edi
je 0x10017a19
call esi
cmp eax, 0x57
je 0x10017a19
call esi
cmp eax, 0x13
jne 0x10017a1c
push 0x4b
pop edi
movzx eax, di
test eax, eax
je 0x10017a29
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10029dae
leave
ret 8
Function at 0x1001d8c4
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x24]
push esi
push eax
call sub.msvcr100.dll_memset
mov eax, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
cmp ax, 9
jbe 0x1001d8ff
push 5
call fcn.1000c0de
mov eax, dword [esp + 0x68]
push ebx
push ebp
test eax, eax
je 0x1001d91e
cmp word [eax], 8
jne 0x1001d91e
cmp dword [eax + 8], esi
jne 0x1001d91e
push esi
push esi
call dword [sym.imp.oleaut32.dll_SysReAllocStringLen]
jmp 0x1001d924
push eax
call fcn.10029a64
mov ebx, eax
test ebx, ebx
jne 0x1001d931
push 5
call fcn.1000c0de
cmp dword [0x10043820], esi
je 0x1001d9af
test ebx, ebx
jne 0x1001d941
mov eax, esi
jmp 0x1001d946
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push esi
push esi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1001d967
push ebp
call fcn.10008870
mov edi, eax
test edi, edi
jne 0x1001d971
push 0xe
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001d9c9
test ebx, ebx
jne 0x1001d979
mov eax, esi
jmp 0x1001d97e
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push ebp
push edi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.100088c0
jmp 0x1001d9c9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
pop ebp
pop ebx
test esi, esi
jne 0x1001da0d
dec edi
dec edi
je 0x1001d9f1
dec edi
je 0x1001d9f8
sub edi, 5
je 0x1001d9ff
sub edi, 6
je 0x1001d9ff
jmp 0x1001da06
push 0x35
call fcn.1000c0de
push 0x4c
call fcn.1000c0de
push 7
call fcn.1000c0de
push 5
call fcn.1000c0de
push 0x2710
push dword [esp + 0x14]
call dword [sym.imp.user32.dll_WaitForInputIdle]
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
fild dword [esp + 0x18]
pop edi
pop esi
fstp qword [esp]
fld qword [esp]
add esp, 0x5c
ret 8
Function at 0x10023608
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1b4]
push ebp
mov ebp, dword [esp + 0x1b4]
lea ecx, [esp + 4]
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.10029a64
test eax, eax
je 0x10023647
push 5
pop eax
jmp 0x1002373e
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push eax
push eax
push eax
xor edi, edi
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xdc]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x18]
push 1
push edi
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push 0x78
lea ecx, [esp + 0x40]
call fcn.10029a64
mov ebx, dword [esp + 0x2c]
test esi, esi
jne 0x10023718
test ebx, ebx
jne 0x100236c4
push 7
jmp 0x1002371a
push ebx
push dword [esp + 0x14]
call fcn.1000a463
test eax, eax
jne 0x10023718
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
inc eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push dword [esp + 0x2c]
call fcn.1000a5df
test eax, eax
je 0x100236b6
cmp eax, 0x103
jne 0x10023718
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023708
lea ecx, [esp + 0x28]
call fcn.100089b8
push 5
pop eax
jmp 0x1002373b
push dword [esp + 0x24]
push ebp
call fcn.10029a64
test eax, eax
je 0x10023730
jmp 0x1002372d
push 5
pop edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023730
test edi, edi
jne 0x10023730
push 5
pop edi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ac]
pop ebp
xor ecx, esp
call fcn.10029dae
add esp, 0x1ac
ret 8