joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fa79
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0040db50
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x429888]
je 0x41fb80
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41fae9
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x41faf0
cmp ebx, ebx
jne 0x41faf0
xor eax, eax
jmp 0x41fb83
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x41fafd
mov byte [esi + 0x20], bl
jmp 0x41fb11
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c120
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c120
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c120
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x41fb6c
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x41fb80
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x420785
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x435ff0]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x4207d4
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4207d4
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4207e0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040c82d
leave
ret 8
Function at 0x4213ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x435ff0]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x42143a
push dword [ebp + 8]
call fcn.00423148
mov esi, eax
test esi, esi
je 0x421462
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x421462
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x429040
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040c82d
leave
ret 0xc

Function at 0x421d66
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x435ff0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x421dc4
push 0x42803c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040d63f
add esp, 0x10
cmp eax, 0xffffffff
je 0x421dd8
cmp eax, esi
jae 0x421dd8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x421dda
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x421d8f
jmp 0x421ddb
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040c82d
leave
ret
Function at 0x421dfb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x435ff0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x421e9d
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x421f9f
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x421f4d
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421fa0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421f42
cmp dword [ebp - 0x24], 1
jne 0x421f42
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x42804c
push eax
call fcn.0040d696
add esp, 0xc
cmp eax, 1
jne 0x421f42
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421fa0
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x421fa0
lea ecx, [ebp - 0x18]
push ecx
push 0x421de5
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x421fa0
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x421fc6
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00421d66
cmp eax, ebx
pop ecx
pop ecx
jne 0x421fc8
inc edi
cmp edi, esi
jl 0x421faf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040c82d
leave
ret 4
Function at 0x421fd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x435024
je 0x422093
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42207b
mov esi, dword [ebx + 4]
jmp 0x422075
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x422065
cmp dword [ebp - 0xc], 4
jne 0x422065
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42205d
or dword [eax + 0x9c], ecx
jmp 0x422065
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x422029
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42200c
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x422481
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x425ff8
call fcn.0040d6cc
sub esp, 0x11c
mov eax, dword [0x435ff0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42257a
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x42254e
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401c00
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00422481
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401490
test bl, bl
jne 0x42254e
or dword [ebp - 4], 0xffffffff
jmp 0x4224bf
cmp esi, 0x103
je 0x42255e
cmp esi, 0x3f2
jne 0x42256e
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040c82d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4237af
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4237e4
cmp edi, dword [esi + 0xc]
jge 0x4237e4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4237e4
cmp edi, dword [eax + 8]
jge 0x4237e4
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4237e6
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4238ea
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42391e
jmp fcn.00418a70
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42398f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x423a88
cmp eax, dword [edi + 0xc]
jge 0x423a88
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4239e0
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x423a71
cmp dword [ebp + 0xc], ebx
je 0x423a71
jmp 0x423a0a
push 0x10
call fcn.0042367b
cmp eax, ebx
je 0x4239f6
mov ecx, eax
call fcn.004238e1
mov esi, eax
jmp 0x4239f8
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x423a21
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x423a31
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x423a43
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00418a70
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040db50
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x423a83
cmp ecx, dword [esi + 8]
jge 0x423a83
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x423a89
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x423b47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423b75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423b93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423ab1
jmp 0x423b93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423b93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423ab1
test edi, edi
mov eax, edi
jne 0x423b7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438c24]
test ecx, ecx
je 0x423c46
jmp 0x423b46
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b008]
jne 0x40100a
repz ret
jmp fcn.00401828

Function at 0x406403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403380
and dword [ebp - 4], 0
cmp dword [0x41d250], 0
mov ebx, eax
jne 0x4064b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406565
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406565
push eax
call fcn.0040330e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d250], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d254], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d258], eax
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x41d260], eax
test eax, eax
je 0x4064b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x41d25c], eax
mov eax, dword [0x41d25c]
cmp eax, ebx
je 0x40650c
cmp dword [0x41d260], ebx
je 0x40650c
push eax
call fcn.00403389
push dword [0x41d260]
mov esi, eax
call fcn.00403389
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40650c
test edi, edi
je 0x40650c
call esi
test eax, eax
je 0x406503
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406503
test byte [ebp - 0xc], 1
jne 0x40650c
or dword [ebp + 0x10], 0x200000
jmp 0x406545
mov eax, dword [0x41d254]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406545
mov eax, dword [0x41d258]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d250]
call fcn.00403389
pop ecx
test eax, eax
je 0x406565
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406567
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417a40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x512dfc]
push esi
push edi
mov edi, dword [0x512c44]
mov esi, eax
cmp eax, 0x5dd
jne 0x417a7d
push 0
lea eax, [ebp - 0x404]
push eax
push str.tiwugowe
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41c000]
call fcn.00417900
cmp dword [0x512dfc], 0x2f
jne 0x417a98
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00417940
add esp, 8
cmp dword [0x512dfc], 0x568
pop edi
pop esi
jne 0x417ac4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x401971
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
test esi, esi
push edi
mov edi, 0x40a248
je 0x4019bd
push ebx
xor ebx, ebx
mov eax, 0x1000000
cmp esi, eax
ja 0x401990
mov eax, esi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x4019ba
test ecx, ecx
je 0x4019ba
test esi, esi
ja 0x401985
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401a5c
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401afb
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call fcn.00406310
add esp, 0xc
cmp word [esi], bx
je 0x401adc
push edi
lea edi, [ebp - 0x208]
sub edi, esi
cmp word [esi], 0x5c
jne 0x401ac9
cmp word [esi - 2], 0x3a
je 0x401ac9
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401ac9
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ax, word [esi]
mov word [edi + esi], ax
inc esi
inc esi
cmp word [esi], bx
mov word [edi + esi], bx
jne 0x401a9d
pop edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401afb
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebx
leave
ret
Function at 0x403aca
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x403ad2
mov dword [ecx*4 + 0x40b248], eax
inc ecx
cmp ecx, 0x100
jb 0x403acd
pop esi
ret

Function at 0x40434c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x404494
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x404384
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x404389
inc esi
cmp esi, dword [ebp - 8]
jb 0x40437b
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x404475
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x404408
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x4043b5
cmp cl, 0xff
jne 0x404437
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, 5
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x404448
movzx edi, byte [edx + 0x40191c]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x4043f8
cmp bl, 0xff
jne 0x404445
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x4043d0
dec ecx
shl edx, cl
and edx, 7
je 0x4043a2
movzx ecx, byte [edx + 0x40191c]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x401914], 0
mov cl, byte [ebx + 4]
je 0x404434
test cl, cl
je 0x404434
cmp cl, 0xff
jne 0x4043a2
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x404376
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x404376
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x406640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x406553
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
pop esi
jne 0x40666f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x407b33
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push 0x10
push 0x409050
call fcn.00408fe4
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push esi
push esi
push 0x4075d4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407b95
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
push 0x4016a0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407b95
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004077b1
mov dword [ebp - 0x20], eax
jmp 0x407bad
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407bec
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
jne 0x407c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x407c51
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x407c06
push edi
mov ecx, esi
call fcn.00407be0
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x407c50
mov bl, 1
jmp 0x407c74

Function at 0x407df4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x118
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00406310
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407e48
cmp dword [ebp - 0x118], 6
jne 0x407e48
cmp dword [ebp - 0x114], 0
jne 0x407e48
xor eax, eax
inc eax
cmp byte [ebp - 2], al
je 0x407e4a
xor eax, eax
leave
ret