joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b1a4
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x39a]
push ebx
push eax
mov edi, ecx
mov word [ebp + 0x398], bx
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x76]
push ebx
push eax
mov word [ebp - 0x78], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
push edi
mov edi, 0x104
push edi
lea eax, [ebp + 0x398]
push eax
mov byte [ebp - 0x79], 1
mov dword [ebp - 0x80], ebx
call fcn.0040b0b9
test eax, eax
jge 0x40b217
xor eax, eax
jmp 0x40b380
lea eax, [ebp + 0x398]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40b220
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 + 0x396]
cmp word [eax], 0x5c
jne 0x40b23e
mov word [eax], bx
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b2fa
test al, 0x10
jne 0x40b37d
push esi
lea eax, [ebp + 0x192]
push ebx
push eax
mov word [ebp + 0x190], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
xor esi, esi
cmp esi, ebx
lea eax, [ebp + 0x398]
jne 0x40b298
push eax
push 0x405138
lea eax, [ebp + 0x190]
push edi
push eax
call fcn.0040b092
add esp, 0x10
jmp 0x40b2af
push esi
push eax
push 0x405148
lea eax, [ebp + 0x190]
push edi
push eax
call fcn.0040b092
add esp, 0x14
test eax, eax
jl 0x40b210
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b2d2
inc esi
cmp esi, 0x400
jl 0x40b276
cmp esi, 0x400
je 0x40b210
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b210
cmp word [ebp + 0x398], 0x5c
lea edi, [ebp + 0x398]
jne 0x40b317
cmp word [ebp + 0x39a], 0x5c
jne 0x40b317
mov byte [ebp - 0x79], bl
cmp word [ebp + 0x398], bx
lea esi, [ebp - 0x78]
je 0x40b37d
jmp 0x40b34b
cmp ax, 0x5c
jne 0x40b344
mov word [esi], ax
inc esi
inc esi
inc edi
inc edi
cmp byte [ebp - 0x79], bl
jne 0x40b353
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 3
sete byte [ebp - 0x79]
jmp 0x40b34b
mov word [esi], ax
inc esi
inc esi
inc edi
inc edi
movzx eax, word [edi]
cmp ax, bx
jne 0x40b325
lea eax, [ebp - 0x78]
push eax
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b378
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b210
cmp word [edi], bx
jne 0x40b34b
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fdc4
add ebp, 0x5a4
leave
ret
Function at 0x40bd4c
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x210
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
mov esi, ecx
call dword [0x415018]
push 0xfffffffffffffff5
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
mov dword [ebp - 0x7c], eax
je 0x40bdb3
cmp eax, 0xffffffff
je 0x40bdb3
cmp eax, 7
je 0x40bdb3
xor eax, eax
mov byte [ebp - 0x74], 0
lea edi, [ebp - 0x73]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 0x74]
push eax
push 0x405250
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
cmp byte [ebp - 0x74], 0x31
sete al
jmp 0x40bdb5
xor eax, eax
test eax, eax
je 0x40be03
test ebx, ebx
je 0x40bdcc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40bdd0
xor esi, esi
jmp 0x40bde9
lea esi, [eax + eax]
mov eax, esi
call fcn.00412c40
mov eax, esp
push dword [ebp - 0x78]
push esi
push ebx
push eax
call fcn.0040898e
mov esi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40be2d
and word [ebp - 0x70], 0
push 0x100
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x19c]
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
lea eax, [ebp - 0x70]
push eax
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x84]
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0040fdc4
add ebp, 0x194
leave
ret 4
Function at 0x40bfe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c0]
push ebx
push esi
push edi
mov esi, 0x402b80
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], 1
xor esi, esi
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
jge 0x40c042
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xf
jl 0x40c01e
jmp 0x40c113
cmp dword [ebp - 0x68], ebx
push 4
pop edi
je 0x40c0e0
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
push dword [ebp - 0x68]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c0e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x405260
push dword [ebp - 0x68]
mov dword [ebp - 0x78], edi
call esi
test eax, eax
jne 0x40c09c
cmp dword [ebp - 0x70], edi
jne 0x40c09c
cmp dword [ebp - 0x7c], ebx
sete al
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x405280
push dword [ebp - 0x68]
mov dword [ebp - 0x80], 0x208
call esi
test eax, eax
jne 0x40c0d2
cmp dword [ebp - 0x70], 1
jne 0x40c0d2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], ebx
je 0x40c113
mov ecx, edi
mov edi, 0x402b80
lea esi, [ebp - 0x64]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
push ebx
je 0x40c100
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
jmp 0x40c10a
push ebx
push ebx
push 2
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fdc4
add ebp, 0x1b8
leave
ret 4

Function at 0x40cc6c
Capabilities:
Parse pe header

Disassembly:
test esi, esi
jne 0x40cc73
xor al, al
ret
cmp dword [esi + 0x10], 0
jne 0x40cca4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40cc70
cmp word [eax], 0x5a4d
jne 0x40cc70
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cc70
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 0x50]
add ecx, eax
mov dword [esi + 0x10], ecx
cmp dword [esi + 0xc], edi
ja 0x40ccb2
cmp edi, dword [esi + 0x10]
jae 0x40ccb2
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x40ce50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 9
pop ecx
push 0x403d50
mov esi, edx
push 0x104
mov ebx, eax
mov dword [0x415c00], 0x4161e4
mov edi, 0x415e14
rep movsd dword es:[edi], dword [esi]
push 0x415c0c
mov dword [0x415c04], 0x403dd0
mov dword [0x415c08], ebx
call fcn.0040b0b9
push 0x40cd78
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40ce45
mov dword [0x4161b0], eax
call sub.MSVCR80.dll__set_purecall_handler
mov dword [esp], 0x405304
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
cmp eax, esi
je 0x40cf5e
push 0x405530
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40cf5e
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cf5e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x405550
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x40cf26
cmp dword [ebp - 4], esi
jne 0x40cf55
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x405590
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x40cf46
cmp dword [ebp - 4], esi
jne 0x40cf4c
mov dword [0x4155a4], esi
push 0x40cd07
push esi
call dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ed9c
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
cmp esi, ecx
je 0x40eea8
mov eax, dword [edi + 0xc8]
cmp eax, ecx
je 0x40eea8
cmp dword [ebx], ecx
je 0x40eea8
push esi
push ecx
push ecx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40ee03
cmp dword [edi + 0xb0], eax
je 0x40eea8
push dword [edi + 0x94]
mov eax, edi
call fcn.0040e55f
jmp 0x40eea8
push dword [ebx]
lea ecx, [ebp - 0x90]
call fcn.004078b4
cmp dword [ebp - 0x90], 0
je 0x40ee77
mov eax, dword [ebp - 0x90]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ee22
sub eax, ecx
inc eax
push eax
push dword [ebp - 0x90]
call sub.MSVCR80.dll__strlwr_s
mov ebx, dword [ebp - 0x90]
pop ecx
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40ee77
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x90], eax
je 0x40ee72
push dword [ebp - 0x90]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor eax, eax
inc eax
jmp 0x40eeaa
cmp dword [edi + 0xb0], 0
je 0x40ee8d
push dword [edi + 0x98]
mov eax, edi
call fcn.0040e55f
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x90], eax
je 0x40eea8
push dword [ebp - 0x90]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040fdc4
leave
ret
Function at 0x40f838
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 8], 0x104
jge 0x40f84c
mov eax, dword [esp + 4]
and word [eax], 0
jmp 0x40f872
push esi
mov esi, dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push edi
push 0x1a
push edi
call esi
test eax, eax
je 0x40f870
push dword [esp + 0xc]
push edi
push edi
push 5
push edi
call esi
pop edi
pop esi
ret 8

Function at 0x40f927
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x415010]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40fa5a
mov dword [esp + 0x20], esi
or dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], esi
mov ebx, 0x406528
mov edi, 0x406538
mov esi, 0x103
push 0x406520
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x5c]
push dword [esp + 0x28]
push edi
push esi
push eax
call fcn.0040b092
add esp, 0x1c
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x40f9dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40fa16
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0xf
jmp 0x40fa12
mov edx, dword [esp + 0x10]
or edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
jne 0x40f9f8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x40fa16
cmp dword [esp + 0x14], ecx
jb 0x40fa16
ja 0x40fa06
cmp dword [esp + 0x10], eax
jbe 0x40fa16
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jl 0x40fa4b
push 0x406520
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x5c]
push dword [esp + 0x28]
push edi
push esi
push eax
call fcn.0040b092
add esp, 0x1c
push 0
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xf
jl 0x40f991
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040fdc4
mov esp, ebp
pop ebp
ret 8

Function at 0x40fdc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415010]
jne 0x40fdce
repz ret
jmp fcn.00410128
Function at 0x4104ec
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041042b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41053b
cmp dword [ebp - 0x1c], 5
jb 0x410553
jmp 0x41054f
cmp dword [ebp - 0x10], 1
jne 0x410553
cmp dword [ebp - 0x1c], 4
ja 0x41054f
jne 0x410553
cmp dword [ebp - 0x18], 0
jbe 0x410553
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4013f4
call fcn.00409236
test eax, eax
jge 0x410574
mov byte [0x41622c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040fdc4
add ebp, 0x78
leave
ret

Function at 0x4108c6
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x80004005
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x4108eb
cmp edi, 0x104
jl 0x410947
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x402898
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410947
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
push esi
push esi
push 0x402890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x410947
cmp dword [ebp + 0x10], esi
je 0x410945
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410947
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x410996
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x10]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push SysReAllocString
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410a1e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], edi
jne 0x410a1e
cmp dword [ebp + 8], 4
jne 0x410a1e
cmp dword [ebp - 8], 4
jne 0x410a1e
mov eax, dword [ebp - 0xc]
cmp eax, 0xfffffffd
jne 0x410a19
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [esi + 0x40], eax
jmp 0x410a25
mov dword [esi + 0x40], 0x409
pop edi
pop esi
leave
ret 0xc
Function at 0x410a2b
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2ec]
sub esp, 0x36c
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x2e8], eax
push ebx
push esi
mov esi, dword [ebp + 0x2f4]
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x80], edi
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
xor edi, edi
inc edi
push edi
push 0x104
lea eax, [ebp + 0x1e4]
push eax
call fcn.004108c6
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jl 0x410b59
push dword [esi + 0xc]
lea eax, [ebp + 0x1e4]
push eax
push 0x4028d0
lea eax, [ebp - 0x24]
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x4000020
push edi
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x1e4]
push eax
mov dword [ebp - 0x2c], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x410b59
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x4e20
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x410b07
push 1
push dword [esi + 4]
call edi
test eax, eax
jne 0x410b48
and dword [ebp - 0x28], eax
and dword [ebp - 0x2c], eax
jmp 0x410b48
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
je 0x410b59
cmp eax, 0x80
je 0x410b50
push 1
push dword [esi]
call edi
test eax, eax
je 0x410b30
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x410b3b
push 1
push dword [esi + 4]
call edi
test eax, eax
jne 0x410b3f
and dword [ebp - 0x28], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x28], 0
jne 0x410aeb
jmp 0x410b59
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x2e8]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fdc4
add ebp, 0x2ec
leave
ret 4
Function at 0x411405
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x411491
cmp dword [ebp - 4], ebx
je 0x411491
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push 0x402a98
push dword [ebp - 4]
mov dword [ebp + 0xc], ebx
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
cmp edi, ebx
jne 0x411491
cmp dword [ebp + 0xc], ebx
je 0x411491
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call esi
cmp edi, ebx
je 0x411483
cmp edi, 0xea
jne 0x41148d
cmp dword [ebp + 8], ebx
je 0x41148d
xor eax, eax
inc eax
jmp 0x411493
xor eax, eax
jmp 0x411493
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
push esi
call sub.MSVCR80.dll_wcscpy_s
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x411625
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41164d
push 0x40515c
push dword [esp + 0xc]
push esi
call sub.MSVCR80.dll_wcscat_s
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
jne 0x411698
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x411661
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 - 4]
movzx ecx, word [eax]
cmp cx, 0x73
je 0x411686
cmp cx, 0x53
je 0x411686
xor eax, eax
jmp 0x41169b
and word [eax + 2], 0
push esi
mov word [eax], 0x5c
call edi
cmp eax, 0xffffffff
je 0x411682
xor eax, eax
inc eax
pop edi
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x402ba0
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
call sub.MSVCR80.dll_swprintf_s
add esp, 0x18
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4116e4
cmp dword [ebp + 0x14], esi
je 0x4116e1
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [ebp + 0x14]
mov esi, eax
jmp 0x4116e4
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 0x1c
Function at 0x4117db
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
mov eax, dword [ebp + 0x1f0]
and dword [ebp - 0x70], 0
push 0x402bc8
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1f4]
push 0x402bbc
push dword [ebp + 0x200]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1fc]
push edi
mov dword [ebp - 0x7c], eax
call sub.MSVCR80.dll_swprintf_s
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x74], eax
je 0x411920
push esi
test byte [ebp - 0x6c], 0x10
je 0x4118ed
mov ecx, 0x402bb8
lea eax, [ebp - 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41187f
test dx, dx
je 0x41187b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41187f
add eax, 4
add ecx, 4
test dx, dx
jne 0x411859
xor eax, eax
jmp 0x411884
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4118ed
mov ecx, 0x402bb0
lea eax, [ebp - 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4118b6
test dx, dx
je 0x4118b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4118b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411890
xor eax, eax
jmp 0x4118bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4118ed
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR80.dll__wtol
mov esi, eax
test esi, esi
pop ecx
je 0x4118ed
push edi
push dword [ebp + 0x200]
push dword [ebp + 0x1f8]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push ebx
push esi
call fcn.0041169f
test eax, eax
jne 0x411904
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411847
jmp 0x411910
mov eax, dword [ebp - 0x7c]
mov dword [eax], esi
mov dword [ebp - 0x70], 1
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x70], 0
pop esi
jne 0x411924
and word [edi], 0
mov ecx, dword [ebp + 0x1e4]
mov eax, dword [ebp - 0x70]
xor ecx, ebp
call fcn.0040fdc4
add ebp, 0x1e8
leave
ret 0x14

Function at 0x411a7e
Capabilities:
Load windows common language runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x402c84
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x411aad
mov eax, 0x80004005
jmp 0x411b1f
push 0x402c70
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x411acb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x8000ffff
jmp 0x411b1f
push esi
push 0x4054bc
push 0x40549c
push 0
push 0
push 0
call eax
mov esi, eax
test esi, esi
jge 0x411b0d
push 0xffffffffffffffff
push esi
push 0x402bd0
lea eax, [ebp - 0x104]
push 0x80
push eax
call sub.MSVCR80.dll_swprintf_s
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 1
je 0x411b16
test esi, esi
jge 0x411b1d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fdc4
leave
ret