joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b8464
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5b8578
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x5b8590
call fcn.0040c20c
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 4]
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5b854e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x16c]
test eax, eax
jle 0x5b8532
mov dword [ebx], edi
mov edx, 0x5b85dc
mov eax, dword [ebp - 8]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebx + 0x124], eax
mov edx, 0x5b85ec
mov eax, dword [ebp - 8]
call fcn.0055d44c
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040a8e0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 4]
mov ecx, 0xff
call fcn.004059cc
mov edx, 0x5b8600
mov eax, dword [ebp - 8]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov byte [ebx + 0x128], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8555
cmp dword [ebp - 8], 0
je 0x5b854d
mov eax, dword [ebp - 8]
call fcn.00404700
ret
Function at 0x5b8be8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5b8bf1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5b8dd2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405704
test byte [ebx + 0x110], 1
je 0x5b8c70
lea eax, [ebp - 8]
push eax
push 0x5b8de8
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00405978
push dword [ebp - 0x1c]
push 0x5b8de8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405ac4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040a984
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x5b8df4
call fcn.0040c20c
test byte [ebx + 0x110], 2
je 0x5b8d5e
cmp dword [ebp - 8], 0
je 0x5b8c90
lea eax, [ebp - 8]
mov edx, 0x5b8e10
call fcn.004059fc
fld qword [ebx + 0x100]
fcomp qword [ebx + 0x108]
wait
fnstsw ax
sahf
jne 0x5b8ceb
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x104]
push dword [ebx + 0x100]
lea eax, [ebp - 0x28]
call fcn.0053ed58
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a984
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x5b8e20
call fcn.0040c20c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004059fc
jmp 0x5b8d5e
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x104]
push dword [ebx + 0x100]
lea eax, [ebp - 0x44]
call fcn.0053ed58
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0040a984
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
push dword [ebx + 0x10c]
push dword [ebx + 0x108]
lea eax, [ebp - 0x4c]
call fcn.0053ed58
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0040a984
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x5b8e44
call fcn.0040c20c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.004059fc
lea eax, [ebp - 4]
mov edx, 0x5b8e8c
call fcn.0040579c
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0040c20c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 4]
call fcn.0040579c
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005b919c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8dd9
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00405728
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00405728
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405728
ret
Function at 0x5c372c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5c3734
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c393d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5c3954
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x3ec]
call fcn.004b4ac4
push dword [ebp - 0x14]
push 0x5c3970
push 0x5c397c
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x3f0]
call fcn.004b4ac4
push dword [ebp - 0x18]
push 0x5c3970
push 0x5c3990
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x3f4]
call fcn.004b4ac4
push dword [ebp - 0x1c]
push 0x5c3970
push 0x5c39a0
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x404]
call fcn.004b4ac4
push dword [ebp - 0x20]
push 0x5c3970
push 0x5c39b0
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x3f8]
call fcn.004b4ac4
push dword [ebp - 0x24]
push 0x5c3970
push 0x5c39c4
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x3fc]
call fcn.004b4ac4
push dword [ebp - 0x28]
push 0x5c3970
push 0x5c39d8
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x400]
call fcn.004b4ac4
push dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 0x14
call fcn.00405ac4
push 0x5c39e8
lea eax, [ebp - 0x30]
mov edx, dword [0x5e671c]
mov edx, dword [edx]
add edx, 0x14
call fcn.00405978
push dword [ebp - 0x30]
lea eax, [ebp - 0x34]
mov edx, dword [0x5e671c]
mov edx, dword [edx]
add edx, 0x214
call fcn.00405978
push dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405ac4
lea eax, [ebp - 0x38]
mov edx, dword [0x5e671c]
mov edx, dword [edx]
add edx, 0xf18
call fcn.00405978
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 0x5c39fc
call fcn.00405a48
lea eax, [ebp - 0x10]
mov edx, 0x5c3a10
call fcn.0040579c
lea edx, [ebp - 0x3c]
mov eax, dword [0x5e671c]
mov eax, dword [eax]
mov eax, dword [eax + 0xe14]
call fcn.0040a320
mov edx, dword [ebp - 0x3c]
mov eax, 0x5c3a44
call fcn.00405d0c
test eax, eax
jne 0x5c38b9
lea eax, [ebp - 0x10]
mov edx, 0x5c3a54
call fcn.0040579c
push dword [ebp - 0x10]
push 0x5c3a88
push dword [ebp - 8]
push 0x5c3a94
push dword [ebp - 0xc]
push 0x5c3a94
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.00405ac4
push 1
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405bc0
push eax
push 0x5c3a98
push 0x5c3aa8
mov eax, dword [0x5e6b40]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c3944
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00405728
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00405728
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405728
ret
Function at 0x5cb570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405bb0
xor eax, eax
push ebp
push 0x5cb677
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5e651c], 0
jne 0x5cb645
lea ecx, [ebp - 8]
mov edx, pe_nt_image_headers32
mov al, 0x20
call fcn.00405eb4
mov eax, dword [ebp - 8]
call fcn.00405bc0
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetSystemDirectoryA_1
mov edx, 0x5cb68c
mov eax, ebx
call fcn.0040bb60
push ebx
call sub.kernel32.dll_LoadLibraryA_1
mov dword [0x5e651c], eax
cmp dword [0x5e651c], 0
jne 0x5cb602
mov ecx, 0x5cb6a0
mov dl, 1
mov eax, dword [0x4094f0]
call fcn.0040f840
call fcn.00405078
push 0x5cb6d8
mov eax, dword [0x5e651c]
push eax
call sub.kernel32.dll_GetProcAddress_3
mov ebx, eax
mov dword [0x5f0218], ebx
test ebx, ebx
jne 0x5cb634
mov ecx, 0x5cb6ec
mov dl, 1
mov eax, dword [0x4094f0]
call fcn.0040f840
call fcn.00405078
push 0x5e6520
push 0x1c
push 0
push 0
call dword [0x5f0218]
mov eax, dword [ebp + 8]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00405bc0
push eax
push esi
call dword [0x5f0218]
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cb67e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405728
ret
Function at 0x5d4760
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d48e3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
mov ecx, 1
mov edx, dword [0x53ddf4]
call fcn.00407068
add esp, 4
cmp edi, 0xffffffff
jne 0x5d47b3
lea eax, [ebp - 4]
mov edx, 0x5d48fc
call fcn.0040579c
jmp 0x5d47e3
lea eax, [ebp - 4]
mov edx, 0x5d497c
call fcn.0040579c
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0040c20c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040579c
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d48b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x16c]
mov ebx, eax
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x53ddf4]
call fcn.00407068
add esp, 4
mov eax, dword [ebp - 8]
call fcn.0055e978
dec ebx
test ebx, ebx
jl 0x5d489a
inc ebx
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov edx, 0x5d4a90
mov eax, dword [ebp - 8]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x54]
lea edi, [ebx + ebx*2]
mov eax, dword [esi]
fstp qword [eax + edi*8]
wait
mov edx, 0x5d4aa8
mov eax, dword [ebp - 8]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x54]
mov eax, dword [esi]
fstp qword [eax + edi*8 + 8]
wait
mov edx, 0x5d4ab8
mov eax, dword [ebp - 8]
call fcn.0055d44c
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1c]
call fcn.0053e00c
mov eax, dword [esi]
fstp qword [eax + edi*8 + 0x10]
wait
mov eax, dword [ebp - 8]
call fcn.0055ebf8
inc ebx
dec dword [ebp - 0xc]
jne 0x5d4834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d48bd
cmp dword [ebp - 8], 0
je 0x5d48b5
mov eax, dword [ebp - 8]
call fcn.00404700
ret
Function at 0x5d4d18
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5d4e51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405704
lea eax, [ebp - 4]
mov edx, 0x5d4e6c
call fcn.0040579c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.0040c20c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040579c
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 4]
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5d4e24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0055e978
mov edx, 0x5d4ef8
mov eax, dword [ebp - 0xc]
call fcn.0055d44c
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0xc]
call fcn.0055ebf8
jmp 0x5d4dfc
push dword [ebx]
push 0x5d4f14
mov edx, 0x5d4ef8
mov eax, dword [ebp - 0xc]
call fcn.0055d44c
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x24]
mov eax, ebx
mov edx, 3
call fcn.00405ac4
mov eax, dword [ebp - 0xc]
call fcn.0055ebf8
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xa1], 0
je 0x5d4dc9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d4e2b
cmp dword [ebp - 0xc], 0
je 0x5d4e23
mov eax, dword [ebp - 0xc]
call fcn.00404700
ret
Function at 0x5d4f18
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d5036
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x53d590]
call fcn.00407068
add esp, 4
lea eax, [ebp - 4]
mov edx, 0x5d504c
call fcn.0040579c
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0040c20c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040579c
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d5011
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x16c]
mov ebx, eax
push ebx
mov eax, edi
mov ecx, 1
mov edx, dword [0x53d590]
call fcn.00407068
add esp, 4
mov eax, dword [ebp - 8]
call fcn.0055e978
dec ebx
test ebx, ebx
jl 0x5d4ff5
inc ebx
xor esi, esi
mov edx, 0x5d50e4
mov eax, dword [ebp - 8]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [edi]
mov dword [edx + esi*4], eax
mov eax, dword [ebp - 8]
call fcn.0055ebf8
inc esi
dec ebx
jne 0x5d4fd2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5018
cmp dword [ebp - 8], 0
je 0x5d5010
mov eax, dword [ebp - 8]
call fcn.00404700
ret
Function at 0x401034
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x44e588], 1
mov dword [ebp - 0x214], edi
jne 0x401080
mov eax, dword [0x44d32c]
or dword [0x44e588], 1
mov ecx, 0x44d32c
call dword [eax + 0xc]
add eax, 0x10
push 0x43e040
mov dword [0x44e584], eax
call fcn.0041e9fb
pop ecx
mov eax, dword [0x44e584]
cmp dword [eax - 0xc], edi
jne 0x4010c9
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041e7c0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x44e584
call fcn.004015de
mov eax, dword [0x44e584]
add eax, 0xfffffff0
call fcn.00401671
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0041e8c8
leave
ret

Function at 0x4010ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x44e580], 1
mov dword [ebp - 0x214], edi
jne 0x401136
mov eax, dword [0x44d32c]
or dword [0x44e580], 1
mov ecx, 0x44d32c
call dword [eax + 0xc]
add eax, 0x10
push 0x43e04d
mov dword [0x44e57c], eax
call fcn.0041e9fb
pop ecx
mov eax, dword [0x44e57c]
cmp dword [eax - 0xc], edi
jne 0x40117f
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041e7c0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x44e57c
call fcn.004015de
mov eax, dword [0x44e57c]
add eax, 0xfffffff0
call fcn.00401671
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0041e8c8
leave
ret
Function at 0x4011a0
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x43bb2a
call fcn.004399e8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x40135b
mov eax, dword [0x44d32c]
mov esi, 0x44d32c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x44d32c]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x401323
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.004013c0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401217
mov esi, edi
call fcn.004019d0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x401323
lea esi, [ebp - 0x18]
call fcn.004019d0
lea esi, [ebp - 0x1c]
call fcn.00401034
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004013c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40129f
mov esi, edi
call fcn.00401000
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401483
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004013c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40129f
mov esi, edi
call fcn.004019d0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x401323
lea esi, [ebp - 0x18]
call fcn.004019d0
lea esi, [ebp - 0x1c]
call fcn.004010ea
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004013c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40131f
mov esi, edi
call fcn.00401000
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401483
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004013c0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004019a0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40131f
mov esi, edi
call fcn.004019d0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x40133f
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40133f
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401348
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.004019a0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004019a0
mov eax, edi
call fcn.00439a6b
ret
Function at 0x401774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40178b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4017c0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4017bc
cmp edi, eax
jae 0x4017c0
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4017ae
cmp edi, eax
jb 0x4017c4
xor eax, eax
jmp 0x4017ce
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401a77
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
mov word [eax], si
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x401a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401b19
push ebx
push edi
call fcn.0041eb6e
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x401ab2
push 8
pop esi
jmp 0x401b18
push ebx
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401b09
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x441990
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401b09
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x441994
push 0x7e
push dword [ebp + 0xc]
call fcn.0041f58d
add esp, 0x1c
jmp 0x401b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.0041ee5c
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401b1f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
push esi
mov dword [ebp - 0x54], eax
call fcn.00401a77
pop ecx
pop ecx
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c50
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x58], 0xb
call esi
test eax, eax
je 0x401c4d
cmp dword [ebp - 0x50], 0x40
jne 0x401c4d
cmp word [ebp - 0x4c], 0x5a4d
jne 0x401c4d
push edi
push edi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x184]
push eax
push ebx
call esi
test eax, eax
je 0x401c4d
cmp dword [ebp - 0x50], 0xf8
jne 0x401c4d
cmp dword [ebp - 0x184], 0x4550
jne 0x401c4d
push dword [ebp - 0x54]
call fcn.0041eae3
mov ebx, eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x60], edi
call fcn.0041ee38
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x84]
inc eax
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x7e
pop eax
sub eax, ebx
push eax
mov eax, dword [ebp - 0x54]
lea eax, [eax + ebx*2]
push eax
call fcn.0041f58d
add esp, 0x2c
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e8c8
leave
ret
Function at 0x401c5f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x120
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push 0x118
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0041e7c0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x11c
call esi
test eax, eax
jne 0x401cc7
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x114
call esi
test eax, eax
jne 0x401cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d3b
mov eax, dword [ebp - 0x9c]
sub eax, 0
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa8]
mov ecx, str.Unknow_system
je 0x401dc2
dec eax
je 0x401d67
dec eax
jne 0x401dc7
cmp esi, 4
ja 0x401d00
mov ecx, str.Microsoft_Windows_NT
jmp 0x401dc7
cmp esi, 5
jne 0x401d57
mov edx, dword [ebp - 0xa4]
test edx, edx
jne 0x401d4b
mov ecx, str.Microsoft_Windows_2000
lea eax, [ebp - 0x98]
push ebx
movzx ebx, word [ebp - 0xa0]
push ebx
push edx
push esi
push eax
push ecx
push str._s__s__Build__d._d._d_
push dword [ebp + 0x7c]
push edi
call fcn.0041f58d
add esp, 0x20
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.0041e8c8
add ebp, 0x74
leave
ret
cmp edx, 1
jne 0x401d14
mov ecx, str.Microsoft_Windows_XP
jmp 0x401d14
cmp esi, 6
jne 0x401dc7
test edx, edx
jne 0x401d14
mov ecx, str.Microsoft_Windows_Vista
jmp 0x401dc7
cmp esi, 4
jne 0x401dbb
test edx, edx
jne 0x401d92
cmp word [ebp - 0x96], 0x43
je 0x401d8b
cmp word [ebp - 0x96], 0x42
je 0x401d8b
mov ecx, str.Microsoft_Windows_95
jmp 0x401dd0
mov ecx, str.Microsoft_Windows_95_OSR2
jmp 0x401dd0
cmp edx, 0xa
jne 0x401daf
cmp word [ebp - 0x96], 0x41
jne 0x401da8
mov ecx, str.Microsoft_Windows_98_SE
jmp 0x401dd0
mov ecx, str.Microsoft_Windows_98
jmp 0x401dd0
cmp edx, 0x5a
jne 0x401dbb
mov ecx, str.Microsoft_Windows_Me
jmp 0x401dd0
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x401dc7
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x401d14
mov eax, 0x44196c
jmp 0x401d1a