joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d40
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [0x42f220]
sub esp, 0x108
test eax, eax
push esi
jne 0x401dc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.MIAXISUSBOpticService
push 0
mov dword [0x42f21c], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x42f21c]
push eax
push str.MIAXISUSBOpticService
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
mov eax, dword [esp + 0x120]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x401dc0
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x108
ret

Function at 0x401dd0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x200
lea eax, [esp]
push edi
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e1b
push 0x100
push 0x42f0f8
call fcn.004020e0
add esp, 8
push eax
push str.MIAXISUSBOpticService
push str.Unable_to_install__s____s_n
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
pop edi
add esp, 0x200
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401ec4
push ebx
push esi
push 0
push 0
push 0x42f224
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push str.MIAXISUSBOpticService
push str.MIAXISUSBOpticService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401e96
push str.MIAXISUSBOpticService
push str._s_installed._n
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x200
ret
push 0x100
push 0x42f0f8
call fcn.004020e0
add esp, 8
push eax
push str.CreateService_failed____s_n
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x200
ret
push 0x100
push 0x42f0f8
call fcn.004020e0
add esp, 8
push eax
push str.OpenSCManager_failed____s_n
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
pop edi
add esp, 0x200
ret
Function at 0x401ef0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
je 0x402047
push esi
push 0xf01ff
push str.MIAXISUSBOpticService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40201b
push edi
push 0x42f200
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.msvcrt.dll_printf]
test eax, eax
je 0x401fbe
push ebp
push str.MIAXISUSBOpticService
push str.Stopping__s.
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x42f200
push esi
call ebp
test eax, eax
je 0x401f99
cmp dword [0x42f204], 3
jne 0x401f99
push 0x407088
call edi
add esp, 4
push 0x3e8
call ebx
push 0x42f200
push esi
call ebp
test eax, eax
jne 0x401f73
mov eax, dword [0x42f204]
pop ebp
cmp eax, 1
push str.MIAXISUSBOpticService
jne 0x401fb0
push str._n_s_stopped._n
jmp 0x401fb5
push str._n_s_failed_to_stop._n
call edi
mov ebx, dword [esp + 0x14]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401feb
push str.MIAXISUSBOpticService
push str._s_removed._n
call edi
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
pop ecx
ret
push 0x100
push 0x42f0f8
call fcn.004020e0
add esp, 8
push eax
push str.DeleteService_failed____s_n
call edi
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
pop ecx
ret
push 0x100
push 0x42f0f8
call fcn.004020e0
add esp, 8
push eax
push str.OpenService_failed____s_n
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
pop ecx
ret
push 0x100
push 0x42f0f8
call fcn.004020e0
add esp, 8
push eax
push str.OpenSCManager_failed____s_n
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
pop ebx
pop ecx
ret
Function at 0x402210
Capabilities:
Create pipe

Disassembly:
sub esp, 0x104
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, str..PIPE_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
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, dword [esp + 0x118]
or ecx, 0xffffffff
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 eax, dword [esp + 0x134]
mov edx, dword [esp + 0x12c]
mov ecx, ebp
push eax
mov eax, dword [esp + 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x12c]
push edx
mov edx, dword [esp + 0x12c]
push eax
mov eax, dword [esp + 0x12c]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor edx, edx
cmp eax, 0xffffffff
pop edi
pop esi
setne dl
mov dword [ebx + 4], eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x104
ret 0x20

Function at 0x402320
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0x10

Function at 0x402350
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0x10
Function at 0x403d88
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4056a0
call fcn.00403f78
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403dc5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403dc5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403ddd
cmp eax, 0x20b
je 0x403dca
mov dword [ebp - 0x1c], ebx
jmp 0x403df1
cmp dword [ecx + 0x84], 0xe
jbe 0x403dc5
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x403deb
cmp dword [ecx + 0x74], 0xe
jbe 0x403dc5
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.msvcrt.dll___set_app_type]
pop ecx
or dword [0x43772c], 0xffffffff
or dword [0x437730], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x437720]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x43771c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x437728], eax
call fcn.00403f72
cmp dword [0x407580], ebx
jne 0x403e4c
push fcn.00403f72
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00403f60
push 0x405318
push 0x405314
call sub.msvcrt.dll__initterm
mov eax, dword [0x437718]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x437714]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x405310
push 0x405304
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x403ee2
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x403eb6
cmp al, 0x22
jne 0x403ea8
cmp byte [esi], 0x22
jne 0x403ebf
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x403ec9
cmp al, 0x20
jbe 0x403ebb
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x403eed
movzx eax, word [ebp - 0x48]
jmp 0x403ef0
cmp byte [esi], 0x20
jbe 0x403ebf
inc esi
mov dword [ebp - 0x34], esi
jmp 0x403ee2
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403f0d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x403f42
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403fb1
ret
Function at 0x401d80
Capabilities:
Encode data using xor
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa2b30
call fcn.0040c1d0
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x401dab
jmp 0x401dbd
push str..Settings.ini
push 0
push str.EncryptEffect
push str.Encrypt
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x401f67
push 0xa2b20
lea eax, [ebp - 0xa2b28]
push 0
push eax
call fcn.00404cf0
add esp, 0xc
push 0x452d58
call fcn.00401850
push 0x470220
call fcn.00401b00
push 0x41c0b8
call fcn.004012b0
push 0x415350
call fcn.00401030
push 0x451c20
call fcn.00401560
push 0x5773a0
call fcn.00402c50
call fcn.00402600
push 0x1d4c0
lea ecx, [ebp - 0xa2b28]
push 0x452d5c
push ecx
call fcn.00409740
add esp, 0xc
push 0x35b60
lea edx, [ebp - 0x85668]
push 0x470224
push edx
call fcn.00409740
add esp, 0xc
push 0x35b60
lea eax, [ebp - 0x4fb08]
push 0x41c0bc
push eax
call fcn.00409740
add esp, 0xc
push 0x6d60
lea ecx, [ebp - 0x19fa8]
push 0x415354
push ecx
call fcn.00409740
add esp, 0xc
push 0x101d0
mov ecx, 0x2bc
mov esi, 0x451c24
lea edi, [ebp - 0x13248]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x12118]
push 0x5773a4
mov ecx, 0x190
mov esi, 0x452714
lea edi, [ebp - 0x12758]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00409740
add esp, 0xc
push 0x1f40
lea eax, [ebp - 0x1f48]
push 0x5be2a8
push eax
call fcn.00409740
add esp, 0xc
xor eax, eax
nop
mov dl, byte [ebp + eax - 0xa2b28]
mov ecx, eax
xor dl, al
shr ecx, 8
xor cl, 0x85
xor dl, 0xfa
sub dl, cl
mov byte [ebp + eax - 0xa2b28], dl
inc eax
cmp eax, 0xa2b20
jb 0x401ef0
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.Release_EffectTRSData.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f67
push 0
lea eax, [ebp - 0xa2b2c]
push eax
push 0xa2b20
lea ecx, [ebp - 0xa2b28]
push ecx
push esi
mov dword [ebp - 0xa2b2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401f79
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040320a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f91
jmp 0x401fa8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040320a
mov esp, ebp
pop ebp
ret
Function at 0x401fd0
Capabilities:
Encode data using xor
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10314c
call fcn.0040c1d0
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
jmp 0x401ffa
jmp 0x40200c
push str..Settings.ini
push 0
push str.EncryptTooltip
push str.Encrypt
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40218c
push 0x103140
lea eax, [ebp - 0x103148]
push 0
push eax
call fcn.00404cf0
add esp, 0xc
push 0
push 0x587578
mov ecx, str.Data_BuffEffect_eng.txt
call fcn.00402f00
push 1
push 0x587578
mov ecx, str.Data_BuffEffect_spn.txt
call fcn.00402f00
push 2
push 0x587578
mov ecx, str.Data_BuffEffect_por.txt
call fcn.00402f00
push 1
push 0x4a63d0
mov ecx, str.Data_JCItemToolTip.txt
call fcn.004022c0
push 2
push 0x4a63d0
mov ecx, str.Data_JCTextTooltip.txt
call fcn.004022c0
push 0x12000
lea ecx, [ebp - 0x103148]
push 0x58757c
push ecx
call fcn.00409740
add esp, 0xc
push 0x12000
lea edx, [ebp - 0xf1148]
push 0x59957c
push edx
call fcn.00409740
add esp, 0xc
push 0x12000
lea eax, [ebp - 0xdf148]
push 0x5ab57c
push eax
call fcn.00409740
add esp, 0xc
push 0x4e200
lea ecx, [ebp - 0xcd148]
push 0x4a63d4
push ecx
call fcn.00409740
add esp, 0xc
push 0x7ef40
lea edx, [ebp - 0x7ef48]
push 0x4f45d4
push edx
call fcn.00409740
add esp, 0xc
xor eax, eax
mov dl, byte [ebp + eax - 0x103148]
mov ecx, eax
xor dl, al
shr ecx, 8
xor cl, 0x85
xor dl, 0xfa
sub dl, cl
mov byte [ebp + eax - 0x103148], dl
inc eax
cmp eax, 0x103140
jb 0x402115
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.Release_TooltipTRSData.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40218c
push 0
lea eax, [ebp - 0x10314c]
push eax
push 0x103140
lea ecx, [ebp - 0x103148]
push ecx
push esi
mov dword [ebp - 0x10314c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40219d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040320a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021b5
jmp 0x4021cc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040320a
mov esp, ebp
pop ebp
ret
Function at 0x4027f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.004036ea
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402847
push ebx
push str.__s__Could_not_open_file_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40286a
push eax
call fcn.00403502
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.0040355c
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x4028a3
push ebx
push str.__s__Could_not_alloc_file_buffer_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4028c8
push ebx
push str.__s__Could_not_read_file_n
jmp 0x402883
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40320a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414054]
jne 0x403214
repz ret
jmp fcn.00403c2c
Function at 0x4087bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004069a9
and dword [ebp - 0x14], 0
cmp dword [0x5be21c], 0
mov dword [ebp - 0x18], eax
jne 0x40886e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408916
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408916
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5be21c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5be220], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5be224], eax
call edi
push eax
call esi
mov dword [0x5be22c], eax
test eax, eax
je 0x40886e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5be228], eax
mov eax, dword [0x5be228]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4088c7
cmp dword [0x5be22c], ecx
je 0x4088c7
push eax
call esi
push dword [0x5be22c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4088c7
test ebx, ebx
je 0x4088c7
call edi
test eax, eax
je 0x4088be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4088be
test byte [ebp - 8], 1
jne 0x4088c7
or dword [ebp + 0x10], 0x200000
jmp 0x4088fa
mov eax, dword [0x5be220]
cmp eax, dword [ebp - 0x18]
je 0x4088fa
push eax
call esi
test eax, eax
je 0x4088fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4088fa
mov eax, dword [0x5be224]
cmp eax, dword [ebp - 0x18]
je 0x4088fa
push eax
call esi
test eax, eax
je 0x4088fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5be21c]
call esi
test eax, eax
je 0x408916
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408918
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040320a
leave
ret
Function at 0x4019a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x401ee0
push eax
mov eax, 0x100c
mov dword fs:[0], esp
call fcn.00401c50
push ebx
push esi
push edi
mov eax, dword [esp + 0x1028]
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esp + 0x103c], 1
call ebx
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x401a9d
mov ecx, dword [esp + 0x102c]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x401a9d
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LockFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x24]
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a92
push 2
push 0
push 0
push edi
call ebx
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0
lea edx, [esi + ecx]
push edx
push 0
push esi
push edi
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esi + eax]
push ecx
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], 0x1000
je 0x401a2b
pop ebp
push edi
call fcn.00401b10
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
test esi, esi
je 0x401ab3
push esi
call ebx
test edi, edi
je 0x401aba
push edi
call ebx
lea ecx, [esp + 0x1028]
mov byte [esp + 0x1020], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x102c]
mov dword [esp + 0x1020], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1018
ret
Function at 0x401c7f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020f0
push 0x401db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40317c], 0xffffffff
or dword [0x403180], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403174]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403170]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403178], eax
call fcn.00401db7
cmp dword [0x403090], 0
jne 0x401d02
push 0x401db4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401da2
push 0x403018
push 0x403014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40316c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403168]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401040
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x44bed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c112b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004b5654
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x44bf52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b2d9d
mov eax, dword [eax]
push 0x62d1d0
push eax
call fcn.004a4eb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b58df
test bl, bl
je 0x44bf52
push 0x62d1d0
lea ecx, [esp + 0xc]
call fcn.004b5c6f
push 0x630d70
lea ecx, [esp + 0xc]
call fcn.004b5c6f
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44bf8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b58df
jmp 0x44c059
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x44c012
lea edx, [esp + 0x7c]
push 0x630d6c
push edx
call fcn.004a4eb4
add esp, 8
test eax, eax
je 0x44c012
lea eax, [esp + 0x7c]
push 0x630d68
push eax
call fcn.004a4eb4
add esp, 8
test eax, eax
je 0x44c012
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44bfa2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004b58df
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x44d2b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x44d312
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc