joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043e1
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10015d0
call fcn.01004640
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x1004429
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1004429
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1004442
cmp ecx, 0x20b
je 0x100442f
and dword [ebp - 0x1c], 0
jmp 0x1004456
cmp dword [eax + 0x84], 0xe
jbe 0x1004429
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1004450
cmp dword [eax + 0x74], 0xe
jbe 0x1004429
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x1005178], edi
mov dword [0x100517c], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005174]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005170]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005180], eax
call fcn.010046e4
cmp dword [0x1005090], 0
jne 0x10044b6
push fcn.010046e4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010046cd
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100516c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1005168]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x100451b
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x10045ca
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x100455c
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1004537
cmp cx, 0x22
jne 0x1004524
cmp word [eax], 0x22
jne 0x1004542
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1004550
cmp cx, 0x20
jbe 0x100453d
test byte [ebp - 0x54], 1
je 0x1004569
movzx ecx, word [ebp - 0x50]
jmp 0x100456c
cmp word [eax], 0x20
jbe 0x1004542
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x100455c
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.0100402e
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100458c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x10045c8
mov eax, esi
call fcn.0100467b
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 0x401cb0
Capabilities:
Create thread
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 4]
mov byte [0x405618], 0
push ecx
push 0
push 0
push 0x401900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x405614], eax
jne 0x401d03
push 0x405188
mov ecx, 0x4052f4
call sub.MFC42.DLL_CString::operator
xor eax, eax
add esp, 0x198
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x405030], eax
jne 0x401d31
push 0x405170
mov ecx, 0x4052f4
call sub.MFC42.DLL_CString::operator
xor eax, eax
add esp, 0x198
ret
lea edx, [esp]
push 4
push edx
push 0x20
push pe_overlay
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 1
add esp, 0x198
ret

Function at 0x401d60
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x40502c]
push esi
mov esi, dword [sym.imp.WS2_32.dll_shutdown]
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
mov byte [0x405618], 1
je 0x401d9e
push 2
push eax
call esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x40502c]
push eax
call edi
mov dword [0x40502c], 0xffffffff
mov eax, dword [0x405030]
cmp eax, 0xffffffff
je 0x401dc0
push 2
push eax
call esi
mov ecx, dword [0x405030]
push ecx
call edi
mov dword [0x405030], 0xffffffff
mov eax, dword [0x405614]
pop edi
test eax, eax
pop esi
je 0x401e06
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401e06
mov edx, dword [0x405614]
push 0x309
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x405614]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x405614], 0
jmp dword [sym.imp.WS2_32.dll_WSACleanup]
Function at 0x4011a6
Capabilities:
Check os version

Disassembly:
push esi
mov esi, dword [0x4030f8]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x403104], eax
je 0x401213
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x4011d4
test ah, ah
ja 0x4011d6
cmp al, al
jbe 0x40120e
mov dword [0x4030f4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x10047a
mov dword [0x4030f0], eax
mov dword [0x4030f8], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [0x4030ec], eax
jne 0x40120a
or dword [0x4030ec], 0xffffffff
xor eax, eax
pop esi
ret
push 0x32
pop eax
pop esi
ret
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x401380
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov al, byte [esi]
push edi
xor ebx, ebx
mov byte [ecx], al
add ecx, 1
xor edi, edi
add esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
lea ecx, [ecx]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x4013c6
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x401583
mov eax, ebx
sub ebx, 1
test eax, eax
mov dword [esp + 0x20], ebx
jne 0x4013f8
movzx edx, byte [esi]
add esi, 1
mov ebx, 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
je 0x4014c8
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x401424
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x401476
xor edi, edi
lea ebp, [edi + 4]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x401449
movzx edx, byte [esi]
add esi, 1
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
sub ebp, 1
lea edi, [eax + edi*2]
jne 0x401437
test edi, edi
mov dword [esp + 0x14], esi
je 0x40146e
mov eax, ecx
sub eax, edi
mov al, byte [eax]
jmp 0x40158c
mov byte [ecx], 0
jmp 0x40158e
movzx ebp, byte [esi]
mov edi, ebp
and edi, 1
add esi, 1
add edi, 2
shr ebp, 1
mov dword [esp + 0x14], esi
je 0x4014b2
test edi, edi
je 0x4014ba
mov eax, ecx
sub eax, ebp
mov al, byte [eax]
mov byte [ecx], al
add ecx, 1
sub edi, 1
jne 0x401490
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x401597
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x401597
lea ecx, [esp + 0x14]
call fcn.00401e20
test edi, edi
jne 0x40150e
cmp eax, 2
jne 0x401509
lea ecx, [esp + 0x14]
call fcn.00401e20
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x401570
nop
mov edx, ecx
sub edx, dword [esp + 0x28]
add ecx, 1
sub eax, 1
mov dl, byte [edx]
mov byte [ecx - 1], dl
jne 0x4014f0
mov dword [esp + 0x18], ecx
jmp 0x401570
sub eax, 3
jmp 0x401511
sub eax, 2
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx]
add ecx, 1
shl eax, 8
add eax, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00401e20
cmp esi, 0x7d00
jb 0x40153a
add eax, 1
cmp esi, 0x500
jb 0x401545
add eax, 1
cmp esi, 0x80
jae 0x401550
add eax, 2
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x40156c
mov edx, ecx
sub edx, esi
mov dl, byte [edx]
mov byte [ecx], dl
add ecx, 1
sub eax, 1
jne 0x401558
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, 1
jmp 0x401597
mov al, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
mov byte [ecx], al
add ecx, 1
xor edi, edi
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x10], 0
je 0x4013b0
pop edi
pop esi
mov eax, ecx
sub eax, dword [esp + 0x24]
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x40165e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x403108]
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [0x4030f8]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx edx, word [eax + 6]
movzx esi, word [eax + 0x14]
imul edx, edx, 0x28
xor ecx, 0x25cc
movzx ecx, cx
add edx, eax
mov dword [ebp - 8], ecx
lea esi, [esi + edx + 0x40]
jmp 0x4016a1
cmp ax, cx
je 0x4016b2
add esi, 0x14
movzx eax, word [esi]
test ax, ax
jne 0x401699
cmp word [esi], cx
jne 0x401773
push ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4016bf
cmp dword [esi + 8], eax
jne 0x401702
test byte [esi + 3], 2
jne 0x401702
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.00401cd4
mov ebx, eax
test ebx, ebx
je 0x4016ff
mov eax, dword [esi + 0xc]
add eax, edi
test byte [esi + 3], 1
je 0x401711
push ebx
push eax
call fcn.00401380
cmp eax, dword [esi + 0x10]
jne 0x4016f3
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x401753
push ebx
call fcn.00401d5d
mov ecx, dword [ebp - 8]
movzx eax, byte [esi + 2]
lea esi, [esi + eax*4 + 0x14]
cmp word [esi], cx
je 0x4016b3
jmp 0x401772
mov ecx, dword [esi + 0x10]
and dword [ebp - 4], 0
shr ecx, 2
mov dword [ebp + 0x10], ebx
je 0x401737
mov edx, dword [eax]
sub edx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add dword [ebp - 4], edx
add dword [ebp + 0x10], 4
add eax, 4
dec ecx
mov dword [edi], edx
jne 0x401720
mov ecx, dword [esi + 0x10]
and ecx, 3
je 0x40174c
push ecx
push eax
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov byte [ebx + eax], 0
cmp dword [esi + 0x10], 4
jb 0x401765
mov eax, dword [esi + 4]
xor dword [ebx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x401830
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
call fcn.004011a6
xor ebx, ebx
cmp eax, ebx
jne 0x401977
call fcn.0040129c
cmp eax, ebx
jne 0x401977
lea eax, [esp + 0xc]
push eax
call fcn.0040121a
test eax, eax
jne 0x4018ab
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebx
push ebx
push dword [esp + 0x14]
call esi
mov edi, eax
cmp edi, ebx
je 0x4018a0
lea eax, [edi + edi + 2]
push eax
call fcn.00401cd4
cmp eax, ebx
mov dword [0x403100], eax
je 0x4018a0
push edi
push eax
push dword [esp + 0x14]
call esi
push dword [esp + 0xc]
call fcn.00401d5d
jmp 0x4018b1
mov eax, dword [esp + 0xc]
mov dword [0x403100], eax
jmp 0x4018b1
mov dword [0x403100], ebx
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [0x403108]
xor eax, 0xe671258a
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040165e
test eax, eax
je 0x401969
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebx
call fcn.00401a9b
test eax, eax
jne 0x401969
cmp dword [0x403100], ebx
je 0x40195e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x2c]
push 0x4020a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push dword [0x403100]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
je 0x40195e
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40195e
push dword [0x403100]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
call fcn.00401b73
jmp 0x40196c
push 0xb
pop eax
cmp eax, 0xffffffff
jne 0x401977
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d78
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [edx + 0x3c]
add ecx, edx
movzx edx, word [ecx + 0x14]
push esi
movzx esi, word [ecx + 6]
xor eax, eax
lea ecx, [edx + ecx + 0x18]
xor edx, edx
cmp dword [ecx], 0x7373622e
jne 0x401d9d
cmp dword [ecx + 4], eax
jne 0x401d9d
mov edx, ecx
add ecx, 0x28
dec esi
je 0x401da7
cmp edx, eax
je 0x401d8e
cmp edx, eax
je 0x401dcb
mov ecx, dword [edx + 0xc]
cmp ecx, eax
je 0x401dc7
mov edx, dword [edx + 0x10]
cmp edx, eax
je 0x401dc7
mov esi, dword [esp + 8]
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x401dce
push 0xb
jmp 0x401dcd
push 2
pop eax
pop esi
ret 8
Function at 0x41ee7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x10]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
test eax, eax
jne 0x41eeb3
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_find_resource._Resource_id:_.
mov ecx, dword [edi]
push 4
call fcn.0041083d
mov al, 1
jmp 0x41eee7
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esi], eax
test eax, eax
jne 0x41eecd
lea eax, [ebp + 0xc]
push eax
push str.Failed_to_load_resource._Resource_id:_.
jmp 0x41eea6
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push dword [esi + 4]
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi + 0xc], eax
xor al, al
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41eeed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push ebx
push eax
push 2
pop edi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x41ef1d
mov al, 1
jmp 0x41ef61
cmp dword [ebp - 4], edi
jne 0x41ef19
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 1
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call esi
test eax, eax
je 0x41ef19
cmp dword [ebp - 4], edi
jne 0x41ef19
movzx eax, word [ebp + 0xc]
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x41ef19
cmp dword [ebp - 4], edi
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4361da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x465000
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00464cc0

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 0x4151e1
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41c108
call fcn.0041599a
push 1
call fcn.00415264
pop ecx
test al, al
jne 0x415098
push 7
call fcn.00415762
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041522f
mov byte [ebp - 0x24], al
mov eax, dword [0x41fc3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x415091
test eax, eax
jne 0x415102
mov dword [0x41fc3c], ecx
push 0x418358
push 0x418344
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4150e5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4151db
push 0x418340
push 0x418318
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41fc3c], 2
jmp 0x415107
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004153d1
pop ecx
call fcn.00415756
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415137
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415137
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004156eb
call esi
call fcn.0041575c
mov esi, eax
cmp dword [esi], edi
je 0x415155
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415155
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00415878
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004158ab
test al, al
jne 0x415180
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x415189
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004153ee
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4151db
call fcn.004159df
ret
call fcn.00414f1f
jmp 0x415079

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 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 0x401809
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 8
mov eax, 0x41bc08
call fcn.0040e5aa
mov dword [ebp - 4], 1
xor edi, edi
lea esi, [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.00405b40
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40185f
lea esi, [ebp + 8]
call fcn.00405270
lea esi, [ebp + 0x2c]
call fcn.00405270
mov eax, edi
call fcn.0040e649
ret
lea esi, [ebp + 0x2c]
call fcn.00405b40
push eax
movzx eax, word [ebp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x401847
Function at 0x401d9d
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x41bef6
call fcn.0040e5aa
push 0x42017c
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.00405860
sub esp, 0x20
lea ebx, [ebp + 0x28]
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.00405150
lea ebx, [ebp + 8]
call fcn.00405680
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00410f60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x68], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401e0e
mov bl, 1
lea esi, [ebp + 8]
call fcn.00405270
lea esi, [ebp + 0x28]
call fcn.00405270
mov al, bl
call fcn.0040e649
ret

Function at 0x401e26
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x41bbdd
call fcn.0040e5aa
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00405b40
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x10]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401e87
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e66
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x10]
jmp 0x401ecf
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0x420180
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401ee2
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401eb0
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401ee2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 8]
call fcn.00405270
call fcn.0040e649
ret