joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407370
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422c40]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x423418
push 0
push str.MonCPU
push str.OPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4073f6
push 0x423e40
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.moncpu.exe
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 5
push 0x4188c4
push 0x4188c4
lea eax, [esp + 0xc]
push eax
push str.open
push dword [0x42466c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004085ae
add esp, 0x20c
ret
push 0
push str.moncpuWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x407414
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004085ae
add esp, 0x20c
ret

Function at 0x407430
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422c40]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x423418
push 0
push 0x41895c
push str.OPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4074b6
push 0x423e40
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.monram.exe
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 5
push 0x4188c4
push 0x4188c4
lea eax, [esp + 0xc]
push eax
push str.open
push dword [0x42466c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004085ae
add esp, 0x20c
ret
push 0
push str.monramWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4074d4
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004085ae
add esp, 0x20c
ret

Function at 0x407ae0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 6
push 0
push 0
push 0
push str.SOFTWAREGodlike_DevelopersRAM_Saver_Pro
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407b3b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [esp + 0x14]
push 1
push 0
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp]
test eax, eax
je 0x407b41
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x408b96
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x408bd1
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x408bca
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x408bd6
add edx, 0x28
cmp edx, esi
jne 0x408bbb
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x408bd3

Function at 0x409045
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409084
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409084
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409084
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409084
cmp dword [ecx + 0x74], 0xe
jbe 0x409084
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x409d5e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41a97c
push 0x41a974
push 0x41a97c
push 0
call fcn.00409c73
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409d91
push dword [ebp + 8]
mov ecx, esi
call dword [0x41834c]
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x409dd4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41a9a0
push 0x41a998
push 0x41a9a0
push 2
call fcn.00409c73
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x409e06
mov ecx, esi
call dword [0x41834c]
call esi
jmp 0x409e0c
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x409e0f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41a9b4
push 0x41a9ac
push 0x41a9b4
push 3
call fcn.00409c73
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x409e44
mov ecx, esi
call dword [0x41834c]
call esi
jmp 0x409e4a
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x40b51d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40b540
cmp eax, 0x2f
jne 0x40b54a
cmp ax, word [esi + 2]
jne 0x40b54a
xor eax, eax
jmp 0x40b58e
movsx eax, byte [esi]
push eax
call fcn.0040ea34
pop ecx
push 0x3d
pop ecx
movzx eax, ax
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x40b546
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040dfea
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004085ae
mov esp, ebp
pop ebp
ret
Function at 0x40b5c1
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b474
call fcn.0040e00d
and dword [eax], 0
call fcn.0040e020
mov dword [eax], 0x16
call fcn.0040df64
or eax, 0xffffffff
jmp 0x40b4fe
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40b48e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040dfea
pop ecx
jmp 0x40b46c
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, 0x105
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x40b4dc
cmp ebx, esi
jb 0x40b50c
push 2
push ebx
call fcn.0040e6a5
push edi
mov esi, eax
call fcn.0040dd12
push 0
mov edi, esi
call fcn.0040dd12
add esp, 0x10
test esi, esi
je 0x40b4ef
push esi
push ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, ebx
mov ebx, eax
test ebx, ebx
jne 0x40b4a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040dfea
pop ecx
or esi, 0xffffffff
push edi
call fcn.0040dd12
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004085ae
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
call fcn.0040b51d
pop ecx
mov esi, eax
jmp 0x40b4f2
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x40b438

Function at 0x40d362
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0040ff6e
test al, al
je 0x40d390
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
shr eax, 8
test al, 1
jne 0x40d390
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 8]
call fcn.0040d3e7
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40fc51
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.FlsAlloc
push 0x41bf68
push str.FlsAlloc
push 3
call fcn.0040fb3a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fc90
push dword [ebp + 8]
mov ecx, esi
call dword [0x41834c]
call esi
jmp 0x40fc96
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004085ae
mov esp, ebp
pop ebp
ret 4

Function at 0x40fcfd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.FlsGetValue
push 0x41bf8c
push str.FlsGetValue
push 5
call fcn.0040fb3a
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x40fd3c
mov ecx, esi
call dword [0x41834c]
call esi
jmp 0x40fd42
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004085ae
mov esp, ebp
pop ebp
ret 4
Function at 0x40fd53
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.FlsSetValue
push 0x41bfa0
push str.FlsSetValue
push 6
call fcn.0040fb3a
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x40fd95
mov ecx, esi
call dword [0x41834c]
call esi
jmp 0x40fd9b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004085ae
mov esp, ebp
pop ebp
ret 8

Function at 0x410269
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x148], esi
jmp 0x4102ab
mov al, byte [ecx]
cmp al, 0x2f
je 0x4102af
cmp al, 0x5c
je 0x4102af
cmp al, 0x3a
je 0x4102af
push ecx
push ebx
call fcn.00414830
pop ecx
pop ecx
mov ecx, eax
cmp ecx, ebx
jne 0x410292
mov dl, byte [ecx]
cmp dl, 0x3a
jne 0x4102cd
lea eax, [ebx + 1]
cmp ecx, eax
je 0x4102cd
push esi
xor edi, edi
push edi
push edi
push ebx
call fcn.004101d3
add esp, 0x10
jmp 0x410347
xor edi, edi
cmp dl, 0x2f
je 0x4102e2
cmp dl, 0x5c
je 0x4102e2
cmp dl, 0x3a
je 0x4102e2
mov eax, edi
jmp 0x4102e5
xor eax, eax
inc eax
movzx eax, al
sub ecx, ebx
inc ecx
neg eax
push 0x140
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.004094f0
add esp, 0xc
lea eax, [ebp - 0x144]
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov esi, eax
mov eax, dword [ebp - 0x148]
cmp esi, 0xffffffff
jne 0x410358
push eax
push edi
push edi
push ebx
call fcn.004101d3
add esp, 0x10
mov edi, eax
cmp esi, 0xffffffff
je 0x410345
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
mov dword [ebp - 0x150], ecx
cmp byte [ebp - 0x118], 0x2e
jne 0x410387
mov cl, byte [ebp - 0x117]
test cl, cl
je 0x4103a2
cmp cl, 0x2e
jne 0x410387
cmp byte [ebp - 0x116], 0
je 0x4103a2
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.004101d3
add esp, 0x10
test eax, eax
jne 0x410337
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x148]
jne 0x410366
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x150]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x410339
push 0x41002b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00414390
add esp, 0x10
jmp 0x410339
Function at 0x414ded
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x30
push esi
mov eax, dword [ecx*4 + 0x424e50]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + ebx + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
add eax, edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
cmp edi, ecx
jae 0x414f8d
mov ch, byte [edi]
xor eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x1b], ch
mov edx, dword [eax*4 + 0x424e50]
mov cl, byte [edx + ebx + 0x2d]
test cl, 4
je 0x414e87
mov al, byte [edx + ebx + 0x2e]
and cl, 0xfb
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push 2
mov byte [ebp - 0xb], ch
mov byte [edx + ebx + 0x2d], cl
push eax
jmp 0x414ec1
call fcn.0040e033
movzx ecx, byte [edi]
mov edx, 0x8000
test word [eax + ecx*2], dx
je 0x414ebe
cmp edi, dword [ebp - 0x24]
jae 0x414f64
push 2
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040ebef
add esp, 0xc
cmp eax, 0xffffffff
je 0x414f8d
inc edi
jmp 0x414ed6
push 1
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040ebef
add esp, 0xc
cmp eax, 0xffffffff
je 0x414f8d
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push 5
push eax
push 1
lea eax, [ebp - 0x18]
inc edi
push eax
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x414f8d
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414f85
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x30]
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
jb 0x414f8d
cmp byte [ebp - 0x1b], 0xa
jne 0x414f59
push 0xd
pop eax
push 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414f85
cmp dword [ebp - 0x20], 1
jb 0x414f8d
inc dword [esi + 8]
inc dword [esi + 4]
cmp edi, dword [ebp - 0x24]
jb 0x414e50
jmp 0x414f8d
mov edx, dword [ebp - 0x2c]
mov al, byte [edi]
mov ecx, dword [edx*4 + 0x424e50]
mov byte [ecx + ebx + 0x2e], al
mov eax, dword [edx*4 + 0x424e50]
or byte [eax + ebx + 0x2d], 4
inc dword [esi + 4]
jmp 0x414f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
mov esp, ebp
pop ebp
ret
Function at 0x415085
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00408920
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x424e50]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
and dword [esi], 0
add eax, ebx
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x1410], ecx
mov dword [ebp - 0x1408], eax
jmp 0x415143
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x415106
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4150f6
inc dword [esi + 8]
mov byte [edi], 0xd
inc edi
mov byte [edi], al
lea eax, [ebp - 5]
inc edi
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x4150e4
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
push edi
lea eax, [ebp - 0x1404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415149
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x415151
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x4150de
jmp 0x415151
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
mov esp, ebp
pop ebp
ret

Function at 0x415164
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00408920
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x424e50]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
add eax, ebx
mov dword [ebp - 0x1410], ecx
xor edx, edx
mov dword [ebp - 0x1408], eax
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
jmp 0x415231
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x4151f1
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xa
jne 0x4151de
add dword [esi + 8], 2
push 0xd
pop edx
mov word [edi], dx
add edi, 2
mov word [edi], ax
lea eax, [ebp - 6]
add edi, 2
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x4151c2
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
and edi, 0xfffffffe
lea eax, [ebp - 0x1404]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415237
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x41523f
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x4151bc
jmp 0x41523f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
mov esp, ebp
pop ebp
ret
Function at 0x415252
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00408920
mov eax, dword [0x422c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
push esi
mov eax, dword [eax*4 + 0x424e50]
xor ebx, ebx
mov esi, dword [ebp + 8]
push edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
mov edi, ecx
mov dword [ebp - 0x1414], eax
mov eax, dword [ebp + 0x14]
add eax, ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [ebp - 0x140c], eax
mov dword [esi + 8], ebx
cmp ecx, eax
jae 0x41536c
mov esi, dword [ebp - 0x140c]
lea eax, [ebp - 0x6b0]
cmp edi, esi
jae 0x4152e3
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x4152d6
push 0xd
pop edx
mov word [eax], dx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x4152be
push ebx
push ebx
push 0xd55
lea ecx, [ebp - 0x1408]
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1418], eax
test eax, eax
je 0x415364
push 0
lea ecx, [ebp - 0x1410]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1414]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415364
add ebx, dword [ebp - 0x1410]
mov eax, dword [ebp - 0x1418]
cmp ebx, eax
jb 0x415318
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, dword [ebp - 0x140c]
jae 0x41536c
xor ebx, ebx
jmp 0x4152b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
mov esp, ebp
pop ebp
ret
Function at 0x417790
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4177cc
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4177c4
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4177ce
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4177b4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4178a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4178cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4178cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x448be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x3c]
movzx esi, word [edi]
mov dword [esp + 4], 0x1f1e4755
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x448c36
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0044ab40
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x448c10
xor ecx, ecx
cmp dword [esp + 4], esi
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x45422c]
jmp dword [0x454240]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401248
Capabilities:
Encode data using xor

Disassembly:
push 0x401384
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
push 0x30000000
add byte [eax], al
add byte [eax], ah
add byte [eax], al
inc eax
add byte [eax], al
add byte [esi + 0x2357cd3d], dh
pushfd
invalid