joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f41dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x4f41f1
add esp, 0xfffffff0
call fcn.004055cc
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x14]
xor edx, edx
mov eax, ebx
call fcn.00405034
test edi, edi
jne 0x4f421f
mov ecx, dword [0x5eb840]
mov dl, 1
mov eax, dword [0x4f3e2c]
call fcn.004ef840
call fcn.00405b70
mov eax, edi
mov dword [ebx + 0x10], eax
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 0xc]
call fcn.004f96c4
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 8]
call fcn.004f9744
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00500620
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp + 8]
push edx
push esi
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_MapViewOfFileEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4f429c
mov ecx, dword [0x5ebf5c]
mov dl, 1
mov eax, dword [0x4f3e2c]
call fcn.004ef840
call fcn.00405b70
test esi, esi
jne 0x4f42e3
mov eax, edi
mov edx, dword [0x5e29f8]
call fcn.00405280
test al, al
je 0x4f42e3
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f42e3
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov ecx, dword [0x5ebddc]
mov dl, 1
mov eax, dword [0x4f3e2c]
call fcn.004ef840
call fcn.00405b70
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0043eb78
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
mov edx, ebx
call fcn.00439e30
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f4313
call fcn.00405624
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

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

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x4f4afe
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4f4af6
test al, 0x10
je 0x4f4afa
xor eax, eax
jmp 0x4f4b00
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407468
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4f4b4d
test al, 0x10
jne 0x4f4b51
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4f4d3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f4df2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00407468
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x4f4ddc
lea eax, [ebp - 4]
mov edx, edi
call fcn.00407758
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.00407468
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4f4ddc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4f4e04
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4f4ddc
cmp dword [ebp - 0xc], 0x34
jne 0x4f4ddc
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4df9
lea eax, [ebp - 4]
call fcn.004073cc
ret
Function at 0x4f97b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f9990
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.004f5520
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x5e9044], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5e9048], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5e904c], eax
mov eax, dword [0x5ec0d4]
cmp dword [eax], 2
sete byte [0x5e8810]
push 0x4f999c
call sub.KERNEL32.DLL_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.004f4b04
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x5e8810], 0
jne 0x4f983f
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004f4d3c
test al, al
je 0x4f983f
mov eax, dword [ebp - 0x4c]
mov dword [0x5f28a4], eax
jmp 0x4f9846
xor eax, eax
mov dword [0x5f28a4], eax
call fcn.004f93c8
and eax, 0x7f
cmp eax, 0x12
ja case.0x4f9857.0
jmp dword [eax*4 + 0x4f985e]
mov byte [0x5e87fc], 1
jmp case.0x4f9857.0
mov byte [0x5e8800], 1
jmp case.0x4f9857.0
mov byte [0x5e8804], 1
jmp case.0x4f9857.0
mov byte [0x5e8808], 1
jmp case.0x4f9857.0
mov byte [0x5e880c], 1
jmp case.0x4f9857.0
mov byte [0x5e8814], 1
mov byte [0x5e8818], 1
jmp case.0x4f9857.0
mov byte [0x5e8814], 1
mov byte [0x5e881c], 1
jmp case.0x4f9857.0
mov byte [0x5e8814], 1
mov byte [0x5e881c], 1
mov byte [0x5e8820], 1
jmp case.0x4f9857.0
mov byte [0x5e8824], 1
jmp case.0x4f9857.0
mov byte [0x5e8828], 1
jmp case.0x4f9857.0
mov byte [0x5e882c], 1
jmp case.0x4f9857.0
mov byte [0x5e8830], 1
jmp case.0x4f9857.0
mov byte [0x5e8834], 1
jmp case.0x4f9857.0
mov byte [0x5e8838], 1
jmp case.0x4f9857.0
mov byte [0x5e883c], 1
jmp case.0x4f9857.0
mov byte [0x5e8840], 1
jmp case.0x4f9857.0
mov byte [0x5e8844], 1
jmp case.0x4f9857.0
mov byte [0x5e8848], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9997
lea eax, [ebp - 4]
call fcn.004073cc
ret

Function at 0x4fc8d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x4fc938
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.004075dc
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetACP_1
mov edx, eax
pop eax
call fcn.00414a34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc93f
lea eax, [ebp - 0x14]
call fcn.004073cc
ret
Function at 0x5046cc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x5046e4
add esp, 0xfffffff0
call fcn.004055cc
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5047fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.004042c4
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x5047e8
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004f24a4
xor eax, eax
push ebp
push 0x5047d5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004f24a4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00407644
jmp 0x5047a6
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407c8c
mov eax, dword [ebx + 4]
call fcn.0040774c
dec eax
jle 0x5047ba
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x504794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5047dc
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504805
lea eax, [ebp - 4]
call fcn.00406e6c
ret
Function at 0x52e088
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x52e0b6
mov eax, ebx
call fcn.0052eb3c
cmp dword [ebx + 0x40], 0
je 0x52e0af
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x52e127
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x52e119
cmp dword [ebx + 8], 0
je 0x52e0d8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x52e0ea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x52e119
cmp dword [ebx + 8], 0
je 0x52e0cb
cmp eax, 3
je 0x52e0fd
dec eax
jne 0x52e0cb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x52e0cb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x52e0cb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x52e145
cmp dword [ebx + 0x14], 0xcc
je 0x52e145
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0052e150
pop ebx
ret

Function at 0x5439cc
Capabilities:
Enumerate gui resources

Disassembly:
add esp, 0xfffffff8
mov dword [esp], edx
xor eax, eax
mov dword [esp + 4], eax
mov eax, esp
push eax
push 0x543910
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
pop ecx
pop edx
ret

Function at 0x5440b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00407468
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
push 0x543fd4
call sub.user32.dll_EnumWindows
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x567430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x56746c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x567448
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x567458
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x567468
or bx, 2
mov eax, ebx
pop ebx
ret
Function at 0x578f28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x578f8c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.004075dc
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetACP_1
mov edx, eax
pop eax
call fcn.00414a34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578f93
lea eax, [ebp - 0x14]
call fcn.004073cc
ret
Function at 0x5bca34
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x674b90
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x5bca56
shr eax, 1
xor eax, 0xedb88320
jmp 0x5bca58
shr eax, 1
dec edx
jne 0x5bca44
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5bca3d
mov byte [0x674f90], 1
pop esi
pop ebx
ret

Function at 0x5bca74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x674f90], 0
jne 0x5bca8b
call fcn.005bca34
mov eax, edi
dec eax
test eax, eax
jl 0x5bcab3
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x674b90]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5bca95
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5bf85c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x5bf8f6.0
jmp dword [ecx*4 + 0x5bf88f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5bf8c1
sub dl, 8
je 0x5bf8d0
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf504
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf55c
jmp case.0x5bf8f6.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5bf8f6.0
movzx ecx, byte [ecx + 0x5bf8fd]
jmp dword [ecx*4 + 0x5bf90e]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf608
jmp case.0x5bf8f6.0
cmp dl, 3
jne 0x5bf93b
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf660
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf61c
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf6a4
jmp case.0x5bf8f6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5bf966
sub dl, 8
je 0x5bf972
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf6d0
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf73c
jmp case.0x5bf8f6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5bf991
sub dl, 8
je 0x5bf99d
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf7f8
jmp case.0x5bf8f6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5bf820
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x5bfa3f
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005bea08
test eax, eax
je 0x5bfa3f
mov eax, ebx
call fcn.005bfa48
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x5bf9d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5bfa48
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x5bfa79
dec al
je 0x5bfab4
dec al
je 0x5bfaf9
dec al
je 0x5bfb62
jmp 0x5bfbec
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5bfbec
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5bfa89
jmp 0x5bfbec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5bfbec
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5bfac4
jmp 0x5bfbec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5bfbec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5bfb28
xor ebp, ebp
jmp 0x5bfb38
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x5bfb41
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5bfb09
jmp 0x5bfbec
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5bfbec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x5bfbbb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.005bcabc
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5bfb76
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416553
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x419860
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.004157b2
mov dword [ebx], 0x41984c
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.004157b2
or eax, 0xffffffff
push 0x41f2f0
mov dword [ebx], 0x419810
push edi
mov dword [esi], 0x419824
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4035a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41676b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4198f8
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x403630
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4035f7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x403621
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x403636
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x403636
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x419890
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x41987c
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404d60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x416a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x4198b8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x419890
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10