joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4354b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x50]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.005369e0
add esp, 0xc
mov dword [ebp - 0x50], 0x44
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x60]
lea eax, [ebp + 8]
xorps xmm0, xmm0
cmovae eax, dword [ebp + 8]
or esi, 0x8000000
push ecx
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push esi
push 0
push 0
push 0
push eax
movups xmmword [ebp - 0x60], xmm0
call fcn.0053d57a
add esp, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x435522
xor esi, esi
jmp 0x435546
test edi, edi
je 0x435531
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c]
call esi
mov esi, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x43555b
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042ceb0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00533845
mov esp, ebp
pop ebp
ret
Function at 0x435570
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x5c49f0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
push 0x124
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push 0
push eax
mov esi, edx
call fcn.005369e0
mov ecx, esi
mov dword [esp + 0x24], pe_nt_image_headers32
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4355b4
sub ecx, edx
push 0
push 2
setne byte [esp + 0x1b]
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4356cc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [eax]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
call ebx
test eax, eax
jne 0x435668
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x144]
call fcn.00435360
cmp byte [esp + 0x13], 0
je 0x4356a5
cmp byte [esi], 0
jne 0x435623
xor eax, eax
jmp 0x435631
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435628
sub eax, edx
push eax
push ecx
push esi
lea ecx, [esp + 0x150]
call fcn.0042bba0
cmp eax, 0xffffffff
jne 0x4356a5
mov eax, dword [esp + 0x158]
cmp eax, 0x10
jb 0x435670
inc eax
lea ecx, [esp + 0x144]
push eax
push dword [esp + 0x148]
call fcn.0042ceb0
jmp 0x435670
mov dword [esp + 0x18], pe_nt_image_headers32
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4355f0
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00533845
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x158]
mov esi, dword [esp + 0x20]
cmp ecx, 0x10
jb 0x435687
inc ecx
push ecx
push dword [esp + 0x148]
lea ecx, [esp + 0x14c]
call fcn.0042ceb0
jmp 0x435687
mov ecx, dword [esp + 0x15c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00533845
mov esp, ebp
pop ebp
ret
Function at 0x435880
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd10
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x5c49f0]
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, dword [ebp + 8]
mov dword [ebp - 0x414], 0
lea eax, [ecx + 4]
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x4358cc
mov eax, dword [eax]
cmp dword [ebp + 0x38], 0x10
lea edx, [ebp + 0x24]
lea edi, [ebp + 0xc]
cmovae edx, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 0x10
cmovae edi, dword [ebp + 0xc]
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x4358ed
mov ecx, dword [ecx]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x410], 0
jne 0x435921
xor ecx, ecx
jmp 0x435939
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435930
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.0042c1e0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x43595d
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0042ceb0
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp ecx, 0x10
jb 0x435984
inc ecx
push ecx
push dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
call fcn.0042ceb0
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.00533845
mov esp, ebp
pop ebp
ret 0x34
Function at 0x435a10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dd5e
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x5c49f0]
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
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
call fcn.0042c2e0
push 1
push 0x5b0c88
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.0042c4c0
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push str._s.
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00434800
add esp, 0x10
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x435c11
nop word [eax + eax]
test byte [ebp - 0x568], 0x10
lea eax, [ebp - 0x53c]
je 0x435ba0
push 0x5b13dc
push eax
call fcn.00540615
add esp, 8
test eax, eax
je 0x435be2
lea eax, [ebp - 0x53c]
push 0x5b13e0
push eax
call fcn.00540615
add esp, 8
test eax, eax
je 0x435be2
lea eax, [ebp - 0x53c]
push eax
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x580]
call fcn.0042dc00
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x435b4e
mov esi, dword [esi]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x435b6b
mov eax, dword [edx]
jmp 0x435b6d
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x435b79
xor ecx, ecx
jmp 0x435b89
mov ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435b80
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.0042c1e0
call fcn.00435a10
add esp, 0x18
mov byte [ebp - 4], 1
jmp 0x435bc4
push eax
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x580]
call fcn.0042dc00
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x435bbd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x56c]
cmp eax, 0x10
jb 0x435be2
inc eax
lea ecx, [ebp - 0x580]
push eax
push dword [ebp - 0x580]
call fcn.0042ceb0
lea eax, [ebp - 0x568]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x435ae0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x435c2f
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.0042ceb0
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
cmp eax, 0x10
jb 0x435c5f
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0042ceb0
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.00533845
mov esp, ebp
pop ebp
ret
Function at 0x436350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x436376
test al, 0x10
je 0x436376
mov esi, 1
jmp 0x436378
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x43638d
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042ceb0
mov eax, esi
pop esi
pop ebp
ret
Function at 0x436fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55df43
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.005343b0
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0
xor esi, esi
call fcn.00434af0
push 9
push str.Flag.txt
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 1
call fcn.0042c4c0
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1034], 0xf
push eax
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1038], esi
mov byte [ebp - 0x1048], 0
call fcn.0042c2e0
cmp dword [ebp - 0x1034], 0x10
lea eax, [ebp - 0x1048]
cmovae eax, dword [ebp - 0x1048]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x437090
test al, 0x10
jne 0x437090
lea edi, [esi + 1]
jmp 0x437092
xor edi, edi
mov eax, dword [ebp - 0x1034]
cmp eax, 0x10
jb 0x4370b0
inc eax
lea ecx, [ebp - 0x1048]
push eax
push dword [ebp - 0x1048]
call fcn.0042ceb0
test edi, edi
je 0x437163
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
push 0x5b19b8
cmovae eax, dword [ebp - 0x1028]
push eax
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x102c], 0
push eax
call fcn.0053af56
add esp, 0xc
test eax, eax
jne 0x437163
push 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.005369e0
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
call fcn.0053f7a5
add esp, 0x18
test eax, eax
je 0x437144
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00540b30
add esp, 8
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov eax, dword [ebp - 0x102c]
test eax, eax
je 0x437165
push eax
call fcn.0053a2fa
add esp, 4
mov dword [ebp - 0x102c], 0
jmp 0x437165
xor esi, esi
mov eax, dword [ebp - 0x1014]
cmp eax, 0x10
jb 0x437183
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.0042ceb0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1014], 0xf
mov dword [ebp - 0x1018], 0
mov byte [ebp - 0x1028], 0
cmp ecx, 0x10
jb 0x4371b3
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042ceb0
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.00533845
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4371e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x118], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], edi
push edi
push eax
mov esi, edx
mov dword [ebp - 0x110], 1
call fcn.005369e0
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x114]
push eax
push 1
push edi
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4372ad
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push str.DisplayName
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x437282
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4372ad
mov eax, dword [ebp - 0x10c]
cmp dword [ebx], eax
jb 0x4372ad
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x10c]
mov edi, 1
mov dword [ebx], eax
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x4372be
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00533845
mov esp, ebp
pop ebp
ret

Function at 0x43c110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e546
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c49f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [esi], vtable.CLYCtrlBase.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43c15b
mov eax, dword [ecx]
jmp 0x43c15d
mov eax, ecx
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x44], 0
cmp dword [esi + 0x48], 0x10
jb 0x43c180
mov eax, dword [esi + 0x34]
jmp 0x43c183
lea eax, [esi + 0x34]
mov byte [eax], 0
mov byte [ebp - 4], 1
push 4
push 0x5b1b68
mov dword [esi + 4], 0
mov dword [esi + 8], 0xffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0042c1e0
push 0
push 0x5b03e0
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], 0xcc7900
mov dword [esi + 0x30], 0xff3c32
call fcn.0042c1e0
mov dword [esi + 0x4c], 0xe
mov eax, esi
mov dword [esi + 0x50], 1
mov dword [esi + 0x54], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43d610
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings]
mov eax, dword [0x5b1be8]
push esi
movups xmmword [ebp - 0x104], xmm0
push 0xc3
movups xmm0, xmmword [0x5b1bc0]
mov dword [ebp - 0xcc], eax
mov esi, ecx
lea eax, [ebp - 0xc8]
movups xmmword [ebp - 0xf4], xmm0
push 0
movups xmm0, xmmword [0x5b1bd0]
push eax
movups xmmword [ebp - 0xe4], xmm0
movq xmm0, qword [0x5b1be0]
movq qword [ebp - 0xd4], xmm0
call fcn.005369e0
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43d765
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1f4], 4
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43d765
cmp dword [ebp - 0x1f0], eax
je 0x43d765
push 0xe8
push eax
lea eax, [ebp - 0x1ec]
mov dword [esi + 0x1c], 1
push eax
call fcn.005369e0
add esp, 0xc
mov dword [ebp - 0x1f8], 0xe8
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1ec]
push eax
push 0
push 0
push str.ProxyServer
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43d765
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [esi + 4]
call fcn.0042a380
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1fc]
mov dword [esi + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00533845
mov esp, ebp
pop ebp
ret
Function at 0x43e760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e851
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ecx + 0x24c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
mov dword [ebp - 0x48], 0
push 0
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042c2e0
push 7
push str.update
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0042c4c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0xf
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.0042c2e0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43e81d
test al, 0x10
je 0x43e81d
mov edi, 1
jmp 0x43e81f
xor edi, edi
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x43e834
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0042ceb0
test edi, edi
jne 0x43e87d
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0xf
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x44], 0
call fcn.0042c2e0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push edi
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x43e87d
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0042ceb0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x43e8a3
mov eax, dword [esi]
jmp 0x43e8a5
mov eax, esi
push 0xffffffffffffffff
mov byte [eax], 0
mov ecx, esi
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0042c2e0
push 0xb
push str.update.zip
mov ecx, esi
mov dword [ebp - 0x48], 1
call fcn.0042c4c0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x43e8e1
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0042ceb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret 4
Function at 0x43ec60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e88e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5c49f0]
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 edx, ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
call fcn.00434d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x30], eax
test ebx, ebx
jle 0x43edd3
nop dword [eax]
mov ecx, dword [eax + edi*4]
mov edx, str.__initupgrade
mov eax, ecx
nop word [eax + eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x43ed06
test si, si
je 0x43ed02
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x43ed06
add eax, 4
add edx, 4
test si, si
jne 0x43ece0
xor eax, eax
jmp 0x43ed0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43ed18
mov byte [0x5c91ac], 1
jmp 0x43ed56
mov eax, str.__name
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43ed46
test dx, dx
je 0x43ed42
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43ed46
add ecx, 4
add eax, 4
test dx, dx
jne 0x43ed20
xor eax, eax
jmp 0x43ed4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43ed56
lea eax, [edi + 1]
cmp eax, ebx
jl 0x43ed63
inc edi
cmp edi, ebx
jge 0x43edd3
mov eax, dword [ebp - 0x30]
jmp 0x43ecd0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
mov edx, dword [edx + edi*4 + 4]
call fcn.00434fa0
mov esi, eax
cmp esi, 0x5c9408
je 0x43edbe
mov eax, dword [0x5c941c]
cmp eax, 0x10
jb 0x43ed98
inc eax
mov ecx, 0x5c9408
push eax
push dword [0x5c9408]
call fcn.0042ceb0
push esi
mov ecx, 0x5c9408
mov dword [0x5c941c], 0xf
mov dword [0x5c9418], 0
mov byte [0x5c9408], 0
call fcn.0042c6f0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x43edd3
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0042ceb0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x43ede8
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004390a0
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.00533845
mov esp, ebp
pop ebp
ret
Function at 0x43efb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e920
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x58]
call fcn.0043ee10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
push str.flag.txt
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], 0
call fcn.0042dc00
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push 0x5b18fc
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0053af56
add esp, 0xc
cmp dword [ebp - 0x5c], 0
je 0x43f089
push 3
push 0x5b063c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042c1e0
push dword [ebp - 0x5c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0053acb7
push dword [ebp - 0x5c]
call fcn.0053a2fa
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov dword [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x43f089
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ceb0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x43f09e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0042ceb0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x43f0c5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0042ceb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret