joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b260
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x12c
push esi
mov esi, ecx
test eax, eax
je 0x47b36f
cmp byte [eax], 0
je 0x47b36f
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b2a0
sub ecx, edx
je 0x47b2b6
cmp byte [esp + ecx + 0x27], 0x5c
jne 0x47b2b6
mov byte [esp + ecx + 0x27], al
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b2c0
sub ecx, edx
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov dword [esp + 4], 0
mov byte [esp + ecx + 0x29], al
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x47b33d
mov ecx, dword [0x4d995c]
push 1
push eax
push 0xffffffffffffffff
push 0x4c3cb0
call fcn.004b04f0
pop esi
add esp, 0x12c
ret 4
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne 0x47b36b
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop esi
add esp, 0x12c
ret 4
mov ecx, esi
jmp 0x47b37d
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
je 0x47b34b
push 0x4c3c29
push 0
push 0x4c40b0
call fcn.0044d1f0
pop esi
add esp, 0x12c
ret 4
Function at 0x47b420
Capabilities:
Get file version info

Disassembly:
sub esp, 0x8c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4db120]
push 0
call fcn.004b04f0
mov esi, dword [esp + 0x98]
test esi, esi
je 0x47b5e1
cmp byte [esi], 0
je 0x47b5e1
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebp, eax
test ebp, ebp
jne 0x47b4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d70f4]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x47b4a1
mov ecx, dword [0x4d995c]
push 1
push ebp
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4c3c29
push 0
push 0x4c40b0
mov ecx, ebx
call fcn.0044d1f0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x47b577
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4c9e0c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x47b577
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.004abdd0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4d70f4]
add esp, 0x20
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c3cb0
mov dword [eax + 0x30], 0
call fcn.004b04f0
mov ecx, dword [0x4db120]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b04f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d70f4]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4d70f4]
add esp, 4
test byte [eax + 0xe0], 1
jne 0x47b5c1
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4c3c29
push 0
push 0x4c40b0
mov ecx, ebx
call fcn.0044d1f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x47b617
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4c3c29
push 0
push 0x4c40b0
mov ecx, ebx
call fcn.0044d1f0
pop esi
pop ebx
add esp, 0x8c
ret 4
Function at 0x47b8b0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
test dl, dl
jne 0x47b8d2
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x47b986
mov al, 1
add esp, 0x12c
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b8f0
sub ecx, edx
je 0x47b906
cmp byte [esp + ecx + 0x23], 0x5c
jne 0x47b906
mov byte [esp + ecx + 0x23], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47b986
test al, 0x10
je 0x47b986
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b921
sub ecx, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov byte [esp + ecx + 0x25], al
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
sete al
add esp, 0x12c
ret
xor al, al
add esp, 0x12c
ret
Function at 0x47be30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x148
push esi
mov esi, ecx
push 0x2a
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
jne 0x47be6f
push 0x3f
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
jne 0x47be6f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47be80
mov al, 1
pop esi
add esp, 0x148
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x47be8a
xor al, al
pop esi
add esp, 0x148
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x148
ret

Function at 0x47bea0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47bf13
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47bf13
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x47bf13
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x47bf20
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x554
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x1c], 0x128
push 2
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.004abc00
add esp, 0xc
test eax, eax
je 0x47bfc9
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x47bf72
cmp al, 9
jne 0x47bf75
inc ecx
jmp 0x47bf68
test al, al
je 0x47bfbb
cmp al, 0x2d
je 0x47bf81
cmp al, 0x2b
jne 0x47bf88
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x47bfbb
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x47bf97
cmp al, 0x58
jne 0x47bfbb
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x47bfbb
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__strtoi64]
add esp, 0xc
mov ebx, eax
jmp 0x47bfcb
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__atoi64]
add esp, 4
mov ebx, eax
jmp 0x47bfcb
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x47c079
nop
test ebx, ebx
je 0x47bfee
cmp ebx, dword [esp + 0x20]
je 0x47c08d
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
lea eax, [esp + 0x25c]
add esp, 0x14
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c025
lea edi, [esp + 0x140]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x47c036
push dword [esp + 0x14]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x47c0a1
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x47bfe0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
Function at 0x4912b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x4914a0
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x491335
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4912f5
cmp byte [eax + 4], 6
je 0x4912f5
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.00491550
jmp 0x49132a
cmp dword [eax + 0x3c], 0
je 0x49132a
cmp byte [eax + 4], 6
je 0x49132a
mov ecx, dword [esi + 0xd4]
push 0x4c3c29
test ecx, ecx
jne 0x491321
push str.No_object_to_invoke.
mov ecx, 0x4dba98
call fcn.0044da60
jmp 0x49132a
push eax
push ecx
mov ecx, esi
call fcn.00492060
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x4912d3
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x491374
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [eax + ecx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x4913c8
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x4913a9
cmp edx, edi
jle 0x4913a9
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004b04f0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x49148f
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4913cc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x49146e
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
mov eax, ebx
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x491444
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x49146e
push 1
push 0
push ecx
push 0x4c40b0
mov ecx, ebx
call fcn.004b04f0
jmp 0x49146e
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x49146e
push 1
push 0
push 0xffffffffffffffff
push 0x4c3cb0
mov ecx, ebx
call fcn.004b04f0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x491355
cmp byte [ebp + 8], 0
je 0x4914a0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4956e0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi]
test al, al
je 0x49570f
nop dword [eax]
cmp al, 0x21
je 0x495704
cmp al, 0x2b
je 0x495700
cmp al, 0x5e
jne 0x49570f
mov al, 2
jmp 0x495706
mov al, 1
jmp 0x495706
mov al, 4
inc esi
or bl, al
mov al, byte [esi]
test al, al
jne 0x4956f0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041d950
mov bh, al
add esp, 0xc
test bh, bh
jne 0x495732
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.0041d860
movzx edx, ax
test dx, dx
jne 0x49574f
xor dl, dl
mov cl, bh
call fcn.0041df10
movzx edx, ax
mov al, bl
or al, 8
and edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
Function at 0x496d90
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 8], connect
movzx eax, byte [esi + 4]
add eax, 0xfffffff7
cmp eax, 8
ja case.0x496db6.12
jmp dword [eax*4 + 0x496eac]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push dword [esi]
call edi
cmp eax, 0xffffffff
je case.0x496db6.12
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push dword [esi]
call edi
jmp case.0x496db6.12
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push dword [esi]
call edi
cmp eax, 0xffffffff
je case.0x496db6.12
lea ecx, [esp + 8]
mov dword [esp + 8], 2
push ecx
push eax
push 0x100e
push dword [esi]
call edi
jmp case.0x496db6.12
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push dword [esi]
call edi
test eax, eax
je case.0x496db6.12
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 1
push 0x1104
push dword [esi]
call edi
jmp case.0x496db6.12
lea eax, [esp + 8]
push eax
push 0
push 0x419
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
lea ecx, [esp + 8]
mov eax, dword [esi]
jne 0x496e76
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x496e82
push 2
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 8]
pop edi
mov dword [esi], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
cdq
sub eax, edx
sar eax, 1
add eax, 2
add eax, dword [esp + 8]
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4973d0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
mov al, byte [esi]
cmp al, 0x20
je 0x4973ea
cmp al, 9
jne 0x4973ed
inc esi
jmp 0x4973e0
test al, al
je 0x497546
cmp byte [esi + 1], 0
lea ecx, [esi + 1]
jne 0x497412
movzx eax, al
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4974d2
lea edi, [ebp - 1]
cmp edi, esi
jbe 0x497447
mov al, byte [edi]
cmp al, 0x20
je 0x497442
cmp al, 9
jne 0x497447
dec edi
cmp edi, esi
ja 0x497438
sub edi, esi
inc edi
push edi
push str.Ctrl
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x497463
or bl, 1
jmp 0x497497
push edi
push 0x4c8fcc
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x49747c
or bl, 4
jmp 0x497497
push edi
push str.Shift
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x497546
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 1]
nop
mov al, byte [esi]
cmp al, 0x20
je 0x4974aa
cmp al, 9
jne 0x4974ad
inc esi
jmp 0x4974a0
test al, al
je 0x497546
lea eax, [esi + 1]
push 0x2b
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x497431
mov edi, dword [esp + 0x14]
cmp byte [esi + 1], 0
jne 0x497501
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea edx, [esp + 0x1b]
mov cl, al
call fcn.0041da60
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x497519
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041d950
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x497528
or byte [edi], 8
test bl, 4
je 0x497530
or byte [edi], 0x10
test bl, 0x10
je 0x497538
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x499580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, ecx
mov edx, ebp
push esi
push edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x499592
sub edx, ecx
cmp edx, 0x104
ja 0x499746
mov edi, dword [esp + 0x78]
xor edx, edx
mov cl, byte [ebp]
mov esi, 0x800
test cl, cl
mov byte [esp + 0x7c], cl
movzx eax, word [edi + 0x1e]
cmovne esi, edx
mov edx, dword [ebx + 0x20]
and eax, 0xfffff6fb
or esi, eax
test edx, edx
jne 0x4995e5
push ebp
push edi
mov word [edi + 0x1e], si
call fcn.00499760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
xor ecx, ecx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ecx
cmp byte [esp + 0x7c], cl
je 0x499613
movzx eax, word [edi + 0x1e]
test eax, 0x800
je 0x499648
movzx eax, word [edi + 0x1c]
mov ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x499648
cmp dword [ebx + 0xc], edi
jne 0x499648
push 0
cmp ebx, dword [0x4dc12c]
jne 0x499634
or eax, 0xffffffff
mov ecx, 0xff14
cmp byte [ebx + 0x10], 0
cmovne eax, ecx
push eax
jmp 0x499636
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], 0
push 9
push dword [edi]
or ecx, 0x10
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
call esi
push 9
push ebp
mov dword [esp + 0x8c], eax
call esi
mov edx, dword [esp + 0x8c]
add esp, 0x10
mov ecx, eax
test edx, edx
je 0x499692
test ecx, ecx
je 0x499692
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
mov esi, eax
jmp 0x49969f
xor eax, eax
cmp edx, ecx
setne al
mov dword [esp + 0x7c], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
cmp dword [ebx + 0x24], 2
mov dword [esp + 0x7c], eax
jne 0x4996d1
cmp dword [0x4d9970], 0
je 0x4996d1
mov ecx, dword [ebx + 0x20]
call fcn.004872b0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x499746
push ebp
push edi
call fcn.00499760
test eax, eax
je 0x499746
mov ax, word [esp + 0x18]
mov word [edi + 0x1e], ax
test esi, esi
je 0x4996f4
mov ecx, ebx
call fcn.00499f20
cmp byte [ebp], 0
je 0x499737
mov eax, dword [edi + 0x24]
test eax, eax
je 0x499737
cmp byte [0x4dc273], 0
mov ecx, 0xffffffff
mov dword [esp + 0x40], 0x30
cmovne ecx, eax
mov dword [esp + 0x44], 0x80
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], ecx
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 8
Function at 0x49db00
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2a1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x49dc28
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x49dba2
cmp dword [0x4d9974], 0
mov ecx, 0x3a
mov eax, dword [0x4d70f4]
mov esi, 0x4d9860
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4dc0d8], xmm0
je 0x49db9f
mov eax, dword [0x4d8ae0]
mov ecx, 0x4c3c29
test eax, eax
je 0x49db98
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push str.call
call fcn.0049a540
add esp, 0x14
test eax, eax
je 0x49dc0a
cmp dword [ebp - 0x14], 0
jne 0x49dbe9
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x49db50
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x49dc2b
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a3020
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1010c
call fcn.004c1c60
push esi
mov esi, dword [esp + 0x10120]
test esi, esi
je 0x4a303b
cmp byte [esi], 0
jne 0x4a3040
mov esi, str.ERROR
lea eax, [esp + 8]
mov byte [esp + 0x110], 0
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0xb], 0
push eax
push 0x104
push dword [esp + 0x10120]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x1011c]
mov ecx, dword [esp + 0x10118]
cmp byte [eax], 0
mov dl, byte [ecx]
je 0x4a30c7
push edi
lea edi, [esp + 0x10]
test dl, dl
push edi
push 0xffff
lea edi, [esp + 0x11c]
push edi
push esi
push eax
lea eax, [esp + 0x1f]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
mov ecx, dword [0x4db120]
lea eax, [esp + 0x110]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b04f0
pop esi
add esp, 0x1010c
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push 0xffff
push eax
test dl, dl
je 0x4a30e6
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x4a30ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x4a30a4
lea eax, [esp + 0x110]
cmp byte [eax], 0
jne 0x4a3105
cmp byte [eax + 1], 0
je 0x4a30a4
mov byte [eax], 0xa
inc eax
jmp 0x4a30f7