joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e970
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x328]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0040db00
add esp, 8
test eax, eax
je 0x40eaf1
push esi
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 8]
push edx
push 0x41fa98
push 1
push 0
push 0x41faa8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40eae0
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x41fab8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40ead6
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x320]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x324]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x330]
test eax, eax
je 0x40ea3e
mov ecx, dword [esp + 8]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
test esi, esi
jl 0x40eacc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push 0x423318
push eax
call esi
mov eax, dword [esp + 0x328]
test eax, eax
je 0x40ea77
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x423318
push edx
call esi
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
push edi
push ecx
call esi
lea edx, [esp + 0x10]
push str..lnk
push edx
call esi
lea eax, [esp + 0x114]
push 0x104
push eax
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x114]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop edi
add esp, 0x314
ret
mov eax, dword [esp + 8]
pop edi
add esp, 0x314
ret
Function at 0x40f360
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
push ebp
push esi
mov dword [esp + 0x18], eax
push edi
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40f3b3
mov edx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push 0
push 0
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
push 0
mov esi, eax
push 0
push 4
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
push 0
push ebp
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x40f40d
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push 0x8003
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
call dword [0x42024c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x14]
push edx
push 0
push eax
call dword [0x420254]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
call fcn.00419c12
add esp, 4
test esi, esi
jne 0x40f45f
xor eax, eax
jmp 0x40f492
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00419c1d
add esp, 4
test eax, eax
je 0x40f48e
mov cl, byte [esi]
test cl, cl
mov byte [eax], cl
je 0x40f48e
mov ecx, eax
sub esi, eax
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
mov byte [ecx], dl
jne 0x40f483
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
mov dword [ecx], eax
call dword [0x420244]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebp
call esi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x40f8a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x124]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x42651c]
push esi
lea edx, [esp + 0x20]
mov ecx, dword [eax + 0x1c]
push ecx
push str._s_s
push edx
call ebp
mov edi, str.systemcomponents
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.systemcomponents
push esi
call fcn.0041e410
add esp, 0x1c
test eax, eax
jne 0x40f92f
mov edi, str.systemcomponents
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + esi + 1]
mov ecx, dword [0x42651c]
push eax
lea eax, [esp + 0x20]
mov edx, dword [ecx + 0x1c]
push edx
push str._s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040dbe0
add esp, 4
test eax, eax
jne 0x40f94b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
lea edx, [esp + 0x1c]
xor bl, bl
push edx
call fcn.0040c1b0
add esp, 4
test eax, eax
je 0x40f9aa
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x18], 0
call fcn.0040f360
mov eax, dword [esp + 0x18]
lea edx, [esi + 0x208]
push edx
push eax
call fcn.0040f4d0
add esp, 0x10
test eax, eax
jne 0x40f98f
mov bl, 1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00419c12
mov edi, dword [esi + 0x608]
add esp, 4
test bl, bl
jne 0x40fa5a
push 0
push 0x80
push 2
push 0
push 1
lea edx, [esp + 0x30]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40f9db
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [0x426520]
lea edx, [esp + 0x10]
xor ebx, ebx
push edx
mov dword [esp + 0x14], ebx
mov eax, dword [ecx]
lea edx, [esi + 0x104]
push edx
call dword [eax + 4]
mov edi, eax
cmp edi, ebx
je 0x40fa42
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
push ecx
mov dword [esp + 0x20], ebx
call fcn.00408520
mov edx, dword [esp + 0x10]
mov ebx, eax
push edx
call fcn.00419c12
mov ecx, dword [esp + 0x18]
add esp, 4
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x14]
push edx
call fcn.00419c12
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40fa5a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
lea eax, [esi + 0x208]
push 0x4262f0
push eax
push str.hash
push esi
call fcn.004090b0
push 0
push edi
call fcn.0040f860
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x410170
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push str.MUPThreadCreation
push 0
push 0
push 0
call esi
push str.MUPThreadStartUpgrade
push 0
push 0
push 0
mov ebp, eax
call esi
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [0x42650c], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [0x4264f8], ebp
mov dword [0x426518], eax
mov dword [0x426508], ecx
lea esi, [ebx + 0x61b]
call fcn.00419c12
add esp, 4
test esi, esi
jne 0x4101d5
xor eax, eax
jmp 0x410204
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00419c1d
add esp, 4
test eax, eax
je 0x410204
mov cl, byte [esi]
test cl, cl
mov byte [eax], cl
je 0x410204
mov ecx, eax
sub esi, eax
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
mov byte [ecx], dl
jne 0x4101f9
push 0
mov dword [0x4264fc], eax
lea esi, [ebx + 0x71a]
call fcn.00419c12
add esp, 4
test esi, esi
jne 0x410221
xor eax, eax
jmp 0x410250
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00419c1d
add esp, 4
test eax, eax
je 0x410250
mov cl, byte [esi]
test cl, cl
mov byte [eax], cl
je 0x410250
mov ecx, eax
sub esi, eax
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
mov byte [ecx], dl
jne 0x410245
push 0
mov dword [0x426500], eax
lea esi, [ebx + 0x819]
call fcn.00419c12
add esp, 4
test esi, esi
jne 0x41026d
xor eax, eax
jmp 0x41029c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00419c1d
add esp, 4
test eax, eax
je 0x41029c
mov cl, byte [esi]
test cl, cl
mov byte [eax], cl
je 0x41029c
mov ecx, eax
sub esi, eax
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
mov byte [ecx], dl
jne 0x410291
push 0x4262ec
push 0
push 0x4264f8
push 0x40fe10
push 0
push 0
mov dword [0x426504], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebp
mov dword [0x4262e8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x411420
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
call fcn.004113d0
mov esi, dword [esp + 0x1c]
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [esi], 0
je 0x411499
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push ebx
push ebp
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41147a
mov ecx, dword [esi]
push ecx
call fcn.00419c1d
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
push esi
push ebx
push ebp
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411485
push ebx
call fcn.00419c12
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push edi
call fcn.00411410
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret 0xc
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x4114b0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov ebx, ecx
call fcn.004113d0
mov esi, eax
xor eax, eax
test esi, esi
je 0x411511
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4114e4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4114fc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
xor edx, edx
push edi
test eax, eax
sete dl
push esi
mov ecx, ebx
mov edi, edx
call fcn.00411410
mov eax, edi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x411ab0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0xa4]
push 0x80
stosw word es:[edi], ax
mov ecx, dword [esi + 0x14]
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x1c]
sub edi, eax
mov edx, ebx
mov ebp, dword [sym.imp.USER32.dll_DrawTextExA]
push 0
push 0x401
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x18]
push edx
push 0xffffffffffffffff
push eax
push ecx
call ebp
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
sub edi, eax
mov eax, dword [ebx + 4]
shr edi, 1
add eax, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0xc]
push eax
push ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.GDI32.dll_SetTextColor]
test byte [esi + 0x10], 1
je 0x411b8d
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, 2
add edi, eax
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xac]
push eax
push ecx
push edx
push esi
call fcn.00411860
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
add esp, 0x14
push 1
push eax
call edi
push 0
lea ecx, [esp + 0x14]
push 1
mov ebx, eax
mov eax, dword [esi + 0x18]
push ecx
lea edx, [esp + 0x2c]
push 0xffffffffffffffff
push edx
push eax
call ebp
mov ecx, dword [esi + 0x18]
push ebx
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x412560
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + eax*4 + 0x50]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov edi, eax
test edi, edi
jle 0x4125ee
mov eax, dword [esi + 0x80]
mov ecx, eax
sub ecx, edi
js 0x4125ee
mov edx, dword [esi + ecx*4 + 0x50]
test edx, edx
je 0x4125ee
mov eax, dword [esi + eax*4 + 0x50]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov dword [eax + 0x28], 0
mov ecx, dword [esi + 0x80]
sub ecx, edi
mov edx, dword [esi + ecx*4 + 0x50]
mov eax, dword [edx + 8]
push eax
call ebx
mov ecx, dword [esi + 0x80]
push 0
mov edx, dword [esi + ecx*4 + 0x50]
mov eax, dword [edx + 8]
push eax
call ebx
mov eax, dword [esi + 0x80]
sub eax, edi
mov dword [esi + 0x80], eax
mov ecx, dword [esi + eax*4 + 0x50]
mov dword [ecx + 0x28], 0
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + edx*4 + 0x50]
mov eax, dword [ecx]
call dword [eax + 0x34]
pop ebx
pop edi
pop esi
ret

Function at 0x412600
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + eax*4 + 0x50]
mov edx, dword [ecx]
call dword [edx + 0x28]
mov edi, eax
test edi, edi
jle 0x412697
mov eax, dword [esi + 0x80]
mov edx, dword [esi + 0x78]
lea ecx, [eax + edi]
cmp ecx, edx
jg 0x412697
mov edx, dword [esi + ecx*4 + 0x50]
test edx, edx
je 0x412697
mov eax, dword [esi + eax*4 + 0x50]
mov ecx, edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [eax + 0x28], 0
mov eax, dword [esi + 0x80]
add ecx, eax
push 5
mov edx, dword [esi + ecx*4 + 0x50]
mov eax, dword [edx + 8]
push eax
call ebx
mov ecx, dword [esi + 0x80]
push 0
mov edx, dword [esi + ecx*4 + 0x50]
mov eax, dword [edx + 8]
push eax
call ebx
mov eax, dword [esi + 0x80]
add eax, edi
mov dword [esi + 0x80], eax
mov ecx, dword [esi + eax*4 + 0x50]
mov dword [ecx + 0x28], 1
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + edx*4 + 0x50]
mov eax, dword [ecx]
call dword [eax + 0x34]
pop ebx
mov edx, dword [esi + 0x90]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x90]
lea eax, [esp + 8]
push 2
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 0x90]
lea edx, [esp + 8]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x90]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4126f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x80]
push 0
mov ecx, dword [esi + eax*4 + 0x50]
mov dword [ecx + 0x28], 0
mov edx, dword [esi + 0x80]
mov eax, dword [esi + edx*4 + 0x50]
mov ecx, dword [eax + 8]
push ecx
call edi
mov eax, dword [esi + 0x78]
push 5
dec eax
mov dword [esi + 0x80], eax
mov edx, dword [esi + eax*4 + 0x50]
mov eax, dword [edx + 8]
push eax
call edi
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + ecx*4 + 0x50]
mov dword [edx + 0x28], 1
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + eax*4 + 0x50]
mov edx, dword [ecx]
call dword [edx + 0x34]
pop edi
pop esi
ret

Function at 0x4127c1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
mov eax, dword [esi + 0x90]
push 0x417
push eax
mov dword [esi + 0x94], 1
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov ecx, dword [esi + 0x90]
push 0
push 0x3ec
push ecx
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x413080
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x84]
push eax
call ebx
mov ecx, dword [esi + 0x50]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov edx, dword [ecx + 8]
push edx
call edi
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [esi + 0x90]
push 5
push ecx
call edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov eax, dword [esi + 0x80]
test eax, eax
jl 0x413137
mov edx, dword [esi + eax*4 + 0x50]
mov eax, dword [edx + 8]
test eax, eax
je 0x413137
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.0040ebf0
add esp, 4
test eax, eax
jne 0x4130ca
mov eax, dword [esi + 0x90]
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
jne 0x4130ca
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00412f00
test al, al
jne 0x4130ca
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4130ca
mov ecx, dword [esi + 0x90]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [esi + 0x84]
push 1
push edx
call ebx
mov eax, dword [esi + 0x90]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x414edc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x414f23
cmp edx, 0x10
jl 0x414f0f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x414efc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x414f23
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x414f1b
and edx, 3
cmp edx, 3
jne 0x414f37
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x414f3c
cmp edx, 2
jne 0x414f48
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x414f4d
cmp edx, 1
jne 0x414f53
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x41b289
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423d30
cmp edx, dword [eax]
je 0x41b2ab
add eax, 8
inc ecx
cmp eax, 0x423dc0
jl 0x41b29c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423d30]
jne 0x41b3d9
mov eax, dword [0x42770c]
cmp eax, 1
je 0x41b3b3
test eax, eax
jne 0x41b2dc
cmp dword [0x423968], 1
je 0x41b3b3
cmp edx, 0xfc
je 0x41b3d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b313
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c5a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041ca30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b356
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041ca30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420038
push edi
call fcn.00419c60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c5a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c5b0
lea eax, [ebp - 0xa0]
push 0x420018
push eax
call fcn.0041c5b0
push dword [esi + 0x423d34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c5b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041d2b2
add esp, 0x2c
pop edi
jmp 0x41b3d9
lea eax, [ebp + 8]
lea esi, [esi + 0x423d34]
push 0
push eax
push dword [esi]
call fcn.0041ca30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402790
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e51d4
mov eax, dword fs:[0]
push eax
sub esp, 0x3dc
mov eax, dword [0x525060]
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 esi, ecx
mov dword [ebp - 0x3cc], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x3d0], esi
mov dword [esi + 0x10], 0
jb 0x4027f2
mov eax, dword [esi]
jmp 0x4027f4
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
cmp dword [esi + 0x2c], 0x10
jb 0x402817
mov eax, dword [esi + 0x18]
jmp 0x40281a
lea eax, [esi + 0x18]
mov byte [eax], 0
push 0x104
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
jne 0x40285d
xor ecx, ecx
jmp 0x40286f
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402866
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402c90
sub esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
mov byte [ebp - 0x21c], 0x5f
lea ecx, [ebp - 0x234]
push eax
call fcn.00402c30
mov ebx, eax
lea ecx, [ebp - 0x234]
cmp ebx, 0xffffffff
je 0x402985
sub esp, 8
mov byte [ebp - 0x21c], 0x2e
lea eax, [ebp - 0x21c]
push eax
call fcn.00402c30
lea ecx, [ebp - 0x234]
cmp eax, ebx
jl 0x402985
sub eax, ebx
dec eax
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x3e8]
push eax
call fcn.004029d0
push eax
mov ecx, esi
call fcn.00402a80
lea ecx, [ebp - 0x3e8]
call fcn.00402a10
lea eax, [ebp - 0x3c8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xff
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c3b60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402979
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
cmp byte [edx], 0
jne 0x402961
xor ecx, ecx
jmp 0x40296f
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402966
sub ecx, ebx
push ecx
push edx
lea ecx, [esi + 0x18]
call fcn.00402c90
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x234]
call fcn.00402a10
mov eax, esi
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.00412614
mov esp, ebp
pop ebp
ret