joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5762c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xa37210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x20]
test eax, eax
je 0x576310
push 0x8db
mov ecx, 0xa59940
call fcn.004489d0
push eax
push 0x17
push 0xa59940
call fcn.004482c0
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b964
mov esp, ebp
pop ebp
ret
mov eax, dword [0xa650a4]
mov dword [ebp - 0x210], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea edx, [ebp - 0x210]
push edx
push 0x5bfd9c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x134]
test eax, eax
je 0x5762ff
cmp dword [esi + 0xc], 0
jne 0x576375
push str.bdcap32.dll
mov ecx, esi
call fcn.005764a0
test eax, eax
jns 0x57635b
push 0x8dc
jmp 0x5762e5
mov eax, dword [esi]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call dword [eax + 0xc]
cmp dword [esi + 0xc], 0
je 0x57643a
mov eax, dword [esi]
push 0x3c
push 0x1e
push esi
call dword [eax + 0x40]
mov ecx, esi
call fcn.00576910
push 0
mov ecx, 0x71a8c8
call fcn.0045b9a0
push eax
lea eax, [ebp - 0x108]
push str._sScreenShot
push eax
call fcn.0057cecc
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5763d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5763d1
push 0x8de
jmp 0x5762e5
push 0x104
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push 0x5bfed4
push str.Capture
lea eax, [ebp - 0x108]
push eax
call fcn.00576840
lea eax, [ebp - 0x20c]
mov ecx, 0xa59940
push eax
push 0x8df
call fcn.004489d0
push eax
push 0x17
push 0xa59940
call fcn.004482c0
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push 4
push 0
push eax
push esi
call fcn.00576a30
test eax, eax
js 0x5762ff
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0057b964
mov esp, ebp
pop ebp
ret
Function at 0x592616
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa37210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00583b47
mov dword [ebp - 0x14], eax
cmp dword [0xa795f8], esi
jne 0x592709
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x592696
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5927e9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5927e9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5927e9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa795f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa795fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa79600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa79608], eax
test eax, eax
je 0x592706
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa79604], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x59272e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x592721
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x592743
push 4
pop eax
jmp 0x5927eb
cmp dword [ebp - 0x14], esi
je 0x592743
push dword [0xa795f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x592728
mov eax, dword [0xa79604]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5927a1
cmp dword [0xa79608], edi
je 0x5927a1
push eax
call ebx
push dword [0xa79608]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5927a1
test eax, eax
je 0x5927a1
call ecx
test eax, eax
je 0x592796
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x592796
test byte [ebp - 8], 1
jne 0x5927a1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5927d1
mov eax, dword [0xa795fc]
cmp eax, edi
je 0x5927ce
push eax
call ebx
test eax, eax
je 0x5927ce
call eax
mov esi, eax
test esi, esi
je 0x5927ce
mov eax, dword [0xa79600]
cmp eax, edi
je 0x5927ce
push eax
call ebx
test eax, eax
je 0x5927ce
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa795f8]
call ebx
test eax, eax
je 0x5927e9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5927eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b964
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x4137b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x4137ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4137d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4137c0
mov eax, 1
add ebx, ebx
jne 0x4137e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4137d8
jne 0x4137f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4137d8
xor ecx, ecx
sub eax, 3
jb 0x413808
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41387a
mov ebp, eax
add ebx, ebx
jne 0x413813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413844
inc ecx
add ebx, ebx
jne 0x413830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413825
jne 0x413841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413825
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413855
jmp 0x4137c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413864
add edi, ecx
jmp 0x4137c6
pop esi
mov edi, esi
mov ecx, 0x281
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413882
cmp byte [edi], 5
jne 0x413882
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x413887
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x4138f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4138b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1583c]
or eax, eax
je 0x4138f0
mov dword [ebx], eax
add ebx, 4
jmp 0x4138d1
call dword [esi + 0x1584c]
mov ebp, dword [esi + 0x15840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41392a
sub esp, 0xffffff80
jmp 0x4021f0
Function at 0x4011a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4272b7
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
push dword [edi + 4]
push dword [edi]
call fcn.004018f0
mov eax, dword [edi]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, eax
xor esi, esi
mov dword [ebp - 0x240], ecx
nop dword [eax]
push 0
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401348
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x401348
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x23c], xmm0
movups xmmword [ebp - 0x22c], xmm0
call fcn.00402400
mov ecx, eax
test ecx, ecx
je 0x401357
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
push esi
mov dword [ebp - 0x23c], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012b0
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401b60
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.00401610
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x224]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call fcn.004018f0
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401810
mov edx, dword [ebp - 0x238]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401348
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x401361
mov ecx, dword [ebp - 0x240]
jmp 0x401200
push 0x80004005
call fcn.004021c0
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x401378
push esi
mov ecx, edi
call fcn.00401420
add esi, 0x24
cmp esi, dword [edi + 4]
jne 0x401368
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af40
mov esp, ebp
pop ebp
ret
Function at 0x401420
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4272f1
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov edi, dword [ebp + 8]
push 5
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4015c1
nop word [eax + eax]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4015ae
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4015ae
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x23c], xmm0
movups xmmword [ebp - 0x22c], xmm0
call fcn.00402400
mov ecx, eax
test ecx, ecx
je 0x401601
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x23c], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401510
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401b60
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [edi + 0x18]
call fcn.00401610
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x224]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call fcn.004018f0
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401810
mov edx, dword [ebp - 0x238]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4015ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x401470
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
je 0x4015e4
nop dword [eax]
mov ecx, dword [ebp - 0x240]
push esi
call fcn.00401420
add esi, 0x24
cmp esi, dword [edi + 0x1c]
jne 0x4015d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af40
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004021c0
int3
Function at 0x402a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4274ca
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00409e45
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x402b20
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0040d294
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x436ae8
push eax
call fcn.0040d4aa
push edi
push esi
call fcn.0040a18d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af40
mov esp, ebp
pop ebp
ret 4
Function at 0x406ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427878
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x406c4b
cmp byte [ebx + 0x3d], 0
je 0x406c4b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x406b39
xor al, al
jmp 0x406c4d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406460
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x406ba3
sub eax, 1
je 0x406ba7
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x406bfd
xor bl, bl
jmp 0x406bff
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x406bdf
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0041115e
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x406b9f
cmp byte [ebx + 0x3d], 0
je 0x406bfd
test esi, esi
jne 0x406b64
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406660
jmp 0x406b5e
mov bl, 1
cmp edx, 0x10
jb 0x406c47
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x406c3e
test byte [ebp - 0x28], 0x1f
je 0x406c1a
call fcn.00410221
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x406c26
call fcn.00410221
sub eax, ecx
cmp eax, 4
jae 0x406c32
call fcn.00410221
cmp eax, 0x23
jbe 0x406c3c
call fcn.00410221
mov eax, ecx
push eax
call fcn.0040af3b
add esp, 4
mov al, bl
jmp 0x406c4d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af40
mov esp, ebp
pop ebp
ret
Function at 0x407ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427396
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x438070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040af5f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040a08a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419073
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418ef2
Function at 0x40e749
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x41270e
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x408945
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408965
add ecx, 0x4173c7a9
xor dword [edi], ebx
inc edi
cmp edi, esi
jne fcn.00408945
add eax, 0xc3ba4994
ret
Function at 0x402b1c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x409c50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b97
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402b9e
cmp dword [ebp + 0x10], ebx
jne 0x402b8b
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b1c
test eax, eax
jne 0x402b9e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402b5e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406069
cmp eax, ebx
je 0x402bc3
push ebx
push dword [0x409c50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b97
cmp dword [0x409c50], ebx
jne 0x402b94
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b94
jmp 0x402b97
Function at 0x40300a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403037
mov ecx, dword [0x41f1d8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41f184], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403135
cmp eax, edi
jl 0x40312e
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40312b
cmp dword [ebp - 4], esi
jne 0x40312b
push dword [ebp + 8]
add dword [0x41f184], esi
call fcn.00403135
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40312e
cmp dword [ebp + 0x10], edi
jne 0x4030fa
cmp dword [ebp + 8], edi
jle 0x403126
mov esi, 0x41b170
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4030aa
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40312b
cmp edi, dword [ebp - 4]
jne 0x40312b
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030f6
cmp dword [ebp + 0x14], edi
jne 0x4030f6
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41f184], eax
cmp dword [ebp + 8], 0
jg 0x40309d
jmp 0x403126
push 0xfffffffffffffffe
jmp 0x40312d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403105
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40312b
mov eax, dword [ebp - 4]
add dword [0x41f184], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40312e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403135
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41f184]
sub esi, dword [0x40b0e0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x41f170], eax
jle 0x40329d
push dword [0x41f194]
call fcn.004032e6
push ebx
push ebx
push dword [0x40b0e0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f18c], esi
mov dword [0x41f178], ebx
mov ebp, 0x40b170
mov eax, dword [0x41f188]
mov edi, 0x4000
sub eax, dword [0x41f194]
cmp eax, edi
jg 0x4031aa
mov edi, eax
mov esi, 0x41b170
push edi
push esi
call fcn.004032b4
test eax, eax
je 0x403285
add dword [0x41f194], edi
mov dword [0x40b100], esi
mov dword [0x40b104], edi
cmp dword [0x41f174], ebx
je 0x403201
cmp dword [0x409c40], ebx
jne 0x403201
mov eax, dword [0x41f18c]
push ebx
sub eax, dword [0x41f184]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b0e0]
mov dword [0x41f178], eax
call fcn.00402cc5
pop ecx
mov ecx, 0x40b0e8
mov dword [0x40b108], ebp
mov dword [0x40b10c], 0x8000
call fcn.00406425
test eax, eax
jl 0x4032af
mov esi, dword [0x40b108]
sub esi, ebp
je 0x40325f
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40328a
cmp esi, dword [esp + 0x10]
jne 0x40328a
add dword [0x40b0e0], esi
cmp dword [0x40b104], ebx
jne 0x4031d0
jmp 0x40326b
cmp dword [0x40b104], ebx
jne 0x4032af
cmp edi, ebx
je 0x4032af
mov eax, dword [0x41f184]
mov ecx, eax
sub ecx, dword [0x40b0e0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x40328e
jmp 0x403194
or eax, 0xffffffff
jmp 0x4032a7
push 0xfffffffffffffffe
jmp 0x4032b1
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402cc5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x4032a7