joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422dc0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x288
xor bl, bl
mov dword [esp + 0x10], 0x288
call fcn.00427d2c
mov esi, eax
add esp, 4
lea eax, [esp + 0xc]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x422e11
push esi
call fcn.00427c4f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00427d2c
add esp, 8
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x422e79
test esi, esi
je 0x422e79
push edi
mov edi, esi
lea esp, [esp]
call fcn.00422b50
test al, al
jne 0x422e31
mov edi, dword [edi]
test edi, edi
jne 0x422e20
jmp 0x422e3c
mov ecx, ebp
mov eax, edi
call fcn.00422d70
mov bl, 1
xor eax, eax
pop edi
cmp ax, word [ebp]
jne 0x422e79
mov eax, esi
jmp 0x422e50
lea ecx, [eax + 0x1b0]
test ecx, ecx
jne 0x422e70
mov eax, dword [eax]
test eax, eax
jne 0x422e50
push esi
call fcn.00427c4f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
mov ecx, ebp
call fcn.00422d70
mov bl, 1
push esi
call fcn.00427c4f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x423880
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
mov byte [esp + 0x68], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0x67452301
mov dword [esp + 4], 0xefcdab89
mov dword [esp + 8], 0x98badcfe
mov dword [esp + 0xc], 0x10325476
jb 0x4238d0
mov ecx, dword [ecx + 4]
jmp 0x4238d3
add ecx, 4
push ecx
lea ecx, [esp + 4]
call fcn.00422fd0
cmp byte [esp + 0x68], 0
jne 0x4238f4
push esi
lea esi, [esp + 4]
mov byte [esp + 0x6c], 1
call fcn.00423070
pop esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, edi
call fcn.00427b67
add esp, 0x70
ret

Function at 0x423920
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4239c9
push 0x22c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042bc70
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4239c2
mov ecx, edi
lea eax, [esp + 0x2c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4239a6
test dx, dx
je 0x4239a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4239a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x423980
xor eax, eax
jmp 0x4239ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4239c0
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x423977
jmp 0x4239c2
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00427b67
add esp, 0x230
ret
Function at 0x4253d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
push 0x114
lea eax, [esp + 0x10]
mov esi, ecx
push 0
push eax
mov dword [esi + 0x14], 0
call fcn.0042bc70
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esp + 0x1c], 2
jne 0x42543c
mov ecx, esi
call fcn.004256f0
test eax, eax
jne 0x425450
mov ecx, esi
call fcn.00425970
test eax, eax
jne 0x425450
call fcn.00425b60
jmp 0x425450
xor edi, edi
mov edi, edi
test eax, eax
jne 0x425450
push esi
call fcn.00425590
inc edi
cmp edi, 0xa
jl 0x425440
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x425491
cmp eax, dword [esi + 0x10]
jge 0x425491
mov edx, eax
shl edx, 7
lea ecx, [edx + esi + 0x18]
push ecx
inc eax
push 0x40
push ebx
mov dword [esi + 0x14], eax
call fcn.0042b5d6
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00427b67
add esp, 0x124
ret
mov ecx, dword [esp + 0x128]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00427b67
add esp, 0x124
ret
Function at 0x4256f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x494
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x10], 0x20
jge 0x425952
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x2a2]
push ecx
mov word [esp + 0x2a4], ax
call fcn.0042bc70
push ebx
push str..PhysicalDrive_d
lea edx, [esp + 0x2ac]
call fcn.00425ee0
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x425944
xor eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x18
lea edx, [esp + 0x30]
push edx
push eax
push eax
push 0x74080
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call ebp
test eax, eax
je 0x425939
mov bl, byte [esp + 0x27]
test bl, bl
jbe 0x425939
xor eax, eax
push 0x210
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov byte [esp + 0x8c], al
lea eax, [esp + 0x90]
push eax
call fcn.0042bc70
mov al, byte [esp + 0x24]
mov cl, al
and cl, 1
add esp, 0xc
or cl, 0xfa
shl cl, 4
push 0
mov byte [esp + 0x71], cl
mov cl, al
shr bl, cl
lea edx, [esp + 0x20]
push edx
push 0x210
and bl, 0x10
mov byte [esp + 0x7c], al
lea eax, [esp + 0x94]
push eax
neg bl
push 0x20
sbb bl, bl
lea ecx, [esp + 0x78]
push ecx
and bl, 0xb5
push 0x7c088
add bl, 0xec
push edi
mov byte [esp + 0x88], 0
mov byte [esp + 0x89], 1
mov byte [esp + 0x8b], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8e], bl
mov dword [esp + 0x84], 0x200
call ebp
test eax, eax
je 0x425939
movzx eax, word [esp + 0xae]
movzx edx, word [esp + 0xac]
movzx ecx, word [esp + 0xb0]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0xb4]
mov dword [esp + 0x3c], edx
movzx edx, word [esp + 0xb2]
mov dword [esp + 0x44], ecx
movzx ecx, word [esp + 0xb6]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0xba]
mov dword [esp + 0x48], edx
movzx edx, word [esp + 0xb8]
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0xbc]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], edx
movzx edx, word [esp + 0xbe]
mov dword [esp + 0x5c], ecx
mov ecx, eax
shl ecx, 7
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x20]
lea esi, [ecx + esi + 0x18]
inc eax
lea ecx, [esp + 0x3c]
mov dword [edx + 0x10], eax
call fcn.004254b0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
inc ebx
cmp ebx, 0x10
mov dword [esp + 0x18], ebx
jl 0x42571e
mov ecx, dword [esp + 0x49c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427b67
add esp, 0x494
ret
Function at 0x425b60
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x221c
call fcn.0042f8c0
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
jmp 0x425b90
cmp dword [esi + 0x10], 0x20
jge 0x425d00
push edi
push str..PhysicalDrive_d
lea edx, [esp + 0x2c]
call fcn.00425ee0
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x425cf2
mov edi, dword [esi + 0x10]
xor eax, eax
push 0x2000
lea ecx, [esp + 0x228]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0042bc70
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x2d1400
push ebp
call ebx
test eax, eax
je 0x425c6b
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x23c]
shl edx, 7
lea ecx, [edx + esi + 0x18]
lea eax, [esp + eax + 0x224]
push ecx
call fcn.00425d20
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042b897
add esp, 4
test eax, eax
je 0x425c6b
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x10]
jne 0x425ce5
push 0x2000
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.0042bc70
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x2d0c10
push ebp
call ebx
test eax, eax
je 0x425ce5
mov ecx, dword [esi + 0x10]
shl ecx, 7
lea ebx, [ecx + esi + 0x18]
lea edi, [esp + 0x234]
call fcn.00425ea0
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042b897
add esp, 4
test eax, eax
je 0x425ce5
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
xor ebx, ebx
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x425b90
mov ecx, dword [esp + 0x2224]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427b67
add esp, 0x221c
ret
Function at 0x426129
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x454ef0], 0
push esi
jne 0x42609c
call fcn.00425fc2
test eax, eax
je 0x4260df
mov eax, dword [0x454ef0]
cmp eax, 1
jne 0x4260bd
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4260df
pop esi
ret
push eax
call dword [0x454ef8]
test eax, eax
jne 0x426127
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4260e3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x454ef0]
call dword [0x454ef8]
mov edi, eax
test edi, edi
je 0x426108
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x426124
mov edi, esi
add esi, 0xff0
push edi
push dword [0x454ef0]
call dword [0x454ef4]
add edi, 0x10
cmp edi, esi
jb 0x426110
mov eax, edi
pop edi
pop esi
ret
jmp 0x426089

Function at 0x427b67
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4521a0]
jne 0x427b71
repz ret
jmp fcn.0042e4bc

Function at 0x43ac07
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.0042f9fa
and dword [ebp - 4], 0
cmp dword [0x455d5c], 0
mov ebx, eax
jne 0x43acb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43ad69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43ad69
push eax
call fcn.0042f988
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x455d5c], eax
call esi
push eax
call fcn.0042f988
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x455d60], eax
call esi
push eax
call fcn.0042f988
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x455d64], eax
call esi
push eax
call fcn.0042f988
pop ecx
mov dword [0x455d6c], eax
test eax, eax
je 0x43acb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f988
pop ecx
mov dword [0x455d68], eax
mov eax, dword [0x455d68]
cmp eax, ebx
je 0x43ad10
cmp dword [0x455d6c], ebx
je 0x43ad10
push eax
call fcn.0042fa03
push dword [0x455d6c]
mov esi, eax
call fcn.0042fa03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43ad10
test edi, edi
je 0x43ad10
call esi
test eax, eax
je 0x43ad07
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ad07
test byte [ebp - 0xc], 1
jne 0x43ad10
or dword [ebp + 0x10], 0x200000
jmp 0x43ad49
mov eax, dword [0x455d60]
cmp eax, ebx
je 0x43ad49
push eax
call fcn.0042fa03
pop ecx
test eax, eax
je 0x43ad49
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43ad49
mov eax, dword [0x455d64]
cmp eax, ebx
je 0x43ad49
push eax
call fcn.0042fa03
pop ecx
test eax, eax
je 0x43ad49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455d5c]
call fcn.0042fa03
pop ecx
test eax, eax
je 0x43ad69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ad6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [esp + 0xe], 8
call dword [sym.imp.user32.dll_GetKeyboardState]
call fcn.004023d8
sub ecx, edx
call fcn.00403680
mov ebx, 0x7eff
inc ebx
call dword [fcn.0040365c]
add byte [eax], al
add byte [eax], al
mov bl, 0x31
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi + 0x4032], dh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x36], ah
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
jmp 0x5a1285

Function at 0x4023d8
Capabilities:
Terminate process

Disassembly:
mov edx, eax
xor edi, edi
xor esi, esi
push dword [0x403657]
call dword [sym.imp.winmm.dll_waveInClose]
add eax, 5
inc eax
test eax, 0xb
jne 0x402401
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401037], eax
ret
Function at 0x40d5b8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x4ad520], esi
jne 0x40d6ab
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d78b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d78b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad520], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad524], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad528], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad530], eax
test eax, eax
je 0x40d6a8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad52c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push 4
pop eax
jmp 0x40d78d
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push dword [0x4ad520]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ca
mov eax, dword [0x4ad52c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d743
cmp dword [0x4ad530], edi
je 0x40d743
push eax
call ebx
push dword [0x4ad530]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d743
test eax, eax
je 0x40d743
call ecx
test eax, eax
je 0x40d738
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d738
test byte [ebp - 8], 1
jne 0x40d743
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d773
mov eax, dword [0x4ad524]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
call eax
mov esi, eax
test esi, esi
je 0x40d770
mov eax, dword [0x4ad528]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad520]
call ebx
test eax, eax
je 0x40d78b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d78d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x10c], 1
jle 0x40119d
mov ecx, dword [eax + 4]
mov edx, str._Kill
mov eax, ecx
push esi
nop
mov si, word [eax]
cmp si, word [edx]
jne 0x401066
test si, si
je 0x401062
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x401066
add eax, 4
add edx, 4
test si, si
jne 0x401040
xor eax, eax
jmp 0x40106b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401105
push str.MailPeeperWindow
push str.MailPeeperWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40118a
push ebx
push edi
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x110]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0xe141
push 0x111
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
nop dword [eax]
push 0x3e8
push edi
call ebx
cmp eax, 0x102
jne 0x4010e5
inc esi
cmp esi, 0xa
jl 0x4010d0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013fa
mov esp, ebp
pop ebp
ret 0x10
mov eax, str._Run
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401136
test dx, dx
je 0x401132
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401136
add ecx, 4
add eax, 4
test dx, dx
jne 0x401110
xor eax, eax
jmp 0x40113b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40118a
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.MailPeeper.lnk
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00404030
add esp, 0xc
lea eax, [ebp - 0x108]
push 1
push 0x412d18
push 0
push eax
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013fa
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004013fa
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4018bd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4018fc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4062f9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406344
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406516
test al, al
jne 0x40633e
sub edx, 2
cmp edx, edi
jne 0x406324
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406366
lea eax, [edi + 2]
cmp edx, eax
je 0x406366
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406245
add esp, 0x10
jmp 0x406460
push esi
lea ecx, [ebp - 0x255]
call fcn.00406516
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4063a9
push dword [ebp - 0x25c]
jmp 0x406356
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4063e6
cmp word [ebp - 0x226], 0
je 0x406407
cmp word [ebp - 0x226], ax
jne 0x4063e6
cmp word [ebp - 0x224], 0
je 0x406407
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406245
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406453
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4063c0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40643b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406460
push 0x406075
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004090c0
add esp, 0x10
jmp 0x406430
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013fa
leave
ret

Function at 0x407f93
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffcc
push 0x40ffc4
push str.FlsAlloc
push 0x1f
call fcn.00407ece
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fc7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e130]
call esi
jmp 0x407fcd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408013
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffdc
push 0x40ffd4
push str.FlsGetValue
push 0x21
call fcn.00407ece
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40804a
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408052
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffe4
push 0x40ffdc
push str.FlsSetValue
push 0x22
call fcn.00407ece
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40808c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]