joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccb00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x40c], eax
test edi, edi
je 0x4ccc16
call fcn.004cce80
test eax, eax
je 0x4ccc16
mov ecx, ebx
call fcn.004ccaf0
mov esi, eax
test esi, esi
je 0x4ccc16
cmp dword [ebp - 0x40c], 0
je 0x4ccb67
movzx ecx, word [esi + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40c]
mov word [ecx], ax
push 0x401
lea eax, [ebp - 0x408]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push dword [ebx]
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x4ccc69
cmp eax, 0x276d
jne 0x4ccc16
movzx eax, word [esi]
sub eax, 2
je 0x4ccc2b
sub eax, 0x15
jne 0x4ccc16
movzx eax, byte [esi + 0x17]
push eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x14]
push eax
movzx eax, byte [esi + 0x13]
push eax
movzx eax, byte [esi + 0x12]
push eax
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x10]
push eax
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
push str._02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X
push edi
call fcn.004cca00
add esp, 0x48
test eax, eax
jne 0x4ccc51
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str._u._u._u._u
push edi
call fcn.004cca00
add esp, 0x18
test eax, eax
je 0x4ccc16
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x408]
mov ecx, edi
push eax
call fcn.004cd0f0
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
Function at 0x4cf7f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4cf818
or eax, 0xffffffff
jmp 0x4cf8f8
mov eax, dword [ebp - 0xc]
add eax, 1
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf8fe
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4cf852
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jge 0x4cf879
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*4]
push edx
push 0
call fcn.004cf790
add esp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4], eax
jmp 0x4cf849
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax*4], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00464ad0
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
jmp 0x4cf8b5
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4cf8e3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp dword [edx + ecx*4], 0
je 0x4cf8e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004cf101
add esp, 4
jmp 0x4cf8ac
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004cf101
add esp, 4
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4038b5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038cd
push dword [esp + 4]
push 0x40384e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40390a
push esi
mov esi, dword [0x40b1c0]
test esi, esi
je 0x403909
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403901
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b1c0
call fcn.0040681d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038da
pop edi
pop ebx
pop esi
ret 4
Function at 0x405d3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x405daa
push 0x11
call esi
test al, al
js 0x405daa
push 0x10
call esi
test al, al
js 0x405daa
push 0x12
call esi
test al, al
js 0x405daa
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x405daa
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x405dce
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x405dce
dec eax
push eax
push dword [0x40b42c]
call fcn.00406690
mov eax, dword [eax + 8]
jmp 0x405dd0
xor eax, eax
pop esi
leave
ret 4

Function at 0x405f13
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x405f86
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x405f68
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x405f66
cmp dl, 0x5c
je 0x405f66
cmp dl, 0x2f
jne 0x405f72
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x405f52
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x405f88
xor eax, eax
leave
ret 4

Function at 0x405f90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x405fc5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x401280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427e18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x439010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00401550
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401580
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x4014a0
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.00401640
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.00411116
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x401308
lea ecx, [ebp - 0x14]
call fcn.00401730
jmp 0x401319
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.004098e9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004015f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b123
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x40b147
jl 0x40b13e
test esi, esi
jne 0x40b147
xor eax, eax
xor edx, edx
jmp 0x40b23e
cmp dword [edi + 0x38], 0
je 0x40b15c
push ebx
push esi
push dword [ebp + 8]
call fcn.0040b245
jmp 0x40b23e
mov eax, dword [edi + 0x1c]
mov edx, esi
mov dword [ebp - 8], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x40b171
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40b173
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
test eax, eax
je 0x40b1b4
cmp eax, esi
jb 0x40b186
mov eax, esi
mov dword [ebp - 4], eax
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d930
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp + 8]
sub edx, ecx
add eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], edx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40b1ba
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [edi + 0x4c], 0
je 0x40b232
mov ecx, edi
call fcn.0040a974
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
cmp eax, 0xfff
jbe 0x40b20e
mov ecx, dword [ebp - 4]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.00413fc9
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, dword [ebp - 8]
add ecx, eax
sub edx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp eax, 0xfff
jne 0x40b20a
cmp edx, eax
ja 0x40b1d7
jmp 0x40b211
sub esi, edx
jmp 0x40b237
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, eax
test eax, eax
je 0x40b235
push dword [edi + 0x4c]
push edx
push 1
push dword [ebp - 4]
call fcn.00413fc9
mov ecx, dword [ebp - 0xc]
add esp, 0x10
sub ecx, eax
jmp 0x40b235
mov ecx, dword [ebp - 0xc]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41d111
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cf87
Function at 0x404d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x38
push ebx
push esi
call fcn.00408f40
mov cl, byte [eax]
xor ebx, ebx
cmp cl, bl
je 0x404e2c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404e2c
mov esi, dword [esp + 0x44]
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push 0xfffffffffffffffa
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x7f00
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0x4076b0
mov dword [esp + 0x48], str.BackgroundMediaClass
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
pop edi
je 0x404e2c
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov al, byte [0x44e7dc]
test al, 1
jne 0x404df1
mov dl, al
push 0x405870
or dl, 1
mov dword [0x44e7e4], ebx
mov byte [0x44e7dc], dl
mov byte [0x44e7e8], bl
mov byte [0x44e7e9], bl
mov dword [0x44e7ec], ebx
mov byte [0x44e7f0], bl
mov byte [0x44e7f1], bl
mov dword [0x44e7e0], 0x43eba8
call fcn.004341e8
add esp, 4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0x44e7e0
push edx
mov edx, dword [esp + 0x18]
push 0x6b
sub ecx, eax
push esi
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
push 0x54000000
push 0x43e498
push str.BackgroundMediaClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
pop esi
mov al, 1
pop ebx
add esp, 0x38
ret
Function at 0x407e40
Capabilities:
Hide graphical window

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov dword [esp], 0
test eax, eax
jbe 0x407ec6
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
push eax
push edx
call fcn.00407ed0
mov esi, eax
test esi, esi
je 0x407eb1
mov al, byte [esp + 0x24]
test al, al
je 0x407e9f
push 5
push esi
call edi
push 0xffffffffffffffec
push esi
call ebx
or al, 8
push eax
push 0xffffffffffffffec
push esi
call ebp
jmp 0x407eb1
push 0xffffffffffffffec
push esi
call ebx
and al, 0xf7
push eax
push 0xffffffffffffffec
push esi
call ebp
push 0
push esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x407e67
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x409c40
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x214
mov edx, dword [esp + 0x21c]
lea eax, [esp + 4]
push ebx
lea ecx, [esp + 4]
push eax
push ecx
xor ebx, ebx
push edx
push 0xa
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.0041a390
test eax, eax
je 0x409d39
lea eax, [esp + 0x114]
push 0x104
push eax
call fcn.0041a0c0
test eax, eax
je 0x409d39
lea ecx, [esp + 0x10]
push 0x104
push ecx
push ebx
lea edx, [esp + 0x120]
push str.rcd
push edx
call fcn.00419ed0
test eax, eax
je 0x409d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409d39
push esi
push ebx
push ebx
push 3
push ebx
push ebx
lea eax, [esp + 0x28]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409d2d
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebx
push ecx
push edx
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x409d27
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
push ecx
push edx
push 0x441950
push eax
call fcn.00409a70
test al, al
je 0x409d2d
mov bl, 1
jmp 0x409d2d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov al, bl
pop ebx
add esp, 0x214
ret 0xc

Function at 0x40d690
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor bl, bl
cmp byte [eax], 0x2e
jne 0x40d6e9
lea ecx, [esp + 8]
push ecx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d6e9
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d6de
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0xc
Function at 0x40d710
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
call fcn.00408d10
mov ebp, dword [esp + 0x88]
push 0xfffffffffffffffa
test al, al
push ebp
sete bl
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x58
push 6
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebp
call edi
test bl, bl
je 0x40d7a7
push 1
push esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 6
call fcn.0041c6c0
push 0x40
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
je 0x40d840
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40d827
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40d814
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]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40d7ee
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x40d7db
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test bl, bl
je 0x40d860
lea eax, [esp + 0x2c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 2
push ebp
call esi
push 9
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
Function at 0x40d880
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a44
call fcn.00434230
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x13], 0
call fcn.00408e20
mov ebx, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x3c
lea edx, [esp + 0x254]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1a64]
lea eax, [esp + 0x1a68]
push eax
xor ebp, ebp
push ecx
push edx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [esp + 0x1a60]
mov cl, 0x5c
cmp byte [esi], cl
jne 0x40d91d
cmp byte [esi + 1], cl
jne 0x40d91d
cmp byte [esi + 2], 0x3f
jne 0x40d916
cmp byte [esi + 3], cl
jne 0x40d91d
mov al, byte [esi + 4]
cmp al, 0x55
je 0x40d8fb
cmp al, 0x75
jne 0x40d91d
mov al, byte [esi + 5]
cmp al, 0x4e
je 0x40d906
cmp al, 0x6e
jne 0x40d91d
mov al, byte [esi + 6]
cmp al, 0x43
je 0x40d911
cmp al, 0x63
jne 0x40d91d
cmp byte [esi + 7], cl
jne 0x40d91d
mov eax, 1
jmp 0x40d91f
xor eax, eax
neg al
mov edi, dword [esp + 0x1a58]
lea ecx, [esp + 0x54]
sbb eax, eax
push 0x100
and eax, 0x80
push ecx
or eax, 0x441
push str..exe
mov dword [esp + 0x28], eax
lea eax, [esp + 0x260]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 1
call fcn.0040d690
test al, al
je 0x40d979
lea edx, [esp + 0x54]
mov dword [esp + 0x40], edx
jmp 0x40d981
mov dword [esp + 0x40], str.exefile
cmp byte [ebx], 0
je 0x40d995
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40d9d8
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40da81
test byte [esp + 0x1a5c], 1
jne 0x40d9cb
push eax
push edi
call fcn.0040d710
mov eax, dword [esp + 0x50]
push eax
call ebx
mov byte [esp + 0x13], 1
jmp 0x40da81
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x4c7
je 0x40da81
push 0
lea ecx, [esp + 0x658]
push 0x400
push ecx
push 0x400
call ebp
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x154]
push 0x100
push edx
push 0x3f3
push 0xfffffffffffffffa
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x654]
lea ecx, [esp + 0x254]
push eax
push ecx
lea edx, [esp + 0x15c]
push esi
push edx
lea eax, [esp + 0xa64]
push 0x1000
push eax
call fcn.0040dab0
add esp, 0x18
lea ecx, [esp + 0xa54]
push 0x10
push ecx
push edi
call fcn.00401100
lea edx, [esp + 0xa54]
push 0x1000
push edx
call fcn.0040d670
lea eax, [esp + 0x254]
push 0x400
push eax
call fcn.0040d670
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40da9e
push eax
call ebx
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a44
ret
Function at 0x412b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412bbb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x412c00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412c3b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x412dd0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi]
xor bl, bl
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x412e13
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x412e0f
call edi
mov dword [esi + 4], eax
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop ebx
add esp, 8
ret 8

Function at 0x413070
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
xor edx, edx
mov dword [esp + 8], eax
mov dword [ecx + 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esp + 4], ecx
jmp fcn.00412dd0