joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bd0
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x40f154
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x104
push 0x40f050
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x40ef4c
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x104
push 0x40f258
push 0
call esi
mov eax, dword [0x40f564]
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x402c3c
push 0x104
push 0x40f460
push eax
call esi
push 0x40f460
call edi
add esp, 4
push 0x40f258
call edi
push 0x40f258
call fcn.00402c80
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40f35c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x402db0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402e58
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402e58
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0
push eax
push esi
call fcn.00402d30
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push str.TEMP
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea eax, [esp + 8]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
call esi
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x402e70
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00402ca0
add esp, 4
mov esi, eax
push esi
push 0
push 1
call ebx
test eax, eax
je 0x402eb4
push 0
push eax
call ebp
test eax, eax
je 0x402eb4
test esi, esi
je 0x402ebb
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402e84
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x6b31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006b3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006b3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006b3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006b3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6b3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6b3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6c587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6b3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6b3c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401abc
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401b72
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4e85cc
call sub.KERNEL32.DLL_WaitForSingleObject
cmp byte [0x4e804d], 0
je 0x401aea
push 0x4e85cc
call sub.KERNEL32.DLL_WinExec
mov eax, 0x4e85ec
call fcn.00401480
mov eax, 0x4e85fc
call fcn.00401480
mov eax, 0x4e8628
call fcn.00401480
push 0xff8
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x4e8624], eax
cmp dword [0x4e8624], 0
je 0x401b51
mov eax, 3
mov edx, dword [0x4e8624]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401b27
mov eax, 0x4e860c
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x4e8618], eax
mov byte [0x4e85c4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b79
cmp byte [0x4e804d], 0
je 0x401b71
push 0x4e85cc
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x401b80
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4e85c4], 0
je 0x401c5d
xor edx, edx
push ebp
push 0x401c56
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4e804d], 0
je 0x401bb2
push 0x4e85cc
call sub.KERNEL32.DLL_WinExec
mov byte [0x4e85c4], 0
mov eax, dword [0x4e8624]
push eax
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [0x4e8624], eax
mov ebx, dword [0x4e85ec]
jmp 0x401be5
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov ebx, dword [ebx]
cmp ebx, 0x4e85ec
jne 0x401bd3
mov eax, 0x4e85ec
call fcn.00401480
mov eax, 0x4e85fc
call fcn.00401480
mov eax, 0x4e8628
call fcn.00401480
mov eax, dword [0x4e85e4]
test eax, eax
je 0x401c2b
mov edx, dword [eax]
mov dword [0x4e85e4], edx
push eax
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4e85e4]
test eax, eax
jne 0x401c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401c5d
cmp byte [0x4e804d], 0
je 0x401c4b
push 0x4e85cc
call sub.KERNEL32.DLL_WriteFile
push 0x4e85cc
call sub.KERNEL32.DLL_lstrcpyA
ret
pop ebx
pop ebp
ret
Function at 0x4021a8
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4e85c4], 0
jne 0x4021c5
call fcn.00401abc
test al, al
je 0x4021cd
cmp ebx, 0x7ffffff8
jle 0x4021d7
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40232b
xor ecx, ecx
push ebp
push 0x402324
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4e804d], 0
je 0x4021f8
push 0x4e85cc
call sub.KERNEL32.DLL_WinExec
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402208
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4022a7
mov eax, ebx
test eax, eax
jns 0x40221d
add eax, 3
sar eax, 2
mov edx, dword [0x4e8624]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4022a7
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402258
mov eax, ebx
test eax, eax
jns 0x402247
add eax, 3
sar eax, 2
mov ecx, dword [0x4e8624]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x40227e
mov ecx, ebx
test ecx, ecx
jns 0x402261
add ecx, 3
sar ecx, 2
mov edi, dword [0x4e8624]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4e85b4]
sub ebx, 4
add dword [0x4e85b8], ebx
call fcn.00404034
jmp 0x40232b
cmp ebx, dword [0x4e861c]
jg 0x4022f9
sub dword [0x4e861c], ebx
cmp dword [0x4e861c], 0xc
jge 0x4022cb
add ebx, dword [0x4e861c]
xor eax, eax
mov dword [0x4e861c], eax
mov eax, dword [0x4e8620]
add dword [0x4e8620], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4e85b4]
sub ebx, 4
add dword [0x4e85b8], ebx
call fcn.00404034
jmp 0x40232b
mov eax, ebx
call fcn.004020b4
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40232b
cmp byte [0x4e804d], 0
je 0x402323
push 0x4e85cc
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402338
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4e85c8], eax
cmp byte [0x4e85c4], 0
jne 0x402370
call fcn.00401abc
test al, al
jne 0x402370
mov dword [0x4e85c8], 8
mov dword [ebp - 4], 8
jmp 0x4024d1
xor ecx, ecx
push ebp
push 0x4024ca
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4e804d], 0
je 0x402391
push 0x4e85cc
call sub.KERNEL32.DLL_WinExec
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4023ac
mov dword [0x4e85c8], 9
jmp 0x4024a1
dec dword [0x4e85b4]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4e85b8], eax
test bl, 1
je 0x40240c
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x4023dc
test edx, 0x80000003
je 0x4023eb
mov dword [0x4e85c8], 0xa
jmp 0x4024a1
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402403
mov dword [0x4e85c8], 0xa
jmp 0x4024a1
add ebx, edx
mov esi, eax
call fcn.00401c60
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x4e8620]
jne 0x40244c
sub dword [0x4e8620], ebx
add dword [0x4e861c], ebx
cmp dword [0x4e861c], 0x3c00
jle 0x40243d
call fcn.00401f50
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00404034
jmp 0x4024d1
mov edx, dword [eax]
test dl, 2
je 0x40246f
and edx, 0x7ffffffc
cmp edx, 4
jge 0x40246a
mov dword [0x4e85c8], 0xb
jmp 0x4024a1
or dword [eax], 1
jmp 0x402498
mov eax, edi
cmp dword [eax + 4], 0
je 0x402482
cmp dword [eax], 0
je 0x402482
cmp dword [eax + 8], 0xc
jge 0x40248e
mov dword [0x4e85c8], 0xb
jmp 0x4024a1
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401c60
mov edx, ebx
mov eax, esi
call fcn.00401ec8
mov eax, dword [0x4e85c8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4024d1
cmp byte [0x4e804d], 0
je 0x4024c9
push 0x4e85cc
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40366c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e5020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403704
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4036e4
xor eax, eax
push ebp
push 0x4036dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403720
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
ret
mov ax, word [0x4e5020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e5020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4043d0
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x404431
cmp word [0x4e8220], 0xd7b2
jne 0x4043f9
cmp dword [0x4e8228], 0
jbe 0x4043f9
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e5070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GlobalAddAtomA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404458
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GlobalAddAtomA
pop edx
ret
cmp byte [0x4e5030], 0
jne 0x40444d
push 0
push 0x4e5068
push 0x4e5070
push 0
call sub.KERNEL32.DLL_GetLocaleInfoA
pop edx
ret

Function at 0x4046f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
push 0
mov eax, dword [0x4e85c0]
push eax
call sub.KERNEL32.DLL_ResumeThread
pop ebp
ret 4

Function at 0x405a00
Capabilities:
Clear file content

Disassembly:
add esp, 0xffffffe4
push 0x1c
lea edx, [esp + 4]
push edx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
cmp dword [esp + 0x10], 0x1000
jne 0x405a20
mov eax, dword [esp + 4]
jmp 0x405a22
xor eax, eax
add esp, 0x1c
ret
Function at 0x405ab4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x405c48
call sub.KERNEL32.DLL_LeaveCriticalSection
mov esi, eax
test esi, esi
je 0x405b1c
push 0x405c58
push esi
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x405b1c
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405b1c
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
jmp 0x405c3e
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405b5c
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405c3e
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00405aa0
mov esi, eax
cmp byte [esi], 0
je 0x405c3e
lea eax, [esi + 1]
call fcn.00405aa0
mov esi, eax
cmp byte [esi], 0
je 0x405c3e
jmp 0x405b62
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
jmp 0x405c21
lea eax, [esi + 1]
call fcn.00405aa0
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405c3e
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov esi, eax
cmp esi, 0xffffffff
je 0x405c3e
push esi
call sub.KERNEL32.DLL_GlobalFree
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ReadFile
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405c3e
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ReadFile
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x405b80
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c6c
Capabilities:
Extract resource via kernel32 functions
Query or enumerate registry key
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_InitializeCriticalSection
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e9c
push 0x80000001
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405cef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e9c
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405cef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb8
push 0x80000001
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x405d78
xor eax, eax
push ebp
push 0x405d71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ab4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x405d56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ed8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x405d56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_LockResource
push eax
call sub.KERNEL32.DLL_GlobalUnlock
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e92
cmp byte [ebp - 0xd], 0
jne 0x405dbf
cmp byte [ebp - 0x12], 0
je 0x405e92
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ReadFile
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dd8
dec ebx
cmp byte [ebx], 0x2e
je 0x405de7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e24
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_MultiByteToWideChar
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
jne 0x405e92
cmp byte [ebp - 0xd], 0
je 0x405e92
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_MultiByteToWideChar
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
jne 0x405e92
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_MultiByteToWideChar
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ceea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404668
lea eax, [ebp - 8]
call fcn.00404ae0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a90
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ced4
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a90
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ceb7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cefc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ceb7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ced4
mov eax, dword [ebp - 0x10]
call fcn.0040279c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cef1
lea eax, [ebp - 8]
call fcn.004045d0
ret

Function at 0x40df00
Capabilities:
Create thread

Disassembly:
mov edx, dword [eax + 0x18]
push edx
mov eax, dword [eax + 0x10]
push eax
call sub.KERNEL32.DLL_CreateThread
ret

Function at 0x40df10
Capabilities:
Create thread

Disassembly:
mov edx, dword [eax + 0x18]
push edx
mov eax, dword [eax + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
ret

Function at 0x40e1ac
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push edx
call sub.KERNEL32.DLL_TlsSetValue
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40e21e
push dword fs:[eax]
mov dword fs:[eax], esp
fnstcw word [ebp - 2]
xor eax, eax
push ebp
push 0x40e200
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a90
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e207
fnclex
fldcw word [ebp - 2]
ret
Function at 0x414950
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp dword [0x4e8824], 0
je 0x414972
cmp bx, 0x100
jb 0x414972
cmp bx, 0x7ff
jbe 0x414976
xor eax, eax
jmp 0x414978
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x4149ff
push 0x4e8828
call fcn.00406a34
xor eax, eax
push ebp
push 0x4149f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e8824]
call fcn.004057c8
movzx edi, bx
mov edx, edi
sub edx, 0x100
cmp eax, edx
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4149e0
mov eax, dword [0x4e8824]
mov eax, dword [eax + edi*4 - 0x400]
mov dword [esi], eax
cmp dword [esi], 0
je 0x4149d7
mov eax, dword [esi]
cmp eax, dword [0x4e532c]
jne 0x4149db
xor eax, eax
jmp 0x4149dd
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4149ff
push 0x4e8828
call sub.KERNEL32.DLL_GetCommandLineA
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x414a08
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x414ade
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x4e8828
call fcn.00406a34
xor eax, eax
push ebp
push 0x414ac1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e8824]
call fcn.004057d0
mov esi, eax
test esi, esi
jl 0x414aa9
inc esi
xor edi, edi
mov eax, dword [0x4e8824]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x414aa5
cmp ebx, dword [0x4e532c]
je 0x414aa5
lea edx, [ebp - 0x110]
mov eax, dword [ebx]
call fcn.0040374c
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10]
call fcn.00404834
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00408824
test al, al
je 0x414aa5
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov byte [ebp - 9], 1
jmp 0x414aa9
inc edi
dec esi
jne 0x414a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414ac8
push 0x4e8828
call sub.KERNEL32.DLL_GetCommandLineA
ret

Function at 0x417b34
Capabilities:
Accept command line arguments

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetCommandLineA
ret

Function at 0x418b3c
Capabilities:
Accept command line arguments

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetCommandLineA
ret

Function at 0x41ec18
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, eax
push ebx
mov eax, dword [0x4e8854]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x41ec30
call fcn.0041ec0c
pop ebx
ret