joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df66
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x48d6ec]
inc eax
mov dword [0x48d6ec], eax
cmp eax, 0x58d8dbf5
jg 0x40df97
mov ax, word [0x492114]
cwde
add eax, 0x268cc6e2
or eax, 0x3e3adfff
mov ecx, dword [0x490874]
sub ecx, eax
mov dword [0x490874], ecx
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x48faa8]
inc eax
mov dword [0x48faa8], eax
mov dx, word [0x490cb6]
or edx, eax
or edx, 0x2a80
mov word [0x490cb6], dx
mov eax, dword [0x48eff0]
cmp eax, 0x4282dcf8
jne 0x40dfd8
xor dword [0x48b178], 0xcbb155cd
jmp 0x40dfe8
mov eax, dword [0x48ac3c]
imul eax, eax, 0xdff73f7f
mov dword [0x48ac3c], eax
test ecx, ecx
jle 0x40e115
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
xor eax, eax
mov edi, ecx
mov ebp, dword [0x48916c]
not ebp
mov edx, dword [0x48bbb8]
imul edx, ebp
mov dword [0x48bbb8], edx
mov edx, dword [ebx]
xor dword [0x487e60], 0xda7df1d0
sub dword [ebx], eax
mov bp, word [0x491f1e]
movsx ebp, bp
mov ecx, dword [0x48cfb0]
xor ecx, ebp
xor dword [0x487708], ecx
mov ecx, dword [ebx]
cmp ecx, dword [esi]
sbb ecx, ecx
and ecx, 1
cmp edx, eax
mov eax, ecx
adc eax, 0
xor dword [0x485060], 0xe9e6937a
mov ecx, dword [esi]
sub dword [ebx], ecx
mov ecx, dword [0x48976c]
imul ecx, ecx, 0x483bfc9
mov dword [0x48976c], ecx
add esi, 4
add ebx, 4
dec edi
jne 0x40dffc
test eax, eax
mov ecx, dword [esp + 0x14]
je 0x40e115
mov edx, dword [esp + 0x1c]
lea ecx, [edx + ecx*4]
mov edx, dword [0x487a0c]
sar edx, 8
mov esi, 0xee0c519e
sub esi, edx
xor dword [0x48a388], esi
mov edx, dword [ecx]
cmp edx, eax
sbb esi, esi
and esi, 1
mov di, word [0x494af8]
xor edi, 0x2e57
mov word [0x494af8], di
sub dword [ecx], eax
mov di, word [0x491302]
add edi, 0xffff8138
mov word [0x491302], di
mov edi, dword [0x4884bc]
lea ebx, [edi + 1]
mov dword [0x4884bc], ebx
and edi, 0x271ac04f
xor dword [0x487c54], edi
mov edi, dword [0x488654]
xor dword [0x48a5f4], edi
add ecx, 4
mov edi, dword [0x487390]
inc edi
mov dword [0x487390], edi
xor dword [0x48d210], edi
cmp edx, eax
mov eax, esi
jb 0x40e085
mov eax, dword [0x48ef14]
lea ecx, [eax - 1]
mov dword [0x48ef14], ecx
mov ecx, dword [0x48c9e8]
sar ecx, 4
sub eax, ecx
cmp eax, 0x104a83f
pop esi
pop edi
pop ebx
pop ebp
jg 0x40e143
or dword [0x486c4c], 0x4de5f494
ret

Function at 0x410b46
Capabilities:
Hash data with md5

Disassembly:
mov dword [0x48e74c], 0x1924a4b9
xor eax, eax
mov dword [ecx], eax
add dword [0x484f3c], 0x67ec32c0
mov dword [ecx + 4], eax
mov ax, word [0x496292]
xor eax, 0x9dd3
mov word [0x496292], ax
mov dword [ecx + 8], 0x67452301
mov ax, word [0x491bb4]
mov eax, dword [0x48d8b8]
add eax, 0xfd075f9a
or dword [0x48ce1c], eax
mov dword [ecx + 0xc], 0xefcdab89
mov word [0x495334], 0xd8ff
mov dword [ecx + 0x10], 0x98badcfe
mov eax, dword [0x487478]
lea edx, [eax - 1]
mov dword [0x487478], edx
mov dx, word [0x491390]
inc edx
mov word [0x491390], dx
movsx edx, dx
neg edx
lea eax, [eax + edx + 0x63dbfdab]
xor dword [0x4893c0], eax
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [0x486298]
inc dword [0x48db88]
ret
Function at 0x417692
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
mov ax, word [0x491d50]
add eax, 0x348
mov word [0x491d50], ax
and dword [0x4858d8], 0xdbf45c58
and dword [0x488578], 0x24086fda
push esi
call fcn.0043d560
add esp, 4
add dword [0x48cea8], 0x8b12ddbf
mov ecx, dword [0x4903d0]
and ecx, 0x58068781
mov edx, dword [0x48ab10]
sar edx, 5
mov edi, dword [0x485f40]
add edi, edx
mov edx, dword [0x48da80]
xor edx, edi
cmp ecx, edx
jge 0x41770f
mov cx, word [0x494378]
add ecx, 0x11e2
mov word [0x494378], cx
jmp 0x417723
mov cx, word [0x4943e6]
xor ecx, 0xbafe
mov word [0x4943e6], cx
movzx ecx, byte [esi + eax - 1]
cmp ecx, 0x22
jne 0x4177f5
xor dword [0x48d57c], 0xe68aa25f
mov byte [esi], 0x22
mov ecx, dword [0x48ac40]
mov ecx, dword [0x485fcc]
mov ecx, dword [0x486e24]
mov dword [0x484fe4], 0xfad67aa2
mov ecx, eax
add ecx, esi
mov byte [esi + eax - 1], 0
mov eax, dword [0x486ea0]
lea edx, [eax - 1]
mov dword [0x486ea0], edx
add eax, 0x6f8c9ae7
mov edx, dword [0x487588]
imul edx, eax
mov dword [0x487588], edx
mov esi, ecx
mov eax, dword [0x48e438]
cmp eax, 0xfefdfed9
je 0x41779d
or dword [0x487674], 0x11420054
mov eax, dword [0x48eb3c]
mov ecx, 0x2d216d6c
sub ecx, eax
and dword [0x484c80], ecx
movzx eax, byte [esi - 2]
dec esi
cmp eax, 0x22
jne 0x417787
mov ax, word [0x492cee]
xor eax, 0x7505
mov word [0x492cee], ax
mov ax, word [0x493a84]
inc eax
mov word [0x493a84], ax
cwde
and eax, 0x810712
or eax, 0xb72ef8c1
mov ecx, dword [0x48ffd0]
sub ecx, eax
mov dword [0x48ffd0], ecx
jmp 0x4178d6
mov ecx, dword [0x487dbc]
add dword [0x48ec54], 0xc0bc73b4
mov byte [esi], 0x20
mov ecx, dword [0x4890f0]
cmp ecx, 0x94110879
jl 0x41785a
mov ecx, dword [0x48f820]
lea edx, [ecx - 1]
mov dword [0x48f820], edx
and ecx, 0xb6998cc1
mov edx, dword [0x488474]
and edx, 0x539477c2
cmp ecx, edx
jle 0x41785a
mov cx, word [0x491492]
movsx ecx, cx
sar ecx, 5
and ecx, 0x3bcdb414
xor ecx, 0xb84c272f
mov dword [0x48a484], ecx
add esi, eax
mov eax, dword [0x48997c]
or eax, 0xe7a4
xor eax, 0x59
mov word [0x4947fa], ax
and dword [0x487d64], 0x6d7fec48
movzx eax, byte [esi - 2]
dec esi
cmp eax, 0x20
jne 0x41785c
mov eax, dword [0x484d8c]
mov eax, dword [0x4880fc]
lea ecx, [eax + 1]
mov dword [0x4880fc], ecx
mov cx, word [0x49584e]
movsx ecx, cx
add ecx, eax
cmp ecx, 0x11560b97
jl 0x4178b6
xor dword [0x48d93c], 0xc7bc355d
jmp 0x4178d6
mov ax, word [0x493ef0]
lea ecx, [eax - 1]
mov word [0x493ef0], cx
cwde
mov ecx, dword [0x4857f8]
imul ecx, eax
xor dword [0x48ec98], ecx
mov eax, dword [0x48b424]
mov ecx, 0x26af6a97
sub ecx, eax
mov ax, word [0x494f1a]
cwde
mov edx, dword [0x48b118]
imul edx, edx, 0xccb19b
add edx, eax
cmp ecx, edx
jg 0x41790b
mov eax, dword [0x48cca4]
imul eax, eax, 0x52046241
mov dword [0x48cca4], eax
mov eax, esi
pop esi
pop edi
ret
Function at 0x41d756
Capabilities:
Terminate process

Disassembly:
mov ax, word [0x492c2c]
lea ecx, [eax - 1]
mov word [0x492c2c], cx
cwde
mov ecx, dword [0x487d54]
and ecx, eax
xor ecx, 0x48f42611
mov ax, word [0x496106]
cwde
shl eax, 3
or eax, 0x30173840
cmp ecx, eax
je 0x41d7a7
mov eax, dword [0x486cfc]
inc eax
mov dword [0x486cfc], eax
or eax, 0x3767fe27
mov ecx, dword [0x48a304]
imul ecx, eax
mov dword [0x48a304], ecx
push dword [0x496bfc]
call fcn.00426ad0
add esp, 4
mov eax, dword [0x48c030]
not eax
and eax, 0xc32a934
mov ecx, dword [0x48df2c]
lea edx, [ecx - 1]
mov dword [0x48df2c], edx
mov edx, 0x7c651aec
sub edx, ecx
cmp eax, edx
jge 0x41d7ee
mov ax, word [0x491fcc]
add eax, 0xffffb37c
mov word [0x491fcc], ax
jmp 0x41d80e
mov eax, dword [0x48b6b8]
inc eax
mov dword [0x48b6b8], eax
xor eax, 0xd2cb
mov cx, word [0x490adc]
sub ecx, eax
mov word [0x490adc], cx
push 1
call fcn.00442056
add esp, 4

Function at 0x41d9bf
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [0x48f288]
mov esi, dword [0x48689c]
lea edx, [edx + esi + 0xb46fcad]
mov dword [0x48689c], edx
mov edx, dword [0x48b558]
not edx
mov esi, dword [0x48b998]
and esi, edx
xor esi, 0x44323ae4
cmp esi, 0xa56db4d4
jg 0x41da11
mov edx, dword [0x48cd88]
not edx
mov word [0x494abe], dx
mov edx, dword [0x48a168]
sar edx, 7
add edx, 0x5162b64c
or dword [0x48d4e4], edx
mov edx, dword [0x485b04]
imul edx, edx, 0x33977a9a
mov dword [0x485b04], edx
and dword [0x487424], 0xa4fe90ed
mov edx, ecx
shr edx, 8
mov esi, dword [0x48fe78]
shl esi, 9
or esi, 0xe100600
mov dword [0x48d694], esi
mov edi, ecx
shr edi, 0x10
test eax, 0x3fffffff
je 0x41db02
mov esi, dword [esp + 0x14]
shl eax, 2
or dword [0x48b668], 0x44182c13
shl edi, 0x10
shl edx, 8
movzx edx, dx
or edx, edi
movzx ebx, cl
or ebx, edx
xor dword [esi], ebx
add dword [0x486de8], 0x14610825
shr ebx, 1
shl ecx, 0x1f
or ecx, ebx
shr edx, 9
mov di, word [0x49164a]
imul edi, edi, 0x646d
mov word [0x49164a], di
movzx edi, bl
add edx, ebx
mov bx, word [0x493218]
add ebx, 0x495e
mov word [0x493218], bx
movzx ebx, dl
add ebx, edi
mov edi, dword [0x48b5bc]
sar edi, 3
mov ebp, dword [0x4883e4]
imul ebp, edi
mov dword [0x4883e4], ebp
add esi, 4
mov edi, ecx
shr edi, 0x10
add eax, 0xfffffffc
mov ecx, ebx
jne 0x41da73
jmp 0x41db04
mov ebx, ecx
add dword [0x48dd0c], 0xedbffb2d
shl edi, 0x10
shl edx, 8
movzx ecx, dx
or ecx, edi
movzx eax, bl
or eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45ff54
Capabilities:
Create thread
Print debug messages

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

Function at 0x4621e8
Capabilities:
Set environment variable

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

Function at 0x4621f3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00461bfd
Function at 0x1003c760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
or eax, 0xffffffff
push esi
push edi
mov edi, 4
lea esi, [ebx + 4]
jmp dword [edi*4 + 0x1003d9a8]
Function at 0x10077a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097e96
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x1009b560
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x10077b30
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1007e420
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x38]
push dword [ebp - 0x18]
call fcn.100841e0
add esp, 4
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1000a550
lea ecx, [ebp - 0x38]
call fcn.10010b00
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret

Function at 0x10079f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1007a02c
cmp byte [esi + 0x3d], 0
je 0x1007a02c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1007a01a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10079fe1
sub eax, 1
je 0x10079fe5
sub eax, 2
jne 0x1007a01a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1007a003
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1007a01a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10093318
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10093318
mov esp, ebp
pop ebp
ret
Function at 0x547b30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
mov dword [edi + 0xcf740], 0x86b314d6
push edi
jmp 0x547b5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x547b61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547b50
mov eax, 1
add ebx, ebx
jne 0x547b73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x547b84
jne 0x547ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547ba3
dec eax
add ebx, ebx
jne 0x547b90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x547b68
add ebx, ebx
jne 0x547b9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x547bf5
xor ecx, ecx
sub eax, 3
jb 0x547bbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x547c2a
sar eax, 1
mov ebp, eax
jmp 0x547bc6
add ebx, ebx
jne 0x547bc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547b94
inc ecx
add ebx, ebx
jne 0x547bd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547b94
add ebx, ebx
jne 0x547be1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x547bd6
jne 0x547bf2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x547bd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x547c14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x547c06
jmp 0x547b56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x547c14
add edi, ecx
jmp 0x547b56
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x547c32
cmp byte [edi], 0x11
jne 0x547c32
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 al, bl
loop 0x547c37
lea edi, [esi + 0x140000]
mov eax, dword [edi]
or eax, eax
je 0x547caf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14da64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14dbe0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x547c64
mov ecx, edi
jns 0x547c93
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 + 0x14dbe4]
or eax, eax
je 0x547ca9
mov dword [ebx], eax
add ebx, 4
jmp 0x547c81
call dword [esi + 0x14dbf4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x547ce0
cmp al, 0xef
ja 0x547cd3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x547cb5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x547cc2
mov ebp, dword [esi + 0x14dbe8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x547d14
sub esp, 0xffffff80
jmp 0x420577
Function at 0x1002956
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x10013e8
push 0x29
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100298b
push 1
push 1
call eax
push dword [ebp + 0x14]
push edi
call fcn.01001c08
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004585
test eax, eax
jne 0x10029ac
mov dword [ebp - 0x18], esi
jmp 0x1002a5c
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1001d3c
push esi
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
jmp 0x1002a32
cmp dword [ebp - 0x1c], 0x50
jne 0x10029ec
push esi
push esi
push 0x8001
push dword [0x1009810]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x100981c]
cmp eax, esi
je 0x1002a04
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1002a32
lea eax, [ebp - 0x20]
push eax
push dword [0x100a9d8]
push dword [0x1009810]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1002a32
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call edi
test eax, eax
jne 0x10029d3
call fcn.01001949
push dword [0x100ae8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, esi
je 0x1002a5b
push ebx
call dword [sym.imp.USER32.dll_UnhookWinEvent]
pop ebx
cmp dword [ebp - 4], esi
je 0x1002a67
push esi
push 1
call dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
leave
ret 0x10

Function at 0x10039ad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
je 0x10039f1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10039f1
cmp dword [ebp - 4], 4
je 0x10039f6
mov eax, dword [ebp + 0x10]
jmp 0x10039f9
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x1003a02
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
add esi, esi
cmp dword [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
je 0x1003a3b
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a3b
cmp dword [ebp + 8], 1
je 0x1003a4e
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1007167
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10095ec]
jne 0x1007178
test ecx, 0xffff0000
jne 0x1007178
jmp fcn.01007182

Function at 0x1007267
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100186c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072bf
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10018a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10072b2
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10072c1
xor eax, eax
pop esi
leave
ret 4
Function at 0x10003f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x100103c0
push eax
xor eax, eax
xor eax, eax
je 0x10003fb1
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
push 0xfa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._08x.tmp
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x14]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004040
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x100103c0
push eax
xor eax, eax
xor eax, eax
je 0x10004063
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x1000408f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 8]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100044f0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000450a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x11c
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
add eax, 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10004558
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], 0x1b6c
push 0x220
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1000e640
add esp, 0xc
test eax, eax
je 0x1000457d
mov edx, dword [ebp - 0x28]
cmp dword [edx + 4], 0
je 0x10004592
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000458d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000467d
push 0xffff
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jl 0x10004661
jg 0x100045d4
cmp dword [ebp - 0x10], 0
jbe 0x10004661
cmp dword [ebp - 0xc], 0
jl 0x100045f5
jg 0x100045e5
cmp dword [ebp - 0x10], 0xffff
jbe 0x100045f5
mov dword [ebp - 0x30], 0xffff
mov dword [ebp - 0x2c], 0
jmp 0x10004601
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1000e7f0
add esp, 0xc
test eax, eax
je 0x10004645
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004647
jmp 0x10004661
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
sbb ecx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x100045be
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret