joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcdbf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xcf09fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xcdc002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00cdfdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xcdc002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00cd76e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00ce020b
push 0x10
call fcn.00ce01d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xcdbfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00ccc1c0
jmp 0xcdbfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00cdbb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xcdbff0
mov ecx, edi
call fcn.00ccc2c0
push edi
call fcn.00ce01c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xcdc021
inc ebx
cmp ebx, 0x20
jb 0xcdbf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xcdd250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf1808
push 0xce1288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xcdd329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xcdd329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ce01d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xcdd329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xcdd329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xcdd32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00cdd351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcddd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcddd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xcddd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcddd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xcddd94
push eax
push esi
call fcn.00ce020b
add esp, 8
pop esi
ret 0x10

Function at 0xcddda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcdde22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xcdde15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xcf6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cdfdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xcdddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xcdde30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcddec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xcddeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xcf6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cdfdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xcddeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xcdde6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xcde000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xcde131
push esi
call fcn.00ce1145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00cd0080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcde131
push 0
push ebp
call fcn.00cd03a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cd0260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcde08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00cd02f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcde121
push 0xcf6918
push edi
call fcn.00cdf3f0
push eax
push ebx
push esi
call fcn.00cddf60
push 0xcf68f8
push edi
call fcn.00cdf3f0
push eax
push ebx
push esi
call fcn.00cddf60
push 0xcf68d8
push edi
call fcn.00cdf3f0
push eax
push ebx
push esi
call fcn.00cddf60
push 0xcf68c0
push edi
call fcn.00cdf3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00cddf60
push 0xcf68a0
push edi
call fcn.00cdf3f0
push eax
push ebx
push esi
call fcn.00cddf60
push 0xcf6888
push edi
call fcn.00cdf3f0
push eax
push ebx
push esi
call fcn.00cddf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xcdf1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cdf140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cdf140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cdf140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cdf140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcdfbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcdfc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcf187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcdfc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcdfc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Get file size
Set file attributes
Write file on windows

Disassembly:
push esi
push edi
push 0x4030c4
push 0xa0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
mov dword [0x404338], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x405398], eax
mov eax, dword [0x404338]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [0x404350], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 4
push 0
push 0
push 0x10000000
push str.APP.bin
mov dword [0x404354], eax
call esi
mov ecx, dword [0x405398]
mov edx, dword [0x404354]
push 0
push 0x405398
push ecx
push edx
push eax
mov dword [0x40435c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x40435c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 2
push str.APP_bin
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push str.APP.bin
call esi
push 0
push eax
mov dword [0x40435c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x404f60], eax
test eax, eax
jne 0x4010d9
mov ecx, dword [0x40435c]
push ecx
call edi
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x401200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], eax
cmp cx, dx
jae 0x401233
push esi
mov si, word [ebp - 4]
push edi
mov eax, 0x404760
movzx ecx, dx
mov edi, edi
movzx edi, byte [eax]
add si, di
inc eax
dec ecx
jne 0x401220
mov word [ebp - 4], si
mov eax, dword [ebp - 4]
pop edi
pop esi
not eax
movzx ecx, ax
movzx eax, dx
mov dl, cl
mov dword [ebp - 4], ecx
mov byte [eax + 0x404760], dl
mov edx, dword [0x404348]
shr ecx, 8
push 0
mov byte [eax + 0x404761], cl
lea ecx, [ebp - 4]
push ecx
add eax, 2
push eax
push 0x404760
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x401280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
lea edx, [esi + 3]
mov dword [ebp - 0x14], 0xea60
mov dword [ebp - 0x18], esi
mov word [0x404760], 5
mov byte [0x404762], 0xc0
call fcn.00401200
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
mov ecx, dword [0x404348]
lea eax, [ebp - 0x10]
push eax
push 0x404340
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 0xc]
mov edi, eax
test eax, eax
je 0x401381
mov edx, dword [0x404348]
push 0x40536c
push 0x404008
push eax
push 0x404f68
push edx
call ebx
xor ecx, ecx
test edi, edi
je 0x401381
mov edx, dword [0x404358]
lea esp, [esp]
mov al, byte [ecx + 0x404f68]
mov byte [edx + 0x404360], al
cmp al, 0x55
jne 0x401327
mov esi, 1
jmp 0x401352
cmp esi, 2
jne 0x401343
cmp al, 0xf
je 0x401352
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d92
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x40134e
cmp al, 0xc0
jne 0x401330
jmp 0x401352
test esi, esi
je 0x40135f
inc esi
cmp esi, 0xf
jb 0x40135f
mov dword [ebp - 0x18], 1
inc edx
mov dword [0x404358], edx
cmp edx, 0x400
jbe 0x401376
xor edx, edx
mov dword [0x404358], edx
inc ecx
cmp ecx, edi
jb 0x401310
cmp dword [ebp - 0x18], 0
jne 0x4013a5
mov eax, dword [ebp - 0x14]
mov ecx, eax
dec eax
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x4012c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00401d92
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x405368]
push ebx
xor ebx, ebx
mov ecx, eax
push esi
mov byte [0x404763], al
shr ecx, 8
shr eax, 0x10
push edi
lea edx, [ebx + 0xf]
mov dword [ebp - 0x14], 0xea60
xor esi, esi
mov dword [ebp - 0x18], ebx
mov word [0x404760], 0x11
mov byte [0x404762], 0xc2
mov byte [0x404764], cl
mov byte [0x404765], al
mov dword [0x404766], 9
mov dword [0x40476a], ebx
mov byte [0x40476e], bl
call fcn.00401200
lea esp, [esp]
mov eax, dword [0x404348]
lea edx, [ebp - 0x10]
push edx
push 0x404340
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 0xc]
mov edi, eax
cmp eax, ebx
jbe 0x4014f0
mov ecx, dword [0x404348]
push 0x40536c
push 0x404008
push eax
push 0x404f68
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp edi, ebx
jbe 0x4014f0
mov edx, dword [0x404358]
jmp 0x401480
mov al, byte [ecx + 0x404f68]
mov byte [edx + 0x404360], al
cmp al, 0x55
jne 0x401497
mov esi, 1
jmp 0x4014c2
cmp esi, 2
jne 0x4014b3
cmp al, 0x13
je 0x4014c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d92
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x4014be
cmp al, 0xc2
jne 0x4014a0
jmp 0x4014c2
cmp esi, ebx
je 0x4014cf
inc esi
cmp esi, 0x13
jb 0x4014cf
mov dword [ebp - 0x18], 1
inc edx
mov dword [0x404358], edx
cmp edx, 0x400
jbe 0x4014e6
xor edx, edx
mov dword [0x404358], edx
inc ecx
cmp ecx, edi
jb 0x401480
cmp dword [ebp - 0x18], ebx
jne 0x401514
mov eax, dword [ebp - 0x14]
mov edx, eax
dec eax
mov dword [ebp - 0x14], eax
test edx, edx
jne 0x401430
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00401d92
mov esp, ebp
pop ebp
ret
Function at 0x401530
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40434c]
push ebx
lea edx, [ecx + 0xb]
movzx ebx, dx
mov edx, ebx
shr edx, 8
mov byte [0x404761], dl
mov edx, eax
shr edx, 8
mov byte [0x404763], al
mov byte [0x404764], dl
mov edx, eax
shr eax, 0x18
mov byte [0x404766], al
push esi
xor esi, esi
mov eax, ecx
shr edx, 0x10
shr eax, 8
push edi
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x18], esi
mov byte [0x404760], bl
mov byte [0x404762], 0xc3
mov byte [0x404765], dl
mov byte [0x404767], cl
mov byte [0x404768], al
cmp ecx, esi
jbe 0x4015bc
push ecx
push 0x404b60
push 0x404769
call fcn.00401eb0
add esp, 0xc
add ebx, 0xfffe
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp cx, bx
jae 0x4015f1
mov dx, word [ebp - 0x14]
mov eax, 0x404760
movzx ecx, bx
lea ebx, [ebx]
movzx edi, byte [eax]
add dx, di
inc eax
dec ecx
jne 0x4015e0
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x14]
not eax
movzx ecx, ax
movzx eax, bx
mov dl, cl
mov dword [ebp - 0x14], ecx
mov byte [eax + 0x404760], dl
mov edx, dword [0x404348]
shr ecx, 8
push esi
mov byte [eax + 0x404761], cl
lea ecx, [ebp - 0x14]
push ecx
add eax, 2
push eax
push 0x404760
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x404348]
lea eax, [ebp - 0x10]
push eax
push 0x404340
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 0xc]
mov ebx, eax
test eax, eax
je 0x4016f1
mov edx, dword [0x404348]
push 0x40536c
push 0x404008
push eax
push 0x404f68
push edx
call edi
xor ecx, ecx
test ebx, ebx
je 0x4016f1
mov edx, dword [0x404358]
lea ecx, [ecx]
mov al, byte [ecx + 0x404f68]
mov byte [edx + 0x404360], al
cmp al, 0x55
jne 0x401697
mov esi, 1
jmp 0x4016c2
cmp esi, 2
jne 0x4016b3
cmp al, 0xa
je 0x4016c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d92
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x4016be
cmp al, 0xc3
jne 0x4016a0
jmp 0x4016c2
test esi, esi
je 0x4016cf
inc esi
cmp esi, 0xa
jb 0x4016cf
mov dword [ebp - 0x18], 1
inc edx
mov dword [0x404358], edx
cmp edx, 0x400
jbe 0x4016e6
xor edx, edx
mov dword [0x404358], edx
inc ecx
cmp ecx, ebx
jb 0x401680
cmp dword [ebp - 0x18], 0
jne 0x401715
mov eax, dword [ebp - 0x1c]
mov ecx, eax
dec eax
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x401631
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d92
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00401d92
mov esp, ebp
pop ebp
ret
Function at 0x401730
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x40435c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401746
push eax
call edi
mov eax, dword [0x404348]
test eax, eax
je 0x401752
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3e9
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
jne 0x401774
push str.Update_was_successful
jmp 0x401775
push ebx
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push str.APP.bin
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x3e9
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 1
push 1
push esi
call edi
push eax
call ebx
push 1
push 0x3ea
push esi
call edi
push eax
call ebx
push 1
push 2
push esi
call edi
push eax
call ebx
pop edi
pop ebx
ret

Function at 0x401d92
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401d9c
repz ret
jmp fcn.00401da1
Function at 0x40626d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x4090d0
call fcn.00406414
cmp word [0x400000], 0x5a4d
jne 0x4062ac
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4062ac
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x4062c5
cmp ecx, 0x20b
je 0x4062b2
and dword [ebp - 0x1c], 0
jmp 0x4062dc
cmp dword [eax + 0x400084], 0xe
jbe 0x4062ac
xor ecx, ecx
cmp dword [eax + 0x4000f8], ecx
jmp 0x4062d6
cmp dword [eax + 0x400074], 0xe
jbe 0x4062ac
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4176f8], 0xffffffff
or dword [0x4176fc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4176f4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4176f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x417700], eax
call fcn.00406410
cmp dword [0x40b1a0], 0
jne 0x406339
push fcn.00406410
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004063fe
push 0x4072cc
push 0x4072c8
call sub.msvcrt.dll__initterm
mov eax, dword [0x4176ec]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4176e8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x4072c4
push 0x4072c0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00404840
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x4063b1
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x4063e6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040644f
ret
Function at 0x403550
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 esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40357a
add eax, dword [0x472e18]
push edi
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033d2
cmp eax, edi
jl 0x403673
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp dword [ebp - 4], esi
jne 0x40366f
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033d2
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403672
cmp dword [ebp + 0x10], edi
jne 0x40363e
cmp dword [ebp + 8], edi
jle 0x40366a
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ee
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp edi, dword [ebp - 4]
jne 0x40366f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp dword [ebp + 0x14], edi
jne 0x40363a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x4035e1
jmp 0x40366a
push 0xfffffffffffffffe
jmp 0x403671
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403649
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403672
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x406034
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rol byte [edi], cl
push ebp
lea eax, [ebp - 0x6f4]
push eax
call fcn.004046ce
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404683
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x406764
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x406239
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
invalid
invalid
mov bh, al