joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb20
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414cb2
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push ebx
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40eb5e
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
push esi
push edi
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [esp + 0x10]
lea esi, [ebp + 0x74]
push eax
mov ecx, esi
call fcn.0040adf0
cmp eax, 0xffffffff
jne 0x40eb83
xor edi, edi
jmp 0x40ebaa
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, ecx
shr eax, 2
lea edi, [eax*4]
mov edx, esi
sub ecx, edi
mov edi, dword [edx + 8]
cmp edi, eax
ja 0x40eba1
sub eax, edi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test edi, edi
je 0x40ec31
push ebx
push 0x4197d4
call fcn.00401000
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
push ebx
jne 0x40ebef
push 0x4197a4
call fcn.00401000
add esp, 8
xor eax, eax
jmp 0x40ece1
push 0x419770
call fcn.00401000
add esp, 8
push ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.0040e8e0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
mov dword [esp + 0x28], 0xffffffff
call sub.MFC71.DLL_operator_new
mov edi, eax
add esp, 4
test edi, edi
je 0x40ec5d
lea ecx, [edi + 4]
call dword [0x416194]
lea ecx, [edi + 8]
call dword [0x416194]
jmp 0x40ec5f
xor edi, edi
push ebx
lea ecx, [edi + 4]
mov dword [edi], ebp
call dword [0x4161b8]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [edi + 8]
call dword [0x4161b8]
lea ecx, [esp + 0x14]
push ecx
push 4
push edi
push 0x40b080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov dword [esp + 0x28], 3
call fcn.0040d3a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0x14]
call fcn.0040d320
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x412f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
push edi
lea ecx, [esi + 8]
call dword [0x4162e0]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x30]
call fcn.004083e0
mov word [esp + 0xc], 8
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x24], 0
je 0x412fe7
mov edi, dword [eax]
test edi, edi
jne 0x412ff1
mov dword [esp + 0x14], 0
jmp 0x413012
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x413012
push 0x8007000e
call fcn.00413f90
cmp dword [esi], 0
mov byte [esp + 0x24], 1
jne 0x413026
push 0x80004003
call fcn.00413f90
mov ecx, dword [esi]
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.004120d0
mov bx, ax
neg bx
lea ecx, [esp + 0x10]
sbb bl, bl
push ecx
inc bl
mov byte [esp + 0x2c], 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x413057
push eax
call fcn.00413f90
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x28], 0xffffffff
je 0x41306c
call fcn.00409230
test bl, bl
pop ebx
je 0x413086
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
cmp dword [esi], 0
jne 0x413095
push 0x80004003
call fcn.00413f90
mov ecx, dword [esi]
lea edx, [esp + 8]
push edx
call fcn.00412470
mov eax, dword [eax]
mov edi, dword [esi + 4]
cmp edi, eax
je 0x4130c1
test eax, eax
mov dword [esi + 4], eax
je 0x4130b7
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test edi, edi
je 0x4130c1
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 8]
test eax, eax
je 0x4130cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4139f8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x419d80
call fcn.00413bf8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413a38
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413a38
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413a50
cmp eax, 0x20b
je 0x413a3d
mov dword [ebp - 0x1c], ebx
jmp 0x413a64
cmp dword [ecx + 0x84], 0xe
jbe 0x413a38
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x413a5e
cmp dword [ecx + 0x74], 0xe
jbe 0x413a38
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x41d69c], 0xffffffff
or dword [0x41d6a0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41d644]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x41d640]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41d698], eax
call fcn.00413dac
call fcn.00413e4c
cmp dword [0x41d458], ebx
jne 0x413ac4
push fcn.00413e4c
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00413e3a
push 0x41d05c
push 0x41d058
call sub.MSVCR71.dll__initterm
push 0x413df0
call fcn.004138da
mov eax, dword [0x41d63c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41d638]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x413b18
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41d054
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x413b96
cmp al, bl
je 0x413b42
cmp dword [ebp - 0x20], ebx
jne 0x413b96
mov al, byte [esi]
cmp al, bl
je 0x413b52
cmp al, 0x20
ja 0x413b52
inc esi
mov dword [ebp - 0x24], esi
jmp 0x413b42
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x413b6e
movzx eax, word [ebp - 0x54]
jmp 0x413b71
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00414348
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x413b8e
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x413beb
cmp al, 0x22
jne 0x413ba5
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x413bb8
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x413b30
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00413c33
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x42eb40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
or ebp, 0xffffffff
jmp 0x42eb62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42eb69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42eb58
mov eax, 1
add ebx, ebx
jne 0x42eb7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42eb70
jne 0x42eb8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42eb70
xor ecx, ecx
sub eax, 3
jb 0x42eba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ec12
mov ebp, eax
add ebx, ebx
jne 0x42ebab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ebb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ebdc
inc ecx
add ebx, ebx
jne 0x42ebc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ebbd
jne 0x42ebd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ebbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ebfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ebed
jmp 0x42eb5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ebfc
add edi, ecx
jmp 0x42eb5e
pop esi
mov edi, esi
mov ecx, 0xb60
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ec1a
cmp byte [edi], 9
jne 0x42ec1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42ec1f
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42ec8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b848]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b8e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ec4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b8ec]
or eax, eax
je 0x42ec88
mov dword [ebx], eax
add ebx, 4
jmp 0x42ec69
call dword [esi + 0x3b8f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42ecbf
cmp al, 0xef
ja 0x42ecb2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42ec94
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42eca1
popal
jmp 0x41595c
Function at 0x401a20
Capabilities:
Get token privileges

Disassembly:
sub esp, 0x60c
push ebx
push ebp
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x21c]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push 0x20008
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401b0b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x220]
push 0x400
push edx
push 3
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401b0b
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x1c]
xor ebp, ebp
rep stosd dword es:[edi], eax
cmp dword [esp + 0x21c], esi
jbe 0x401b0b
mov edi, dword [esp + 0x620]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
lea esi, [esp + 0x220]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push 0
mov dword [esp + 0x24], 0x200
call ebx
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00403100
add esp, 8
test eax, eax
je 0x401afb
mov eax, dword [esp + 0x21c]
inc ebp
add esi, 0xc
cmp ebp, eax
jb 0x401ab6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60c
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60c
ret
Function at 0x401b20
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
mov edi, 0x40aeb8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x40afbc
rep stosd dword es:[edi], eax
mov edi, 0x40ada4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov eax, ecx
mov esi, edi
mov edi, 0x40aeb8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Success.log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40aeb8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0xc0000000
push 0x40aeb8
call ebx
cmp eax, 0xffffffff
mov dword [0x40aeac], eax
jne 0x401bd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40aeac], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, 0x40ada4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40afbc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Failure.log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40afbc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0xc0000000
push 0x40afbc
call ebx
cmp eax, 0xffffffff
mov dword [0x40aeb0], eax
jne 0x401c72
mov eax, dword [0x40aeac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40aeb8
mov dword [0x40aeac], esi
mov dword [0x40aeb0], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ecx, [esp + 0x10]
push esi
push ecx
mov edi, str._Success__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x40aeac]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
dec ecx
mov dword [esp + 0x18], esi
push ecx
push str._Success__r_n
push edx
call ebx
lea eax, [esp + 0x10]
push esi
push eax
mov edi, str._Failure__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [0x40aeb0]
push str._Failure__r_n
push ecx
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push ebx
xor ebx, ebx
test edx, edx
je 0x401d7d
mov eax, dword [esp + 0xc]
push ebp
push esi
cmp eax, 4
push edi
ja case.default.0x401ceb
jmp dword [eax*4 + 0x401d80]
mov ebx, dword [0x40aeac]
mov edi, str._______Directory_Removed_Successfully_r_n
jmp 0x401d31
mov ebx, dword [0x40aeb0]
mov edi, str._______File_present__Parent_directory_could_not_be_removed_r_n
jmp 0x401d31
mov ebx, dword [0x40aeb0]
mov edi, str._______DRU.INI_File_is_missing_r_n
jmp 0x401d31
mov ebx, dword [0x40aeb0]
mov edi, str._______Keys_under_the_section_are_missing_r_n
jmp 0x401d31
mov ebx, dword [0x40aeb0]
mov edi, str._______DRU.INI_File_is_empty_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], 0
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4023b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov edx, dword [ecx + 0x188]
push ebx
push ebp
push esi
xor eax, eax
xor esi, esi
test edx, edx
push edi
mov dword [esp + 0x10], ecx
jne 0x4024ee
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4023f7
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x98
ret
mov eax, dword [0x409190]
test eax, eax
je 0x4023e7
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
cmp dword [eax + 0x409190], edi
jne 0x402476
cmp dword [eax + 0x409194], ebp
jne 0x402476
cmp dword [eax + 0x409198], ebx
jne 0x402476
mov ecx, dword [eax + 0x4091a4]
test ecx, ecx
je 0x4024c5
cmp ecx, 2
jne 0x40244e
and edx, 0xffff
cmp edx, dword [eax + 0x40919c]
jb 0x40245e
cmp edx, dword [eax + 0x4091a0]
jbe 0x4024c5
cmp ebp, 0xa
jne 0x402476
cmp edi, 4
jne 0x402476
cmp ebx, 1
jne 0x402476
mov ecx, 0xbb8
cmp edx, ecx
jae 0x4024a0
inc esi
mov eax, esi
and eax, 0xffff
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x409190]
test eax, eax
jne 0x402410
pop edi
pop esi
pop ebp
mov dword [esp + 0x14], edx
mov eax, 0xfffffff8
pop ebx
add esp, 0x98
ret
mov eax, dword [0x40919c]
xor esi, esi
cmp eax, ecx
mov dword [esp + 0x20], edx
je 0x4024c9
inc esi
mov eax, esi
and eax, 0xffff
lea edx, [eax + eax*4]
cmp dword [edx*8 + 0x40919c], ecx
jne 0x4024af
jmp 0x4024c9
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push 0x80
push ecx
mov word [eax + 0x180], si
add eax, 0x100
push eax
call fcn.00403522
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x402500
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x184], ebx
jne 0x40251e
pop edi
pop esi
mov eax, 0xfffffff7
pop ebx
add esp, 8
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push ebx
push 0xf003f
push 1
push ebx
push ebx
push esi
push 0x80000002
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402556
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
add esp, 8
ret
xor eax, eax
mov ecx, dword [esp + 0xc]
mov ax, word [esi + 0x180]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0x4091a8]
push eax
push 4
push ebx
push str.OS_ID
push ecx
call edi
test eax, eax
jne 0x4025d3
mov ax, word [esi + 0x180]
mov ecx, dword [esp + 0xc]
push 4
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0x4091ac]
push eax
push 1
push ebx
push str.OS_Name
push ecx
call edi
test eax, eax
jne 0x4025d3
mov ax, word [esi + 0x180]
mov ecx, dword [esp + 0xc]
push 4
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0x4091b2]
push eax
push 1
push ebx
push str.HP_Mapped
push ecx
call edi
test eax, eax
je 0x4025ed
push esi
push 0x80000002
mov edi, 0xfffffffa
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x18c], 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 8
ret

Function at 0x402610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402637
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402640
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
ret
test al, 0x10
mov eax, 1
jne 0x402642
mov eax, edi
pop edi
pop esi
ret
Function at 0x405a5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a720
cmp edx, dword [eax]
je 0x405a7f
add eax, 8
inc ecx
cmp eax, 0x40a7b0
jl 0x405a70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a720]
jne 0x405bad
mov eax, dword [0x40b0e0]
cmp eax, 1
je 0x405b87
test eax, eax
jne 0x405ab0
cmp dword [0x40a3f4], 1
je 0x405b87
cmp edx, 0xfc
je 0x405bad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405ae7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403dc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405b2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403dc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409674
push edi
call fcn.00403800
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403940
lea eax, [ebp - 0xa0]
push 0x409654
push eax
call fcn.00403940
push dword [esi + 0x40a724]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407cd5
add esp, 0x2c
pop edi
jmp 0x405bad
lea eax, [ebp + 8]
lea esi, [esi + 0x40a724]
push 0
push eax
push dword [esi]
call fcn.00403dc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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 0x40aa10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521d2a
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x616718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x128], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x12c], esi
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi], 1
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x124], 0x114
call dword [0x53d194]
cmp dword [ebp - 0x114], 2
jne 0x40aaf5
cmp dword [ebp - 0x120], 6
jne 0x40aaf5
cmp dword [ebp - 0x11c], 2
jne 0x40aaf5
mov ecx, esi
call fcn.00410dd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051f6a1
mov esp, ebp
pop ebp
ret 4