joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d30
Capabilities:
Create thread

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [0x431370]
test eax, eax
jne 0x408e1e
push 6
push 1
push 2
call dword [0x431354]
mov edi, eax
cmp edi, 0xffffffff
je 0x408e1e
mov dx, word [0x43169c]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [0x43135c]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [0x431318]
cmp eax, 0xffffffff
je 0x408e1e
push ebx
push ebp
push esi
push 0x32
push edi
call dword [0x431324]
cmp eax, 0xffffffff
jne 0x408dcc
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [0x431320]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call fcn.0041b5dc
add esp, 4
test eax, eax
je 0x408dd8
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x408a30
push 0
push 0
call ebp
test eax, eax
jne 0x408e15
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408dd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408dd8
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x409fe0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov edi, eax
call fcn.0041ab6e
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a081
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40a081
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x24]
push ebp
call sub.MSVCRT.dll__strupr
add esp, 4
push eax
push ebx
call sub.MSVCRT.dll__strupr
add esp, 4
push eax
call fcn.0041b3e0
add esp, 8
test eax, eax
jbe 0x40a04b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40a081
push ebp
call sub.MSVCRT.dll__strupr
add esp, 4
push eax
push ebx
call sub.MSVCRT.dll__strupr
add esp, 4
push eax
call fcn.0041b3e0
add esp, 8
test eax, eax
ja 0x40a041
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40a056
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40a0f0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9e50]
mov dword [ebx], 0x4262f8
test eax, eax
jbe 0x40a134
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x210]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9e50]
inc edi
add esi, 4
cmp edi, eax
jb 0x40a114
pop esi
pop ebp
mov ecx, ebx
call fcn.0040ad90
pop edi
pop ebx
ret
Function at 0x10049094
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x100490a7
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100490a1
push esi
mov esi, dword [ecx + 0x3c]
add esi, ecx
mov dword [ebp - 4], esi
cmp dword [esi], 0x4550
je 0x100490c9
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call dword [0x10009004]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x100490eb
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x50]
push edi
test ecx, ecx
je 0x10049105
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 8]
lea edi, [esi + 0x104]
mov edx, dword [edi]
cmp eax, ebx
je 0x10049136
test edx, edx
je 0x10049136
mov esi, eax
mov ecx, ebx
sub esi, ebx
lea ebx, [ebx]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x10049124
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0xc], 0
cmp cx, word [esi + 6]
jae 0x1004917f
mov esi, dword [edi + 8]
mov ecx, dword [edi]
add esi, eax
mov edx, dword [edi + 4]
add ecx, ebx
cmp esi, ecx
je 0x10049167
test edx, edx
je 0x10049167
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x1004915b
mov esi, dword [ebp - 4]
add edi, 0x28
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, word [esi + 6]
cmp ecx, eax
mov eax, dword [ebp - 8]
jb 0x10049145
cmp dword [esi + 0x84], 0
je 0x100491f5
mov esi, dword [esi + 0x80]
add esi, 0xc
add esi, ebx
mov dword [ebp - 0xc], esi
cmp dword [esi], 0
je 0x100491f2
mov eax, dword [esi]
add eax, ebx
push eax
call dword [0x10009014]
mov edi, eax
test edi, edi
je 0x1004926f
mov esi, dword [esi + 4]
add esi, ebx
cmp dword [esi], 0
je 0x100491e4
mov eax, dword [esi]
test eax, eax
jns 0x100491c5
movzx eax, ax
jmp 0x100491ca
add eax, 2
add eax, ebx
push eax
push edi
call dword [fcn.10009010]
test eax, eax
je 0x10049268
mov dword [esi], eax
add esi, 4
cmp dword [esi], 0
jne 0x100491ba
mov esi, dword [ebp - 0xc]
add esi, 0x14
mov dword [ebp - 0xc], esi
cmp dword [esi], 0
jne 0x1004919b
mov esi, dword [ebp - 4]
cmp dword [esi + 0xa4], 0
je 0x1004925f
mov edi, dword [esi + 0xa0]
add edi, ebx
cmp dword [edi], 0
je 0x1004925f
mov esi, dword [edi + 4]
lea eax, [edi + 8]
sub esi, 8
mov dword [ebp - 0xc], eax
shr esi, 1
mov edx, 0
je 0x10049256
lea esp, [esp]
movzx eax, word [eax + edx*2]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x1004924e
and eax, 0xfff
mov ecx, ebx
add eax, dword [edi]
add eax, ebx
mov ebx, dword [ebp - 4]
sub ecx, dword [ebx + 0x34]
add dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
inc edx
cmp edx, esi
jb 0x10049224
cmp dword [eax + esi*2], 0
lea edi, [eax + esi*2]
jne 0x1004920b
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [fcn.1000900c]
push 0x8000
push 0
push ebx
call dword [fcn.10009000]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403768
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x403936
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0xc]
push 0x4078f8
push eax
mov byte [ebp - 5], 0
call fcn.00402b0d
add esp, 0x10
test eax, eax
je 0x403936
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4037d7
push eax
mov byte [ebp - 5], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0xc]
call fcn.004023f0
cmp byte [ebp - 5], 0
pop ecx
je 0x403936
mov edi, 0xfffe
call fcn.00402307
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403936
and dword [ebp - 0x10], 0
push 5
pop eax
call fcn.004024cb
add eax, 2
mov dword [ebp - 0x1c], eax
cmp eax, 6
ja 0x403803
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x67c]
push 0x407908
push eax
call esi
lea eax, [ebx + ebx]
lea ecx, [ebp + eax - 0x224]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + eax - 0x21e]
add esp, 0xc
mov dword [ebp - 0x14], ecx
lea edi, [ebp + eax - 0x222]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x19
pop eax
call fcn.004024cb
add eax, 0x61
mov word [edi], ax
push 0x19
pop eax
call fcn.004024cb
mov ecx, dword [ebp - 0x14]
add eax, 0x61
mov word [ecx], ax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403921
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x448]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push 0x19
pop eax
call fcn.004024cb
push dword [ebp + 8]
add eax, 0x61
movzx eax, ax
push eax
lea eax, [ebp + ebx*2 - 0x450]
push str._c_s
push eax
call esi
lea eax, [ebp - 0x448]
push eax
push 0x40a350
push str._s_s
push dword [ebp - 0xc]
call esi
add esp, 0x20
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403921
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jne 0x40384e
push dword [ebp - 0xc]
call fcn.004023f0
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9cc
call fcn.00405dd0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov cl, al
mov edx, eax
add cl, cl
shr edx, 5
mov byte [ebp - 0x3a9c1], cl
mov ebx, eax
mov ecx, eax
shr ebx, 6
shr ecx, 3
or dl, cl
mov cl, al
shl cl, 3
or dl, cl
mov cl, bl
or cl, byte [ebp - 0x3a9c1]
add dl, cl
mov ecx, eax
mov dword [ebp - 0x3a9c8], edx
mov edx, eax
shr edx, 9
and dl, al
shr ecx, 0xc
xor dl, cl
mov ecx, eax
xor dl, bl
shr ecx, 2
mov ebx, dword [ebp - 0x3a9c8]
or bl, dl
or bl, cl
or bl, byte [ebp - 0x3a9c1]
mov byte [ebp + eax - 0x3a988], bl
inc eax
cmp eax, 0x3a980
jb 0x403ed4
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404fc2
mov esp, ebp
pop ebp
ret
Function at 0x404230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00405dd0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
lea esi, [ebx + 0xd]
mov ecx, ebx
shr ecx, 9
lea eax, [ecx - 1]
movsx ecx, cl
movsx eax, al
xor eax, ecx
xor eax, 1
cdq
idiv esi
movsx eax, bl
movsx ecx, dl
imul ecx, eax
mov byte [ebp + ebx - 0x3a988], cl
inc ebx
cmp ebx, 0x3a980
jb 0x4042b8
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404fc2
mov esp, ebp
pop ebp
ret
Function at 0x4057f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405832
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405832
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405832
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405832
cmp dword [ecx + 0x74], 0xe
jbe 0x405832
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419dd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x419df2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419df9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x419de8
mov eax, 1
add ebx, ebx
jne 0x419e0d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419e02
jne 0x419e1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419e02
xor ecx, ecx
sub eax, 3
jb 0x419e32
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419ea6
mov ebp, eax
add ebx, ebx
jne 0x419e3d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419e4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419e6e
inc ecx
add ebx, ebx
jne 0x419e5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419e4f
jne 0x419e6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419e4f
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x419e90
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419e82
jmp 0x419dee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419e90
add edi, ecx
jmp 0x419dee
pop esi
mov edi, esi
mov ecx, 0x2ba
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419eae
cmp byte [edi], 7
jne 0x419eae
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x419eb3
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419f2b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419ee0
mov ecx, edi
jns 0x419f0f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1907c]
or eax, eax
je 0x419f25
mov dword [ebx], eax
add ebx, 4
jmp 0x419efd
call dword [esi + 0x19080]
popal
jmp 0x4041b3
Function at 0x409710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, str._8na_eOW_
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.00408aa0
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x4097ce
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4097c0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x409781
lea eax, [edx + 0xd]
jmp 0x4097ae
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409786
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x42eb44
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x4097c0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x409740
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4097e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402220
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x402252
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00402080
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403e00
pop ecx
mov esi, eax
test esi, esi
je 0x4022a7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00402080
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40850c], eax
mov dword [0x408510], esi
jmp 0x4022af
push 1
call fcn.00401cf0
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4022c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 4], edx
test eax, eax
jne 0x4022e0
mov eax, dword [0x4085e0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ebx, eax
xor ecx, ecx
jmp 0x402301
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4022ee
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x4022ff
add ecx, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4022e9
inc ecx
push ecx
call fcn.00403e00
pop ecx
mov edi, eax
mov dword [0x408518], eax
cmp dword [0x408518], 0
je 0x40236e
mov eax, dword [ebp - 4]
mov ebx, eax
jmp 0x40234f
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40232a
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x40234d
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x402340
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402325
mov byte [edi], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x4085e0]
je 0x402376
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x402376
push 1
call fcn.00401cf0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402810
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x4c
cmp dword [esi], 0
mov al, 0xdc
mov byte [esp], 0xa
mov byte [esp + 1], 0x64
mov byte [esp + 2], 0xb1
mov byte [esp + 3], 0xd5
mov byte [esp + 4], 0x98
mov byte [esp + 5], 0xfd
mov byte [esp + 6], 0x53
mov byte [esp + 7], 0xc5
mov byte [esp + 8], 0x41
mov byte [esp + 9], 0x8d
mov byte [esp + 0xa], 0xf2
mov byte [esp + 0xb], 0x61
mov byte [esp + 0xc], 0xb9
mov byte [esp + 0xd], 0x8c
mov byte [esp + 0xe], 0xb0
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0xb6
mov byte [esp + 0x11], 0xf6
mov byte [esp + 0x12], 0xbb
mov byte [esp + 0x13], 0x5a
mov byte [esp + 0x14], 0x1f
mov byte [esp + 0x15], 0x7c
mov byte [esp + 0x16], 0xbc
mov byte [esp + 0x17], 0x67
mov byte [esp + 0x18], 0xf7
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0xff
mov byte [esp + 0x1b], 0x75
mov byte [esp + 0x1c], 0x1a
mov byte [esp + 0x1d], 0x94
mov byte [esp + 0x1e], 0x78
mov byte [esp + 0x1f], 0xfe
jne 0x4028d5
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028d5
mov dword [esi], eax
xor al, al
add esp, 0x4c
ret
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00401100
push 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x38], 0x208
mov word [esp + 0x3c], 0x6610
mov byte [esp + 0x40], 0x20
call fcn.00401140
mov edx, dword [esi]
add esp, 0x18
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40293b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065d0
add esp, 4
xor al, al
add esp, 0x4c
ret
mov al, 1
add esp, 0x4c
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x43b637
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
mov edx, edx
and ecx, edx
and ecx, edx
call fcn.0043b66a
and edx, ecx
sub ecx, edx
xor dword [edi], ebx
sub ecx, ecx
add edi, 1
add ecx, 1
cmp edi, eax
jne fcn.0043b637
add ecx, 0xeda17130
ret