joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48a500]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c993
cmp byte [ebx], 0xa
jne 0x41c993
or byte [eax + edi + 0x28], 4
jmp 0x41c998
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ca96
mov al, byte [edx]
cmp al, 0x1a
je 0x41ca78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c9c7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c9ec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c9f6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c9a9
jmp 0x41ca96
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ca73
cmp dword [ebp - 0xc], 0
je 0x41ca73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48a500]
test byte [eax + edi + 0x28], 0x48
je 0x41ca4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ca38
mov byte [esi], dl
jmp 0x41ca49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48a500]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ca96
cmp byte [ebp - 1], 0xa
jne 0x41ca5c
cmp esi, ebx
jne 0x41ca5c
mov byte [esi], 0xa
jmp 0x41ca95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ca96
mov byte [esi], 0xd
jmp 0x41ca95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48a500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ca92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ca96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ca9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x48a500]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cae2
cmp word [esi], dx
jne 0x41cae2
or byte [edi + eax + 0x28], 4
jmp 0x41cae7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cc3a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cc1a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cb29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cb5f
cmp eax, edx
jae 0x41cb6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cb01
jmp 0x41cc3a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cc16
cmp dword [ebp - 0x14], 0
je 0x41cc16
mov eax, dword [ebx*4 + 0x48a500]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cbee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cbb7
mov word [esi], cx
jmp 0x41cbea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48a500]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48a500]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48a500]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cc3a
pop ebx
cmp word [ebp - 4], bx
jne 0x41cbff
cmp esi, dword [ebp + 0xc]
jne 0x41cbff
mov word [esi], bx
jmp 0x41cc37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cc3a
push 0xd
jmp 0x41cc33
mov ecx, dword [ebx*4 + 0x48a500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cc31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cc3a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4014c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x14], 0
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401515
xor eax, eax
jmp 0x4015dc
mov esi, esp
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40153c
xor eax, eax
jmp 0x4015dc
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4015c1
cmp dword [ebp + 0x14], 0
jne 0x401580
mov esi, esp
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov byte [ebp - 0x14], 1
jmp 0x4015b8
mov esi, esp
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov edx, dword [ebp + 0x18]
cmp dword [edx], eax
jl 0x4015b8
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x14], 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.004015f0
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 0x14]
and eax, 0xff
pop edi
pop esi
pop ebx
add esp, 0x54
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x402500
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov esi, esp
lea eax, [ebp - 4]
push eax
push 0x402550
call dword [sym.imp.USER32.dll_EnumWindows]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x402b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404aa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea edi, [ebp - 0x80]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_492
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0x105
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
push 0x105
call sub.MFC42D.DLL_Ordinal_711
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov esi, esp
mov edx, dword [ebp - 0x20]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x105
jb 0x402bf1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.MFC42D.DLL_Ordinal_721
add esp, 4
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
call sub.MFC42D.DLL_Ordinal_711
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov esi, esp
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_736
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call sub.MFC42D.DLL_Ordinal_721
add esp, 4
mov dword [ebp - 0x20], 0
jmp 0x402c37
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42D.DLL_Ordinal_485
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_684
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x80
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x40100f
Capabilities:
Set registry value

Disassembly:
jmp 0x4012a0
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20006
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4012c4
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, edx
push esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012d0
sub eax, esi
push eax
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
pop esi
pop ecx
ret

Function at 0x40101e
Capabilities:
Read .ini file

Disassembly:
jmp 0x401120
push ecx
push esi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4011a2
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x4011a2
push 0x42efa8
push 0xfa
push 0x42eb68
push str.undefined
push str.Msg_UnsupportedOS
push 0x42ed04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x31
push str.Alert
push 0x42eb68
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x40119d
push 0
call fcn.00405951
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x401023
Capabilities:
Create process on windows

Disassembly:
jmp 0x401f90
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00405be0
mov eax, dword [esp + 0x68]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x58
ret
mov ecx, dword [esp + 4]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 4]
pop esi
add esp, 0x58
ret
Function at 0x401037
Capabilities:
Read .ini file
Read file on windows

Disassembly:
jmp 0x404930
push esi
push edi
push 0x428c5c
push str.license.txt
call fcn.0040726a
mov edi, eax
add esp, 8
test edi, edi
je 0x404a0e
push 2
push 0
push edi
call fcn.00407121
push edi
call fcn.00407029
push edi
mov esi, eax
call fcn.00406dc6
push esi
call fcn.00406cfc
add esp, 0x18
mov dword [0x42eed4], eax
test eax, eax
jne 0x404995
call fcn.00406a7e
add eax, 0x40
push eax
push str.Memory_error
call fcn.0040696f
add esp, 8
push 2
call fcn.00405951
push edi
mov esi, eax
call fcn.00406907
add esp, 4
test eax, eax
jne 0x4049cd
push edi
push 1
push 1
push esi
call fcn.004068ea
inc esi
add esp, 0x10
cmp byte [esi], 0xa
jne 0x4049c0
mov byte [esi], 0xa
inc esi
mov byte [esi], 0xd
dec esi
push edi
call fcn.00406907
add esp, 4
test eax, eax
je 0x4049a4
push 0
push 0x401019
push 0
push 0x7c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call fcn.004065b1
mov eax, dword [0x42eed4]
push eax
call fcn.004064ac
add esp, 8
cmp dword [0x42f0d4], 0
je 0x404a46
call fcn.0040103c
pop edi
xor eax, eax
pop esi
ret
push 0x42efa8
push 0xfa
push 0x42eb68
push str.undefined
push str.License_Missing_Message
push 0x42ed04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x30
push str.Error
push 0x42eb68
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
ret
Function at 0x40106e
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x401360
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20119
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013b8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4013b8
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x405bd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d664]
jne 0x405bda
repz ret
jmp fcn.0040ba47

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x407dc4
call fcn.00407cbd
mov dword [eax], esi
call fcn.00407caa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00407714
add esp, 0x14
push 0x16
pop eax
jmp 0x407e19
test dword [ebp + 0xc], 0xfffffff9
jne 0x407da0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407cd0
pop ecx
call fcn.00407caa
mov eax, dword [eax]
jmp 0x407e19
test al, 0x10
jne 0x407e17
test al, 1
je 0x407e17
test byte [ebp + 0xc], 2
je 0x407e17
call fcn.00407cbd
mov dword [eax], 5
call fcn.00407caa
mov dword [eax], 0xd
jmp 0x407de8
xor eax, eax
pop esi
pop ebp
ret

Function at 0x410bb0
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.00407ec0
and dword [ebp - 4], 0
cmp dword [0x43b8d4], 0
mov ebx, eax
jne 0x410c61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410d12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410d12
push eax
call fcn.00407e4e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b8d4], eax
call esi
push eax
call fcn.00407e4e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43b8d8], eax
call esi
push eax
call fcn.00407e4e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43b8dc], eax
call esi
push eax
call fcn.00407e4e
pop ecx
mov dword [0x43b8e4], eax
test eax, eax
je 0x410c61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407e4e
pop ecx
mov dword [0x43b8e0], eax
mov eax, dword [0x43b8e0]
cmp eax, ebx
je 0x410cb9
cmp dword [0x43b8e4], ebx
je 0x410cb9
push eax
call fcn.00407ec9
push dword [0x43b8e4]
mov esi, eax
call fcn.00407ec9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410cb9
test edi, edi
je 0x410cb9
call esi
test eax, eax
je 0x410cb0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410cb0
test byte [ebp - 0xc], 1
jne 0x410cb9
or dword [ebp + 0x10], 0x200000
jmp 0x410cf2
mov eax, dword [0x43b8d8]
cmp eax, ebx
je 0x410cf2
push eax
call fcn.00407ec9
pop ecx
test eax, eax
je 0x410cf2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410cf2
mov eax, dword [0x43b8dc]
cmp eax, ebx
je 0x410cf2
push eax
call fcn.00407ec9
pop ecx
test eax, eax
je 0x410cf2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b8d4]
call fcn.00407ec9
pop ecx
test eax, eax
je 0x410d12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410d14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40135c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x429b79
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x429b79
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x429b79
xor eax, eax
inc eax
jmp 0x429b7b
xor eax, eax
leave
ret 0x10
Function at 0x443b51
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x40135c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x443bc1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4051c0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x443bb8
cmp dword [ebp - 0xc], 4
jne 0x443bb8
cmp dword [ebp - 0x10], edi
je 0x443bb8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5f6298], edi
xor eax, eax
jmp 0x443c00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5f6298], edi
jge 0x443bfb
lea eax, [ebp - 0x34]
push eax
mov dword [0x5f6298], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x443bfb
cmp word [ebp - 0x14], 5
jb 0x443bfb
call fcn.00443b24
test eax, eax
je 0x443bfb
emms
mov dword [0x5f6298], 1
mov eax, dword [0x5f6298]
pop edi
leave
ret
Function at 0x486553
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.00486495
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x486585
mov esi, 0x8007000e
jmp 0x48661d
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48658a
sub eax, ecx
push ebx
lea ebx, [eax + 1]
mov eax, dword [ebp + 0x14]
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48659e
sub eax, edi
inc eax
mov dword [ebp + 0x10], eax
add eax, ebx
push eax
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x4865c5
mov esi, 0x8007000e
jmp 0x48661b
mov esi, dword [esi]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebx]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
lea esi, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
push 0
push 0
push 0x4018f0
push ecx
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
jge 0x48661b
push 0x405e40
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x48662e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x486643
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486659
sub eax, esi
lea esi, [eax + 1]
mov eax, dword [ebx + 8]
lea eax, [eax + esi + 4]
push eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0xc], edx
jne 0x486689
mov esi, 0x8007000e
jmp 0x4866ee
push edi
mov ecx, esi
mov esi, dword [ebx]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
shr ecx, 2
add eax, edx
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
lea edi, [eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
lea esi, [ebp - 4]
push esi
push edx
push dword [ebp - 8]
push 0
push 0
push 0x401900
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
pop edi
jge 0x4866ee
push 0x405e40
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4866ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x486715
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48672a
sub eax, ecx
push ebx
lea ebx, [eax + 1]
lea eax, [ebx + 4]
push eax
mov dword [ebp - 8], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0xc], edx
jne 0x486754
mov esi, 0x8007000e
jmp 0x4867a0
mov esi, dword [esi]
push edi
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
lea esi, [ebp - 4]
push esi
push edx
push dword [ebp - 8]
mov dword [ebx + edx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push 0
push 0
push 0x4018e0
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
pop edi
jge 0x4867a0
push 0x405e40
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
pop ebx
je 0x4867b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop esi
leave
ret 0xc