joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401540
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2058
call fcn.00402d30
mov eax, dword [0x415040]
xor eax, esp
mov dword [esp + 0x2054], eax
mov eax, dword [0x4160e0]
push esi
mov esi, dword [esp + 0x2060]
push edi
mov edi, dword [esp + 0x2068]
push str.Execute_Method_Starts_n
push str.DEBUG
push eax
call fcn.00401100
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00402d60
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x38], 0x44
call fcn.004012e0
add esp, 0x20
test eax, eax
jne 0x4015e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4160e0]
push str.CreateNamedPipes_Failed_::__d_n
push str.NORMAL
push eax
call fcn.00401100
add esp, 0x10
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x2054]
xor ecx, esp
call fcn.00402c84
add esp, 0x2058
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x68]
push str.cmd.exe__q__c___s_
push ecx
mov dword [edi], 0
xor ebp, ebp
call fcn.00402c93
mov eax, dword [0x4160e0]
lea edx, [esp + 0x70]
push edx
push str.CommandToBeExecuted_::__ws_n
push str.NORMAL
push eax
call fcn.00401100
mov ax, word [esi + 0x2000]
add esp, 0x1c
lea ecx, [esi + 0x2000]
neg ax
lea edx, [esp + 0x20]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov eax, dword [esi + 0x2208]
push ebp
or eax, 0x8000000
push eax
push 1
push ebp
push ebp
lea ecx, [esp + 0x84]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4016ac
mov edx, dword [0x4160e0]
push str.CreateProcess_Success._Process_Started_n
push str.DEBUG
push edx
call fcn.00401100
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi], ebp
cmp dword [esi + 0x2418], ebp
mov ebx, eax
jne 0x4016d1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [0x4160e0]
push edi
push str.ExitCode_::__d_n
push str.DEBUG
push eax
call fcn.00401100
jmp 0x4016ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4160e0]
push eax
push str.CreateProcess_Failed_::__d_n
push str.NORMAL
push ecx
call fcn.00401100
mov ebp, 1
add esp, 0x10
mov edx, dword [0x4160e0]
push str.Execute_Method_Ends_n_n
push str.DEBUG
push edx
call fcn.00401100
mov ecx, dword [esp + 0x2070]
add esp, 0xc
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00402c84
add esp, 0x2058
ret
Function at 0x402c84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415040]
jne 0x402c8e
repz ret
jmp fcn.0040892b

Function at 0x40bc8d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00407a8d
xor ebx, ebx
cmp dword [0x4172c8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40bd62
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40bccd
xor eax, eax
jmp 0x40be26
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40bcc6
push eax
call fcn.00407a2a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4172c8], eax
call esi
push eax
call fcn.00407a2a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4172cc], eax
call esi
push eax
call fcn.00407a2a
mov dword [0x4172d0], eax
lea eax, [ebp - 8]
push eax
call fcn.00406c31
test eax, eax
pop ecx
pop ecx
je 0x40bd30
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404140
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40bd62
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00407a2a
cmp eax, ebx
pop ecx
mov dword [0x4172d8], eax
je 0x40bd62
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407a2a
pop ecx
mov dword [0x4172d4], eax
mov eax, dword [0x4172d4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40bddb
cmp dword [0x4172d8], esi
je 0x40bddb
push eax
call fcn.00407a96
pop ecx
call eax
cmp eax, ebx
je 0x40bda8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4172d8]
call fcn.00407a96
pop ecx
call eax
test eax, eax
je 0x40bda8
test byte [ebp - 0x18], 1
jne 0x40bddb
lea eax, [ebp - 0xc]
push eax
call fcn.00406c68
test eax, eax
pop ecx
je 0x40bdc3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404140
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40bdd2
or dword [ebp + 0x10], 0x200000
jmp 0x40be0c
or dword [ebp + 0x10], 0x40000
jmp 0x40be0c
mov eax, dword [0x4172cc]
cmp eax, esi
je 0x40be0c
push eax
call fcn.00407a96
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40be0c
mov eax, dword [0x4172d0]
cmp eax, esi
je 0x40be0c
push dword [ebp - 4]
push eax
call fcn.00407a96
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4172c8]
call fcn.00407a96
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x402e00
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402e70
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401800
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x403a00
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x64]
push ebx
sub esp, 0xa8
mov ebx, dword [ebp + 8]
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [esp + 0xc], 0x14
mov dword [esp + 8], esi
mov dword [esp + 4], 0x44d
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x3c], 0x30
sub esp, 0x10
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x4029c0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ebx
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadIconW]
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [esp], 4
call dword [sym.imp.gdi32.dll_GetStockObject]
mov edx, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], 1
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x14], esi
mov dword [esp], 0x32
call edx
mov edx, dword [ebp - 0x84]
sub esp, 4
mov edi, eax
mov dword [esp], 0x31
call edx
sub esp, 4
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [ebp - 0x10], eax
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassExW]
sub esp, 4
test ax, ax
je 0x403c55
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xca0000
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
mov esi, eax
test eax, eax
je 0x403c55
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_UpdateWindow]
sub esp, 4
mov dword [esp], ebx
lea ebx, [ebp - 0x80]
mov dword [esp + 4], 0x4b1
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0x3e8
mov dword [esp], esi
call dword [sym.imp.user32.dll_SetTimer]
sub esp, 0x10
jmp 0x403bf4
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMessageW]
sub esp, 0x10
test eax, eax
je 0x403c48
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
sub esp, 0xc
test eax, eax
jne 0x403be8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
jmp 0x403be8
mov eax, dword [ebp - 0x78]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x404650
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4046c0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40474b
cmp ax, 9
je 0x404738
cmp ax, 0x20
je 0x404738
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x4047a0
cmp ax, 0x22
je 0x4047b0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40474b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x4046f0
test esi, 1
jne 0x4046f0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x404738
cmp ax, 0x20
je 0x404738
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x4047c8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403a00
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40470b
and dword [ebp - 0x54], 1
jne 0x404704
xor esi, 1
jmp 0x40470b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x404764
Function at 0x4046c0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4046c0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40474b
cmp ax, 9
je 0x404738
cmp ax, 0x20
je 0x404738
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x4047a0
cmp ax, 0x22
je 0x4047b0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40474b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x4046f0
test esi, 1
jne 0x4046f0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x404738
cmp ax, 0x20
je 0x404738
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x4047c8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403a00
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40470b
and dword [ebp - 0x54], 1
jne 0x404704
xor esi, 1
jmp 0x40470b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x404764
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x438c9d
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
dec esi
sub eax, 0xea54c056
sub eax, eax
call fcn.00438ccf
sub eax, 0xabedf790
xor dword [ebx], ecx
push esi
pop esi
push esi
pop eax
inc ebx
and esi, eax
add eax, eax
cmp ebx, edx
jne fcn.00438c9d
sub eax, eax
mov esi, 0x1308abc4
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 0x40238f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
mov ebp, 0x100
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv dword [esp + 0x228]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x114], al
inc ecx
cmp ecx, ebp
jl 0x4023c2
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x14]
movzx eax, byte [esp + esi + 0x114]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x402408
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + esi + 0x14], al
inc esi
mov byte [esp + ebx + 0x14], dl
cmp esi, ebp
jl 0x4023e3
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x220], ebx
jle 0x402494
inc edi
and edi, 0x800000ff
jns 0x402437
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x14]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x402450
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + edi + 0x14], al
push ecx
mov byte [esp + ebx + 0x18], cl
mov ecx, 0x42e098
mov dword [esp], 0x40495270
call fcn.00402081
push eax
call fcn.004019ae
movzx eax, byte [esp + edi + 0x18]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x10]
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x220]
jl 0x402426
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040614a
add esp, 0x208
ret

Function at 0x403062
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x40309f
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.DLL_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x403070
pop edi
pop esi
ret

Function at 0x403d0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x40
mov edi, 0x4ac
mov esi, 0x47fc30
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push edi
push esi
call fcn.00403062
pop ecx
pop ecx
call fcn.00403048
mov edx, 0x47fc30
add edx, 0x188
mov esi, 0x42f030
push esi
call edx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4068f7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x406936
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406936
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406936
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406936
cmp dword [ecx + 0x74], 0xe
jbe 0x406936
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x415449
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427168
push 0x427160
push 0x424cac
push 0x1e
call fcn.004152b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41547d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42313c]
call esi
jmp 0x415483
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4168ce
Capabilities:
Read file on windows

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

Function at 0x4168d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004166ff
Function at 0x417f44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406c60
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414c92
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417f86
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4180e2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42e950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041836a
mov ecx, dword [esi*4 + 0x42e950]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4180db
cmp eax, dword [edi + ecx + 0x24]
jne 0x4180db
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4180db
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041836a
add esp, 0x14
test edx, edx
jl 0x4180db
jg 0x418051
test eax, eax
jb 0x4180db
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4180db
jl 0x41806b
cmp dword [ebp - 0x1008], eax
ja 0x4180db
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418089
test ebx, ebx
je 0x4180c2
cmp ecx, edi
jae 0x4180c2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4180a3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4180af
cmp byte [ecx + 1], 0xa
jne 0x4180af
inc ecx
jmp 0x4180af
movzx eax, al
movsx eax, byte [eax + 0x42d9b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418089
cmp edx, ebx
jne 0x418089
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4180e0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040614a
leave
ret
Function at 0x419bf9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x419c96
push ebx
push esi
call fcn.00419bc2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418847
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419c43
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419c95
push edi
push eax
call fcn.00413d30
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419c63
call fcn.00413cf6
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419c94
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418847
add esp, 0x20
test eax, eax
jne 0x419c82
push edi
call fcn.00413cf6
jmp 0x419c8a
push ebx
call fcn.00413cf6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret