joyce8/EMBER2024-capa huggingface dataset:
Function at 0x563f7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 2
je 0x563fd7
cmp dword [ebp - 0x1c], 2
ja 0x56413d
cmp dword [ebp - 0x1c], 0
je 0x563fb4
cmp dword [ebp - 0x1c], 1
jne 0x56413d
jmp 0x564143
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenA]
call eax
sub esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 0x1c], 2
jmp 0x56413e
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x28]
mov esi, dword [eax]
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 0x24]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov dword [ebp - 0x44], edi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x9c], ebx
fld1
fstp qword [esp + 0x94]
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], 2
mov dword [esp + 0x88], 0
mov ebx, dword [ebp - 0x2c]
mov dword [esp + 0x84], ebx
mov esi, dword [ebp - 0x30]
mov dword [esp + 0x80], esi
mov ebx, dword [ebp - 0x34]
mov dword [esp + 0x7c], ebx
mov esi, dword [ebp - 0x38]
mov dword [esp + 0x78], esi
mov ebx, dword [ebp - 0x3c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], 8
mov esi, dword [ebp - 0x40]
mov dword [esp + 0x6c], esi
fld1
fstp qword [esp + 0x64]
mov dword [esp + 0x60], 2
mov ebx, dword [ebp - 0x44]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 7
mov edi, dword [ebp - 0x48]
mov dword [esp + 0x50], edi
fldz
fstp qword [esp + 0x48]
mov dword [esp + 0x44], ecx
fld qword [0x58e8a0]
fstp qword [esp + 0x3c]
fld qword [0x58e890]
fstp qword [esp + 0x34]
fld qword [0x58e880]
fstp qword [esp + 0x2c]
fld qword [0x58e878]
fstp qword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 6
fld qword [0x58e890]
fstp qword [esp + 0x14]
fld qword [0x58e8a8]
fstp qword [esp + 0xc]
mov dword [esp + 8], 7
mov dword [esp + 4], eax
mov dword [esp], 7
call sym._ByteAlloc
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 0x1c], 1
jmp 0x56413e
nop
jmp 0x563f8f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5645a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x5646bc
cmp dword [ebp - 0xc], 1
je 0x5645c5
jmp 0x5646b7
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___super_fnc__3488
mov dword [ebp - 0xc], 0
nop
jmp 0x5645b0
nop
leave
ret
Function at 0x5653d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 2
je 0x565423
cmp dword [ebp - 0x1c], 2
ja 0x565585
cmp dword [ebp - 0x1c], 0
je 0x56558b
cmp dword [ebp - 0x1c], 1
jne 0x565585
mov dword [esp], str.before_3_zip_n
call sym._printf
mov dword [ebp - 0x1c], 2
jmp 0x565586
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax]
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
fld qword [0x58e880]
fstp qword [esp + 0xac]
mov dword [esp + 0xa8], 6
mov dword [esp + 0xa4], edx
fld qword [0x58e888]
fstp qword [esp + 0x9c]
mov dword [esp + 0x98], 1
mov dword [esp + 0x94], ecx
fld qword [0x58e898]
fstp qword [esp + 0x8c]
fld qword [0x58e8a0]
fstp qword [esp + 0x84]
fld qword [0x58e8a8]
fstp qword [esp + 0x7c]
mov dword [esp + 0x78], 3
fld qword [0x58e880]
fstp qword [esp + 0x70]
mov dword [esp + 0x6c], 0x192
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x68], ecx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x64], edx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], 4
mov dword [esp + 0x58], 0x34
mov dword [esp + 0x54], 6
fld qword [0x58e878]
fstp qword [esp + 0x4c]
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], 8
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
fld qword [0x58e870]
fstp qword [esp + 0x30]
fld qword [0x58e898]
fstp qword [esp + 0x28]
mov dword [esp + 0x24], 4
fldz
fstp qword [esp + 0x1c]
mov dword [esp + 0x18], eax
fld qword [0x58e8a0]
fstp qword [esp + 0x10]
fld qword [0x58e878]
fstp qword [esp + 8]
fld qword [0x58e880]
fstp qword [esp]
call sym._ExportWinAPI
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov dword [ebp - 0x1c], 0
jmp 0x565586
nop
jmp 0x5653e7
nop
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x567a49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x567bbb
cmp dword [ebp - 0x1c], 1
je 0x567a71
jmp 0x567bb6
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
fld1
fstp qword [esp + 0x98]
fld qword [0x58e888]
fstp qword [esp + 0x90]
mov dword [esp + 0x8c], 0x58e6ec
mov dword [esp + 0x88], edx
fld qword [0x58e880]
fstp qword [esp + 0x80]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], 0
fld qword [0x58e888]
fstp qword [esp + 0x6c]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
fld qword [0x58e880]
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], 0
mov ebx, dword [ebp - 0x30]
mov dword [esp + 0x44], ebx
fld qword [0x58e878]
fstp qword [esp + 0x3c]
fldz
fstp qword [esp + 0x34]
mov dword [esp + 0x30], 7
mov esi, dword [ebp - 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0
fld qword [0x58e898]
fstp qword [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 7
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._StrCpyW
mov dword [ebp - 0x1c], 0
nop
jmp 0x567a5c
nop
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x576cd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x576d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xbcfd14]
test esi, esi
jle 0x576e50
mov eax, dword [0xbcfd18]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x576d64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x576de7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x576d50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x576e77
mov eax, dword [0xbcfd18]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0xbcfd18]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x576e57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x576de0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x576df0
add dword [0xbcfd14], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xbcfd18]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x576de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x576d6e
mov eax, dword [0xbcfd18]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x577330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xbcfd30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xbcfd28]
sub esp, 4
test ebx, ebx
je 0x577385
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x57737e
test esi, esi
je 0x57737e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x577360
mov dword [esp], 0xbcfd30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5776b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x5776d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x5776e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x5776d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x577728
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57771e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x57772a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x577710
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1705f3f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edi, ebx
jmp 0x1706941
pushfd
lea esp, [esp + 0x48]
ja 0x19f74e2
stc
xor al, ah
call fcn.017083d7
add al, 0x71
in al, 0xff
jmp 0xbaf439a5
pushfd
clc
push dword [edi]
pop dword [esp]
pushal
pushal
mov dword [esp], ecx
call fcn.01705f3f
insd dword es:[edi], dx
cmp edx, edx
in eax, dx
add byte [ecx - 0x30], cl
jg 0x1708149
sbb al, byte fs:[esi - 0x2b67c455]
and dword [eax + 0x3e], ecx
dec edx
jg 0x17080cb
mov al, 0xd4
jmp 0x64799f99
mov ebx, 0x63d02a00
test esp, 0x9293a88b
sub al, 0x99
invalid
bt edx, ebx
bt ebp, esp
cmp edi, ebx
push ebp
mov byte [esp], 0x7b
lea esp, [esp + 4]
ja 0x19f74e2
stc
add al, 0x55
rol al, 3
rol al, cl
sub ebx, edi
and al, ah
shl di, 1
sub di, 0xf23a
add ebx, esp
add di, 0xaa52
mov edi, ebx
mov al, 0x6a
mov al, 0x2e
bt ebp, esi
repne scasb al, byte es:[edi]
push edx
lea esp, [esp + 4]
jne 0x19f1c8c
lahf
movzx ax, al
pushal
jmp fcn.019ed84a
clc
sub edi, 4
jge 0x17080d9
test cl, 0xb3
clc
stc
push dword [edi]
jmp 0x17084bf
Function at 0x40efa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5e9470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x5e946c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5e9470], edx
cmp eax, 0x26f
jl 0x40efa8
mov dword [0x572fd0], 0x270
ret

Function at 0x40efe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x5e9474]
mov ebx, dword [eax*4 + 0x5e9470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5e9aa4]
mov dword [eax*4 + 0x5e9470], edx
cmp eax, 0xe2
jl 0x40efe8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5e9474]
mov ebx, dword [eax*4 + 0x5e9470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5e90e4]
mov dword [eax*4 + 0x5e9470], edx
cmp eax, 0x26e
jl 0x40f038
mov edx, dword [0x5e9470]
mov ecx, dword [0x5e9e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x5e9aa0]
mov dword [0x5e9e2c], eax
mov dword [0x572fd0], 0
pop ebx
ret

Function at 0x40f0c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x572fd0]
add dword [0x572fd0], 1
mov eax, dword [0x5e8020]
cmp eax, dword [0x572720]
jne 0x40f0e3
cmp ebx, 0x271
jb 0x40f104
mov eax, dword [0x5e8020]
call fcn.0040efa0
not dword [0x5e8020]
mov eax, dword [0x5e8020]
mov dword [0x572720], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40f120
call fcn.0040efe0
xor ebx, ebx
mov dword [0x572fd0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5e9470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x410c70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x572470]
cmp ax, 0xcb
je 0x410d7c
cmp ax, 0xcc
je 0x410d7c
lea esi, [esi]
mov edx, dword [0x5ea070]
test edx, edx
je 0x410ca5
mov eax, dword [0x5e9f20]
call edx
mov ebx, eax
jmp 0x410caa
mov ebx, 0x5e9f24
cmp word [0x5e9f10], 0
jle 0x410cd0
mov eax, 0x5e9ef0
call fcn.00410ee0
mov eax, ebx
call fcn.00410830
mov eax, ebx
call fcn.004108a0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410cf2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410ced
mov edx, edi
mov eax, ebx
call fcn.0040fca0
jmp 0x410cf0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410cd8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5e9f10], 0
jle 0x410d7c
mov edx, 0x5e9e30
mov eax, ebx
call fcn.0040fde0
mov edi, eax
test edi, edi
je 0x410d4c
mov eax, dword [0x5e9ec4]
mov dword [edi + 0xc], eax
cmp dword [0x5e9ec4], 0
je 0x410d40
mov eax, dword [0x5e9ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5e9ec4], eax
nop
sub word [0x5e9f10], 1
cmp word [0x5e9f10], 0
sete bl
mov eax, 0x5e9ef0
call fcn.00410f00
test bl, bl
je 0x410d7c
mov eax, 0x5e9ef0
call fcn.00410ed0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x412e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00412e00
push ebp
push 0x4141a0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x412f4a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b830
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x412eaf
mov edx, 0x5e92f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x412f01
call sub.kernel32.dll_GetLastError
call fcn.00404310
lea eax, [ebp - 0x10]
call fcn.0040a410
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a8b0
mov edx, dword [ebp - 0x14]
mov ecx, 0x591324
lea eax, [ebp - 0x10]
call fcn.0040a740
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b100
jmp 0x412f98
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x412f1a
cmp eax, ecx
je 0x412f24
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b830
cmp byte [0x5726f0], 0
jne 0x412f98
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bdd0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b190
lea esi, [esi]
jmp 0x412f98
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b830
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x412f6e
mov eax, 0x5e92f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5726f0], 0
jne 0x412f98
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bdd0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b190
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00412e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413330
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x5e9260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00413510
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5e9260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403810
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5724f0], eax
mov ebx, eax
jmp 0x4134d3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4133b8
cmp byte [ebx], 0
je 0x4134dc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x413433
mov al, byte [ebx]
cmp al, 1
jb 0x413428
sub al, 0x20
jbe 0x4133f8
sub al, 2
je 0x41340c
jmp 0x413428
mov al, byte [ebp - 0x114]
test al, al
je 0x413438
add dword [ebp - 0x110], 1
jmp 0x413430
cmp byte [ebx + 1], 0x22
je 0x413423
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413430
add ebx, 1
jmp 0x413430
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4133e8
test dword [ebp - 0x10c], 0xffffffff
je 0x4134cc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00413510
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5e9260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4134c3
mov al, byte [ebx]
cmp al, 1
jb 0x4134b8
sub al, 0x20
jbe 0x413488
sub al, 2
je 0x41349c
jmp 0x4134b8
mov al, byte [ebp - 0x114]
test al, al
je 0x4134c8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4134c0
cmp byte [ebx + 1], 0x22
je 0x4134b3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4134c0
add ebx, 1
jmp 0x4134c0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413478
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4133bb
mov ebx, dword [ebp - 0x10c]
mov dword [0x5e9250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5e9260
call fcn.00410ab0
mov eax, dword [0x5e9260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret