joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a323
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x404
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413c9e
mov esi, eax
pop ecx
test esi, esi
je 0x40a387
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0040d348
pop ecx
push eax
push esi
lea ecx, [edi + 0x20]
call fcn.0040d0a5
push esi
call fcn.00413c70
pop ecx
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x40c889
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x4c]
call fcn.0040fedb
mov ecx, dword [ebx + 0x4c]
push 0
call fcn.0040fd11
mov ecx, dword [ebx + 0x4c]
mov edi, eax
push 0
call fcn.0040fd11
mov ecx, dword [ebx + 0x4c]
push 2
mov dword [ebp - 4], eax
call fcn.0040fd11
mov ecx, dword [ebx + 0x4c]
mov esi, eax
push 2
call fcn.0040fdaa
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0x4c]
push 3
call fcn.0040fdaa
fld qword [0x402218]
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0x54]
fstp qword [esi + 0x10]
mov dword [esi + 0x20], 4
push 0
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x40], ecx
mov ecx, dword [ebx + 0x4c]
call fcn.0040fdaa
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], esi
mov ecx, dword [ebx + 0x4c]
push 2
call fcn.0040fdaa
mov dword [edi + 0x30], eax
mov ecx, dword [ebx + 0x4c]
push 3
call fcn.0040fdaa
mov dword [edi + 0x34], eax
lea eax, [ebx + 0x80]
mov dword [edi + 0x40], eax
mov edi, dword [ebp - 4]
push 1
mov dword [edi + 0x28], esi
mov ecx, dword [ebx + 0x4c]
call fcn.0040fdaa
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0x4c]
push 2
call fcn.0040fdaa
mov dword [edi + 0x30], eax
mov ecx, dword [ebx + 0x4c]
push 3
call fcn.0040fdaa
mov dword [edi + 0x34], eax
mov ecx, dword [ebx + 0x2c]
call fcn.00411ba2
test eax, eax
je 0x40c96b
add eax, 4
jmp 0x40c96d
xor eax, eax
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x54]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x2c]
call fcn.00411ba2
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x50]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x4c]
call fcn.00410119
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cdb6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.0040cb84
push edi
push dword [esi + 0x38]
push 0x149
push 0x417
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40cdec
mov edi, 0x80004005
jmp 0x40cea5
inc ebx
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413c9e
pop ecx
mov ecx, eax
mov dword [esi + 0x24], ecx
test ecx, ecx
jne 0x40ce17
mov edi, 0x8007000e
jmp 0x40cea5
lea eax, [ebx + ebx]
push eax
push edi
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0x2c], ebx
push dword [esi + 0x24]
push dword [esi + 0x38]
push 0x148
push 0x417
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
push 2
pop edx
lea ebx, [eax + 1]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413c9e
pop ecx
mov ecx, eax
mov dword [esi + 0x28], ecx
test ecx, ecx
je 0x40ce0d
lea eax, [ebx + ebx]
push eax
push edi
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0x30], ebx
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x30]
push dword [esi + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40d976
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d9d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d9d0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40d9c2
cmp esi, ecx
jae 0x40d9d0
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40d9b0
cmp esi, ecx
jae 0x40d9d0
cmp word [esi], 0
je 0x40d9d0
mov eax, esi
jmp 0x40d9d2
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x41213f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 0x147
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x44], eax
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
lea ecx, [esi + 0x40]
call fcn.00405cbf
push dword [esi + 0x64]
mov eax, dword [eax]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413c9e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x412217
push dword [ebp - 4]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea ecx, [ebp - 4]
call fcn.00403dc4
push eax
lea ecx, [esi + 0x54]
call fcn.0040443d
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040c9e8
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413c9e
mov edi, eax
pop ecx
test edi, edi
je 0x412217
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
lea ecx, [ebp - 4]
call fcn.00403dc4
push eax
lea ecx, [esi + 0x58]
call fcn.0040443d
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040c9e8
push ebx
call fcn.00413c70
push edi
call fcn.00413c70
pop ecx
pop ecx
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x412950
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x415ad0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USER32.dll_LockWindowUpdate]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x24]
call fcn.00404859
mov eax, dword [esi]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x417364]
call esi
push 0x40
call fcn.00413c75
mov esi, eax
pop ecx
test esi, esi
je 0x4129b8
push 0x40
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00410ca3
jmp 0x4129ba
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebx + 0x34]
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00404859
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0xa0]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
cmp eax, 1
jbe 0x4129e8
add dword [ebp - 0x10], 0xf
add dword [ebp - 8], 0xf
lea ecx, [ebp - 0x14]
dec eax
push ecx
push eax
mov ecx, ebx
call fcn.004119e1
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
and dword [ebp - 0x18], 0
push edx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x417364]
call esi
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x412a2e
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
mov eax, dword [ebx + 0x28]
push esi
dec eax
push eax
call fcn.0041156c
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x412a17
push 5
push dword [ebx + 0x7c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00414060
leave
ret 4
Function at 0x412b78
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x415ad0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x3ff
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x50
mov esi, eax
call fcn.00413c9e
pop ecx
push 0x28
push eax
push esi
mov dword [ebp - 0x10c], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, 0x402c8c
lea edi, [ebx + 0x20]
lea eax, [ebp - 0x110]
push eax
push 0x28
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10c]
push edi
mov byte [ebx + 0x30], 1
call fcn.00412ca6
test eax, eax
js 0x412c81
cmp dword [ebp - 0x110], 0
jbe 0x412c81
lea eax, [ebp - 0x104]
push edi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00412b24
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
mov esi, eax
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x412c39
push dword [ebp - 0x108]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
jns 0x412c81
push 0x415b5c
lea ecx, [ebp - 0x10c]
call fcn.00403d89
push esi
lea eax, [ebp - 0x10c]
push 0x259
push eax
call fcn.00405c57
mov esi, dword [ebp - 0x10c]
add esp, 0xc
push 0
push esi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
mov byte [ebx + 0x30], 0
call fcn.0040c9e8
push edi
call fcn.00413c70
pop ecx
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414060
leave
ret 0x10
Function at 0x413d53
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4149d0
call fcn.004145c8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41612c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x413da5
cmp eax, esi
jne 0x413d98
xor esi, esi
inc esi
mov edi, esi
jmp 0x413da8
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x413d7c
xor esi, esi
inc esi
cmp dword [0x416130], esi
jne 0x413dba
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x413df4
cmp dword [0x416130], ebx
jne 0x413dee
mov dword [0x416130], esi
push 0x401028
push 0x40101c
call fcn.00413f2e
pop ecx
pop ecx
test eax, eax
je 0x413df4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x413f1e
mov dword [0x415da8], esi
cmp dword [0x416130], esi
jne 0x413e17
push 0x401018
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x416130], 2
test edi, edi
jne 0x413e24
xor eax, eax
mov ecx, 0x41612c
xchg dword [ecx], eax
cmp dword [0x41613c], 0
je 0x413e50
push 0x41613c
call fcn.00414420
pop ecx
test eax, eax
je 0x413e50
push ebx
push 2
push ebx
mov esi, dword [0x41613c]
mov ecx, esi
call dword [0x417364]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x413ddd
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x413ebb
test ax, ax
je 0x413e8a
test edx, edx
jne 0x413ebb
test ax, ax
je 0x413e8a
cmp ax, si
ja 0x413e8a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x413e75
test byte [ebp - 0x3c], 1
je 0x413e96
movzx eax, word [ebp - 0x38]
jmp 0x413e99
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x415da4], eax
cmp dword [0x415dbc], 0
jne 0x413f03
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x413ecc
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x413e64
cmp dword [0x415da8], 0
jne 0x413f17
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x415da4]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004b5000
jmp 0x413d53

Function at 0x414304
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x414a10
call fcn.004145c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x414364
cmp eax, 0xffffffff
je 0x414364
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41435d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41435d
cmp edx, 0x10000000
jae 0x41435d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41435a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4143d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41440e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x414406
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x414410
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4143f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4144e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x414511
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x414511
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x414511
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x409b47
pop dword [ebp - 0x30]
mov eax, 0xb0b2d9d5
add eax, 0x4f8dc172
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xf3d5cdf4
add dword [ebp - 0x40], 0x5a7c7757
mov dword [ebp - 0x3c], 0x9767e189
sub dword [ebp - 0x3c], 0x65349544
mov dword [ebp - 0x38], 0x56ce59
sub dword [ebp - 0x38], 0xb40a8a2b
mov dword [ebp - 0x34], 0xb7f8805f
sub dword [ebp - 0x34], 0xb7f8805f
lea eax, [ebp - 0x40]
push eax
mov eax, 0x54ec45d7
sub eax, 0x54ab7583
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xdab57380
add dword [ebp - 0x40], 0x99bcf5d6
mov dword [ebp - 0x3c], 0x108ba679
sub dword [ebp - 0x3c], 0xcf1f4504
mov dword [ebp - 0x38], 0x9323a200
sub dword [ebp - 0x38], 0x2fb43594
mov dword [ebp - 0x34], 0x7601c315
add dword [ebp - 0x34], 0x89fe3ceb
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x9ed8160d
sub eax, 0x9e9745c1
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x39cf6
push 0
call eax
mov ecx, 0x4912
mov edi, eax
mov edx, 0xd90b04ab
sub edx, 0xd8c954ab
add edx, dword [ebp - 0x30]
mov esi, 0xa258394e
add esi, 0x76adb955
add dword [ebp - 0x24], ebx
mov ebx, dword [edx]
mov dword [ebp - 4], 0x5a050470
add ebx, esi
xor dword [ebp - 0x24], edi
mov dword [edi], ebx
xor dword [ebp - 0x28], ebx
add edi, 0xc0f2e3e2
add edi, 0x3f0d1c22
add edx, 0xd20824a2
add edx, 0x2df7db62
loop 0x409c63
add eax, 0x1171b
xor ebx, ebx
add ebx, eax
add eax, 0x2cccfad2
sub eax, 0x2cccfacd
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x404b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x404b33
pop dword [ebp - 0x40]
mov eax, 0x404b33
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x1a3bc8ba
add dword [ebp - 0x50], 0x34167c91
mov dword [ebp - 0x4c], 0xa4fec83b
add dword [ebp - 0x4c], 0x8d34840a
mov dword [ebp - 0x48], 0xddc49c7b
sub dword [ebp - 0x48], 0x9178584d
mov dword [ebp - 0x44], 0xfbf6702e
add dword [ebp - 0x44], 0x4098fd2
lea eax, [ebp - 0x50]
push eax
mov eax, 0x22aacc57
sub eax, 0x22689be3
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xd68386e0
sub dword [ebp - 0x50], 0x62111d8a
mov dword [ebp - 0x4c], 0x40376337
add dword [ebp - 0x4c], 0x134fe3e
mov dword [ebp - 0x48], 0x49b4a9e1
add dword [ebp - 0x48], 0x19bac28b
mov dword [ebp - 0x44], 0xb8bcfff4
add dword [ebp - 0x44], 0x4743000c
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x4971f075
add eax, 0xb6d040af
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3c798
push 0
call eax
mov ecx, 0x4302
xor edx, edx
add edx, eax
mov esi, 0x498e402e
add esi, 0xb6b503d2
add esi, dword [ebp - 0x40]
mov ebx, 0xb5c23322
sub ebx, 0xca0630d1
xor dword [ebp - 0x14], 0x62776e92
mov edi, dword [esi]
xor dword [ebp - 0x1c], 0xbdb58efa
xor edi, ebx
mov dword [ebp - 0x38], 0x26d708dd
mov dword [edx], edi
add edx, 0x96b6bb7b
sub edx, 0x96b6bb77
add esi, 4
loop 0x404c4c
add eax, 0x1d467cf8
add eax, 0xe2ba81e3
mov ebx, eax
add eax, 0x21aa2807
add eax, 0xde55d7fe
mov ecx, 0xae61d66f
sub ecx, 0xae21d66f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x401198
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 4
push 0x40f244
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401282
push ebx
push esi
push edi
mov ebx, 0x40f967
push eax
push ebx
call fcn.00403464
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401276
lea eax, [ebp - 0x110]
push eax
call fcn.0040c438
xor edi, edi
pop ecx
cmp dword [ebp - 0xc], edi
jle 0x40126e
push edi
push ebx
call fcn.00403434
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
je 0x401268
push 0x40fb6f
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401268
push 2
push 0x40fc6f
call fcn.00403434
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401261
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40120f
inc dword [ebp - 8]
jmp 0x4011df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401284
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
lea eax, [ebp + 0xc]
push esi
and dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, 0x400
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012b8
xor eax, eax
jmp 0x4013a4
push ebx
push edi
mov edi, 0x40f967
push 0
push edi
call fcn.00403464
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401397
cmp dword [ebp - 0x10], 1
je 0x40130f
and byte [ebp - 0x814], al
lea eax, [ebp - 0x414]
push eax
call fcn.0040c438
lea eax, [ebp - 0x814]
push eax
call fcn.0040c438
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jle 0x40138f
push ebx
push edi
call fcn.00403434
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x401379
push dword [ebp - 0x14]
lea eax, [ebp - 0x814]
push eax
call fcn.00403b7d
pop ecx
test eax, eax
pop ecx
jne 0x401379
lea eax, [ebp - 0x414]
push str.____
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
jne 0x401389
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40132f
inc dword [ebp - 4]
jmp 0x4012cc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 8
Function at 0x4028d1
Capabilities:
Parse pe header

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