joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56d02b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d9000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x56d076
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0056d1c6
test al, al
jne 0x56d070
sub edx, 2
cmp edx, edi
jne 0x56d056
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x56d098
lea eax, [edi + 2]
cmp edx, eax
je 0x56d098
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0056cf77
add esp, 0x10
jmp 0x56d192
push esi
lea ecx, [ebp - 0x255]
call fcn.0056d1c6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x56d0db
push dword [ebp - 0x25c]
jmp 0x56d088
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x56d118
cmp word [ebp - 0x226], 0
je 0x56d139
cmp word [ebp - 0x226], ax
jne 0x56d118
cmp word [ebp - 0x224], 0
je 0x56d139
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0056cf77
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x56d185
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x56d0f2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x56d16d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x56d192
push 0x56cda7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005723d0
add esp, 0x10
jmp 0x56d162
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00554267
leave
ret

Function at 0x56dc4d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x56dc5e
pop esi
ret
push ebx
push edi
push esi
call fcn.0056dc16
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0056816b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x56dc86
push ebx
push esi
push edi
call fcn.00555fd0
add esp, 0xc
push 0
call fcn.00568131
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x56e056
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056dc9b
Function at 0x573550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57357d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57357d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402300
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.0040e810
mov eax, dword [0x427f18]
push esi
push edi
mov dword [esp + 0x10], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x14]
xor esi, esi
rep stosd dword es:[edi], eax
call fcn.00402240
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x417c94
push edx
call edi
mov eax, dword [esp + 0x1014]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push 0x20019
push esi
push eax
push SysReAllocStringLen
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402379
mov esi, dword [esp + 8]
mov ecx, dword [0x427f18]
xor eax, eax
mov dword [esp + 0x810], ecx
mov ecx, 0x1ff
lea edi, [esp + 0x814]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x810]
push edx
mov edx, dword [esp + 0x101c]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push edx
push esi
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40240f
lea eax, [esp + 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4023f6
mov edx, dword [esp + 0x101c]
lea ecx, [esp + 0x810]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
je 0x402401
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x1008
ret
test esi, esi
je 0x40241a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x1008
ret

Function at 0x402430
Capabilities:
Set registry value

Disassembly:
sub esp, 0x808
mov eax, dword [0x427f18]
push esi
push edi
mov dword [esp + 0x10], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
call fcn.00402240
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x417c94
push edx
call esi
mov eax, dword [esp + 0x814]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0xc]
lea eax, [esp + 8]
xor edi, edi
push edx
push eax
push edi
push 0xf003f
push edi
push edi
lea ecx, [esp + 0x28]
push edi
push ecx
push SysReAllocStringLen
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4024ad
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x81c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x818]
push edx
push esi
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test edi, edi
je 0x4024e6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x808
ret
Function at 0x4025c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x427704]
sub esp, 0x800
test eax, eax
push esi
jne 0x402628
mov eax, dword [0x427f18]
mov edx, dword [esp + 0x80c]
push edi
mov dword [esp + 8], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x80c]
lea ecx, [esp + 8]
push ecx
push edx
push eax
call fcn.00402300
add esp, 0xc
mov esi, eax
test esi, esi
pop edi
je 0x40261e
mov edx, dword [esp + 0x814]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
pop esi
add esp, 0x800
ret
mov eax, dword [esp + 0x818]
test eax, eax
jne 0x402638
mov eax, 0x427708
mov ecx, dword [esp + 0x808]
push eax
mov eax, dword [esp + 0x818]
push 0x400
push eax
push eax
mov eax, dword [esp + 0x81c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop esi
add esp, 0x800
ret
Function at 0x402770
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [0x4276f0], 1
call edi
mov si, ax
and esi, 0x3ff
call edi
shr ax, 0xa
cmp si, 7
jne 0x4027a8
mov dword [0x4276f0], 0
jmp 0x402aa6
cmp si, 9
jne 0x4027bd
mov dword [0x4276f0], 1
jmp 0x402aa6
cmp si, 0xc
jne 0x4027d2
mov dword [0x4276f0], 2
jmp 0x402aa6
cmp si, 0x16
jne 0x4027fb
cmp ax, 1
mov dword [0x4276f0], 3
jne 0x402aa6
mov dword [0x4276f0], 0x10
jmp 0x402aa6
cmp si, 0x19
jne 0x402810
mov dword [0x4276f0], 4
jmp 0x402aa6
cmp si, 0x10
jne 0x402825
mov dword [0x4276f0], 5
jmp 0x402aa6
cmp si, 0xe
jne 0x40283a
mov dword [0x4276f0], 6
jmp 0x402aa6
cmp si, 0x13
jne 0x40284f
mov dword [0x4276f0], 7
jmp 0x402aa6
cmp si, 0x1f
jne 0x402864
mov dword [0x4276f0], 8
jmp 0x402aa6
cmp si, 4
jne 0x40288d
cmp ax, 1
mov dword [0x4276f0], 0xb
jne 0x402aa6
mov dword [0x4276f0], 9
jmp 0x402aa6
cmp si, 0x18
jne 0x4028a2
mov dword [0x4276f0], 0xa
jmp 0x402aa6
cmp si, 0x24
jne 0x4028b7
mov dword [0x4276f0], 0xc
jmp 0x402aa6
cmp si, 0x2a
jne 0x4028cc
mov dword [0x4276f0], 0xd
jmp 0x402aa6
cmp si, 0x1a
jne 0x4028e1
mov dword [0x4276f0], 0xe
jmp 0x402aa6
cmp si, 8
jne 0x4028f6
mov dword [0x4276f0], 0xf
jmp 0x402aa6
cmp si, 0x15
jne 0x40290b
mov dword [0x4276f0], 0x12
jmp 0x402aa6
cmp si, 0x11
jne 0x402920
mov dword [0x4276f0], 0x13
jmp 0x402aa6
cmp si, 0x1d
jne 0x402935
mov dword [0x4276f0], 0x14
jmp 0x402aa6
cmp si, 0x29
jne 0x40294a
mov dword [0x4276f0], 0x15
jmp 0x402aa6
cmp si, 0xd
jne 0x40295f
mov dword [0x4276f0], 0x16
jmp 0x402aa6
cmp si, 2
jne 0x402974
mov dword [0x4276f0], 0x18
jmp 0x402aa6
cmp si, 6
jne 0x402989
mov dword [0x4276f0], 0x19
jmp 0x402aa6
cmp si, 1
jne 0x40299e
mov dword [0x4276f0], 0x1a
jmp 0x402aa6
cmp si, 5
jne 0x4029b3
mov dword [0x4276f0], 0x1b
jmp 0x402aa6
cmp si, 0x12
jne 0x4029c8
mov dword [0x4276f0], 0x1d
jmp 0x402aa6
cmp si, 0xa
jne 0x402a03
mov ecx, 0x1e
cmp ax, 2
mov dword [0x4276f0], ecx
jne 0x4029ea
mov dword [0x4276f0], ecx
jmp 0x402aa6
cmp ax, 8
jne 0x402aa6
mov dword [0x4276f0], 0x22
jmp 0x402aa6
cmp si, 0x14
jne 0x402a18
mov dword [0x4276f0], 0x1f
jmp 0x402aa6
cmp si, 0x3c
jne 0x402a2a
mov dword [0x4276f0], 0x20
jmp 0x402aa6
cmp si, 0x1e
jne 0x402a3c
mov dword [0x4276f0], 0x21
jmp 0x402aa6
cmp si, 0x39
jne 0x402a4e
mov dword [0x4276f0], 0x23
jmp 0x402aa6
cmp si, 0x52
jne 0x402a60
mov dword [0x4276f0], 0x24
jmp 0x402aa6
cmp si, 0x3e
jne 0x402a72
mov dword [0x4276f0], 0x25
jmp 0x402aa6
cmp si, 0x21
jne 0x402a84
mov dword [0x4276f0], 0x26
jmp 0x402aa6
cmp si, 0x64
jne 0x402a96
mov dword [0x4276f0], 0x27
jmp 0x402aa6
cmp si, 0xb
jne 0x402aa6
mov dword [0x4276f0], 0x28
mov eax, dword [0x4276f0]
push eax
push 0x417ca8
call fcn.00402750
add esp, 8
mov dword [0x4276f0], eax
pop edi
pop esi
ret
Function at 0x402e00
Capabilities:
Check mutex on windows
Enumerate gui resources
Hide graphical window

Disassembly:
mov eax, dword [0x424a88]
push esi
mov esi, dword [esp + 8]
push edi
push eax
push 0
push 0
mov dword [0x424a80], esi
mov dword [0x427f08], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0
call edi
cmp eax, 0xb7
je 0x402e44
call edi
cmp eax, 5
jne 0x402e5f
lea ecx, [esp + 0xc]
push ecx
push 0x402180
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
push esi
push 0
push 0
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push SysReAllocStringLen
push SysReAllocStringLen
push 0xcf0002
push 0x424880
push 0x424680
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x3e8
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov eax, 1
pop esi
ret
Function at 0x403a80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x419
push esi
call edi
lea ecx, [esp + 8]
push ecx
push eax
push 0x41d
push esi
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov edx, eax
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 8]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [edx + 0xc], ecx
add esp, 0x10
ret

Function at 0x403ae0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40eb03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
mov eax, dword [esp + 0x428]
xor ebx, ebx
push 0x417ea4
push eax
mov dword [esp + 0x428], ebx
call sub.MSVCRT.dll__wfopen
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x403b51
lea ecx, [esp + 0x428]
mov dword [esp + 0x420], 0xffffffff
call fcn.00401b80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
add esp, 0x41c
ret
push edi
push esi
push 1
lea ecx, [esp + 0x14]
push 2
push ecx
mov dword [esp + 0x1c], ebx
call sub.MSVCRT.dll_fread
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x14
xor edi, edi
cmp word [esp + 0xc], 0xfeff
jne 0x403b7e
mov edi, 1
mov edx, dword [esp + 0x42c]
push 0x417ea4
push edx
call sub.MSVCRT.dll__wfopen
add esp, 8
cmp edi, ebx
mov esi, eax
je 0x403bab
push esi
push 1
lea eax, [esp + 0x14]
push 2
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
mov edi, dword [esp + 0x430]
push 0x400
mov ecx, edi
call fcn.00401ab0
push esi
push 0x400
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], bl
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, ebx
je 0x403c49
cmp word [esp + 0xc], 0xfeff
mov byte [esp + eax + 0x14], bl
jne 0x403bfa
lea edx, [esp + 0x14]
mov ecx, edi
push edx
mov byte [esp + eax + 0x19], bl
call fcn.00401320
jmp 0x403c2c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00401190
lea ecx, [esp + 0x10]
mov byte [esp + 0x424], 1
push ecx
mov ecx, edi
call fcn.00401300
lea ecx, [esp + 0x10]
mov byte [esp + 0x424], bl
call fcn.00401b80
push esi
push 0x400
lea edx, [esp + 0x1c]
push 1
push edx
mov byte [esp + 0x24], bl
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, ebx
jne 0x403bdb
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
lea ecx, [esp + 0x42c]
mov dword [esp + 0x424], 0xffffffff
call fcn.00401b80
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret
Function at 0x403ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x73cbff38
xor ecx, ebp
loop 0x403ff8
pop ebp
ret

Function at 0x4047c0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push str.RtlGetNtVersionNumbers
push str.ntdll.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
test eax, eax
je 0x40494a
lea ecx, [esp + 0x10]
push 0x427f6c
lea edx, [esp + 0x10]
push ecx
push edx
call eax
mov ecx, dword [0x427f6c]
mov eax, dword [esp + 0xc]
and ecx, 0xfffffff
cmp eax, 6
mov dword [0x427f6c], ecx
jb 0x40494a
push str.UxTheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40494a
push str.DrawThemeTextEx
push edi
call esi
mov dword [0x427f60], eax
mov eax, dword [esp + 0xc]
cmp eax, 0xa
jb 0x40494a
push 0x31
push edi
call esi
push 0x68
push edi
mov dword [0x427f5c], eax
call esi
push 0x6a
push edi
mov dword [0x427f50], eax
call esi
push 0x84
push edi
mov dword [0x427f58], eax
call esi
push 0x85
push edi
mov dword [0x427f40], eax
call esi
mov dword [0x427f44], eax
mov eax, dword [0x427f6c]
cmp eax, 0x47ba
push 0x87
push edi
jae 0x40489b
call esi
mov dword [0x427f48], eax
jmp 0x4048a2
call esi
mov dword [0x427f68], eax
push 0x89
push edi
call esi
push str.SetWindowCompositionAttribute
push str.user32.dll
mov dword [0x427f54], eax
call ebx
push eax
call esi
mov dword [0x427f3c], eax
mov eax, dword [0x427f5c]
test eax, eax
je 0x40494a
mov eax, dword [0x427f50]
test eax, eax
je 0x40494a
mov eax, dword [0x427f40]
test eax, eax
je 0x40494a
mov ecx, dword [0x427f44]
test ecx, ecx
je 0x40494a
mov ecx, dword [0x427f48]
test ecx, ecx
jne 0x4048fc
mov ecx, dword [0x427f68]
test ecx, ecx
je 0x40494a
mov ecx, dword [0x427f54]
test ecx, ecx
je 0x40494a
mov ebx, 1
mov byte [0x427f30], bl
call eax
test al, al
je 0x404926
call fcn.004046c0
test al, al
mov byte [0x427f31], bl
je 0x40492d
mov byte [0x427f31], 0
mov eax, dword [0x427f38]
test eax, eax
jne 0x40494a
push ebx
call fcn.00404790
add esp, 4
call dword [0x427f50]
call fcn.00402ad0
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x405350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [0x427f34]
sub esp, 0x44
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4054c9
lea ecx, [esp + 0x24]
call fcn.00401000
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x34]
call fcn.00401000
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov ecx, eax
mov bl, ah
sar eax, 0x10
and eax, 0xff
and ecx, 0xff
mov esi, eax
mov eax, dword [esp + 0x64]
mov ebp, eax
mov dword [esp + 0x14], ecx
and ebp, 0xff
mov edx, dword [esp + 0x40]
sub ebp, ecx
xor ecx, ecx
mov cl, ah
and ebx, 0xff
and ecx, 0xff
mov dword [esp + 0x30], edx
sar eax, 0x10
sub ecx, ebx
and eax, 0xff
mov dword [esp + 0x20], ecx
sub eax, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
call fcn.00401060
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00401060
cmp esi, edi
jle 0x405509
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x64], edi
mov edx, dword [esp + 0x28]
lea eax, [edi + edx]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 1]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x54]
call fcn.00401010
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
cdq
idiv esi
mov cl, byte [esp + 0x10]
add al, cl
xor ecx, ecx
mov ch, al
mov eax, dword [esp + 0x58]
cdq
idiv esi
add al, bl
mov cl, al
mov eax, dword [esp + 0x60]
cdq
idiv esi
mov dl, byte [esp + 0x14]
shl ecx, 8
add al, dl
mov edx, dword [esp + 0x18]
and eax, 0xff
or ecx, eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
call fcn.00405310
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x64]
add edx, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x2c]
add esp, 0xc
inc edi
add eax, edx
add ecx, ebp
cmp edi, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ecx
jl 0x405424
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x34]
call fcn.00401000
mov esi, dword [esp + 0x5c]
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
mov ecx, dword [esp + 0x64]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push ecx
push esi
call ebx
push edi
push edi
lea edx, [esp + 0x3c]
push edi
push edx
push 2
push edi
push edi
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebp
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret
Function at 0x405e80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x427fa8]
sub esp, 8
test eax, eax
push esi
push edi
mov esi, ecx
je 0x405eb7
mov eax, dword [eax]
mov dword [esi + 0x214], eax
mov ecx, dword [0x427fac]
add ecx, 4
mov dword [0x427fac], ecx
mov eax, dword [esi + 0x214]
test eax, eax
je 0x406098
jmp 0x405eeb
mov ecx, dword [esi + 0x20c]
lea edi, [esi + 0x214]
push ecx
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x405ee2
push str.Read_Error
mov ecx, esi
call fcn.004058d0
cmp dword [edi], 0
je 0x406098
mov ecx, esi
call fcn.00405ba0
mov ecx, esi
call fcn.00405980
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x214]
mov edi, 0xfc4
test eax, eax
jbe 0x406098
push ebx
push ebp
mov ecx, esi
call fcn.00405bd0
mov ebx, eax
cmp bx, 0x100
jge 0x405fbc
mov eax, dword [0x427fb8]
test eax, eax
je 0x405f68
mov ecx, dword [0x427fbc]
mov ebp, dword [0x427fb4]
lea edx, [ecx + 1]
cmp edx, ebp
jge 0x405f9d
mov byte [ecx + eax], bl
mov eax, dword [0x427fbc]
inc eax
mov dword [0x427fbc], eax
jmp 0x405f9d
mov eax, dword [esi + 0x210]
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x210]
mov ecx, dword [eax + 4]
test ecx, ecx
jl 0x405f90
mov eax, dword [eax]
mov byte [eax], bl
mov eax, dword [esi + 0x210]
inc dword [eax]
jmp 0x405f9d
movsx ecx, bx
push eax
push ecx
call sub.MSVCRT.dll__flsbuf
add esp, 8
mov eax, dword [esp + 0x10]
movsx edx, di
inc edi
and edi, 0xfff
inc eax
mov byte [edx + esi + 0x220], bl
mov dword [esp + 0x10], eax
jmp 0x406084
mov ecx, esi
call fcn.00405d30
mov cx, ax
mov eax, edi
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, 0xfff
test cx, cx
jle 0x406084
movsx ebp, ax
movsx eax, cx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x427fb8]
mov edx, ebp
and edx, 0xfff
test eax, eax
movzx bx, byte [edx + esi + 0x220]
je 0x40602e
mov ecx, dword [0x427fbc]
lea edx, [ecx + 1]
cmp edx, dword [0x427fb4]
jge 0x406063
mov byte [ecx + eax], bl
mov eax, dword [0x427fbc]
inc eax
mov dword [0x427fbc], eax
jmp 0x406063
mov eax, dword [esi + 0x210]
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x210]
mov ecx, dword [eax + 4]
test ecx, ecx
jl 0x406056
mov eax, dword [eax]
mov byte [eax], bl
mov eax, dword [esi + 0x210]
inc dword [eax]
jmp 0x406063
movsx ecx, bx
push eax
push ecx
call sub.MSVCRT.dll__flsbuf
add esp, 8
mov eax, dword [esp + 0x14]
movsx edx, di
inc edi
and edi, 0xfff
inc ebp
dec eax
mov byte [edx + esi + 0x220], bl
mov dword [esp + 0x14], eax
jne 0x405ff3
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x214]
cmp eax, ecx
jb 0x405f28
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x406210
Capabilities:
Check os version
Contain obfuscated stackstrings

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ebc0
push eax
mov eax, dword [0x429fac]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, 1
push esi
cmp eax, ebx
push edi
je 0x4063cd
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, 0x45
xor eax, eax
mov edi, 0x429e30
rep stosd dword es:[edi], eax
push 0x429e30
mov dword [0x429fac], ebx
mov dword [0x429e30], 0x114
call esi
mov eax, dword [0x429e34]
mov ecx, dword [0x429e38]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
lea ecx, [esp + 0x10]
mov dword [0x429fa8], eax
call fcn.004010c0
mov eax, dword [0x429e34]
mov dword [esp + 0x2c], 0
cmp eax, 5
jb 0x4063bc
mov ecx, 0x47
xor eax, eax
mov edi, 0x429020
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [0x429020], 0x11c
call fcn.004010c0
mov byte [esp + 0x2c], bl
lea edx, [esp + 0x14]
mov al, 0x64
mov bl, 0x6c
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x18], 0x6e
mov byte [esp + 0x19], 0x74
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x2e
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0
call fcn.004012b0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x406385
mov cl, 0x65
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x18], cl
mov byte [esp + 0x1b], cl
lea ecx, [esp + 0x14]
mov byte [esp + 0x15], 0x74
push ecx
push eax
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0x47
mov byte [esp + 0x21], 0x74
mov byte [esp + 0x22], 0x56
mov byte [esp + 0x24], 0x72
mov byte [esp + 0x25], 0x73
mov byte [esp + 0x26], 0x69
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6e
mov byte [esp + 0x29], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406385
push 0x429020
call eax
mov eax, dword [0x429024]
test eax, eax
je 0x406385
mov dword [0x429e34], eax
jmp 0x406398
push 0x429020
call esi
mov ecx, dword [0x429024]
mov dword [0x429e34], ecx
mov edx, dword [0x429028]
mov eax, dword [0x42902c]
lea ecx, [esp + 0xc]
mov dword [0x429e38], edx
mov dword [0x429e3c], eax
mov byte [esp + 0x2c], 0
call fcn.00401b80
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00401b80
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret