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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000edc8
pop dword [ebp - 0x1c]
mov eax, 0x947e91fb
add eax, 0x7b825bcd
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3e84f
push 0
mov eax, 0x17a3c73d
sub eax, 0x7a3b5bd
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xc4e0ee06
sub ecx, 0xc4e0ae91
xor edx, edx
add edx, eax
mov ebx, 0xe1b394b1
add ebx, 0x2e66634f
add ebx, dword [ebp - 0x1c]
mov edi, 0x4edc2eab
add edi, 0xb49de4b3
xor dword [ebp - 0x18], 0xa4182b1e
mov esi, dword [ebx]
xor esi, edi
add dword [ebp - 0x10], 0x9c23b3e4
mov dword [edx], esi
add dword [ebp - 0x14], 0xd1391e30
add edx, 4
add ebx, 4
loop 0x1000ee29
add eax, 0xf0a7
mov ebx, eax
add eax, 0x11393dde
add eax, 0xeec6c227
mov ecx, 0x7fc3036b
sub ecx, 0x6fc3036b
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x10011140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10043a41
call fcn.1001f59e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100111a1
call fcn.1000e50a
mov esi, eax
jmp 0x10011279
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100111bf
call fcn.1000e50a
jmp 0x10011270
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x100111b5
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x100111f2
mov esi, 0x8007000e
jmp 0x10011272
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000edb9
mov dword [ebp - 4], 1
jmp 0x10011226
cmp dword [ebp - 0x418], 0
je 0x100111e8
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100111b5
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.1000edb9
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10011292
lea ecx, [ebp - 0x418]
call fcn.10011348
mov eax, esi
call fcn.1001f5f7
ret 0x10
Function at 0x1001f1ed
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x100463b8
call fcn.10021546
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1001f27b
call fcn.10021514
test eax, eax
jne 0x1001f211
xor eax, eax
jmp 0x1001f347
call fcn.10020948
test eax, eax
jne 0x1001f221
call fcn.10021532
jmp 0x1001f20a
call fcn.100214c8
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x10193274], eax
call fcn.1000edb9
mov dword [0x101913dc], eax
call fcn.1000edb9
test eax, eax
jns 0x1001f24b
call fcn.10020621
jmp 0x1001f21a
call fcn.1000edb9
test eax, eax
js 0x1001f274
call fcn.10021100
test eax, eax
js 0x1001f274
push 0
call fcn.1000edb9
pop ecx
test eax, eax
jne 0x1001f274
inc dword [0x101913d8]
jmp 0x1001f344
call fcn.100210ad
jmp 0x1001f244
xor edi, edi
cmp eax, edi
jne 0x1001f2da
cmp dword [0x101913d8], edi
jle 0x1001f20a
dec dword [0x101913d8]
mov dword [ebp - 4], edi
cmp dword [0x10191744], edi
jne 0x1001f29f
call fcn.10020e3b
cmp dword [ebp + 0x10], edi
jne 0x1001f2b3
call fcn.100210ad
call fcn.10020621
call fcn.10021532
mov dword [ebp - 4], 0xfffffffe
call fcn.1001f2c6
jmp 0x1001f344
cmp eax, 2
jne 0x1001f338
call fcn.100205ed
push 0x214
push 1
call fcn.1000edb9
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x1001f20a
push esi
push dword [0x1004a940]
push dword [0x10191724]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x1001f32c
push edi
push esi
call fcn.10020662
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x1001f344
push esi
call fcn.1000edb9
pop ecx
jmp 0x1001f20a
cmp eax, 3
jne 0x1001f344
push edi
call fcn.1000edb9
pop ecx
xor eax, eax
inc eax
call fcn.1002158b
ret 0xc

Function at 0x1001f4a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a900]
jne fcn.1001fc43
repz ret
Function at 0x10033620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x34], ebx
je 0x10033636
push dword [esi + 0x34]
call fcn.1000edb9
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10033646
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x44], ebx
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x10033656
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x48], ebx
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10033666
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x50], ebx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10033676
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], ebx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x10033686
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x54], ebx
push edi
push 7
lea edi, [esi + 0x58]
pop ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x1003369c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [edi], 0
add edi, 4
dec ebx
jne 0x1003368d
mov ecx, dword [esi + 0x7c]
pop edi
test ecx, ecx
je 0x100336b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x7c], ebx
jmp 0x100336b7
xor ebx, ebx
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x100336c7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x78], ebx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100336d7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x264], ebx
cmp dword [esi + 0x260], ebx
je 0x100336f1
mov dword [esi + 0x260], ebx
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x10033708
push eax
call fcn.1000edb9
pop ecx
mov dword [esi + 0x2d4], ebx
mov eax, dword [esi + 0x150]
test eax, eax
je 0x1003371f
push eax
call fcn.1000edb9
pop ecx
mov dword [esi + 0x150], ebx
mov ecx, esi
pop esi
pop ebx
Function at 0x4eb000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x94000]
push edi
jmp 0x4eb01a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4eb021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb010
mov eax, 1
add ebx, ebx
jne 0x4eb033
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4eb044
jne 0x4eb063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb063
dec eax
add ebx, ebx
jne 0x4eb050
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4eb028
add ebx, ebx
jne 0x4eb05f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4eb0b5
xor ecx, ecx
sub eax, 3
jb 0x4eb07b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4eb0ea
sar eax, 1
mov ebp, eax
jmp 0x4eb086
add ebx, ebx
jne 0x4eb086
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb054
inc ecx
add ebx, ebx
jne 0x4eb094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eb054
add ebx, ebx
jne 0x4eb0a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4eb096
jne 0x4eb0b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4eb096
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4eb0d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4eb0c6
jmp 0x4eb016
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4eb0d4
add edi, ecx
jmp 0x4eb016
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4eb0f2
cmp byte [edi], 0x11
jne 0x4eb0f2
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 0x4eb0f7
lea edi, [esi + 0xe4000]
mov eax, dword [edi]
or eax, eax
je 0x4eb16f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfcef8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfd074]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4eb124
mov ecx, edi
jns 0x4eb153
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 + 0xfd078]
or eax, eax
je 0x4eb169
mov dword [ebx], eax
add ebx, 4
jmp 0x4eb141
call dword [esi + 0xfd088]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4eb1a0
cmp al, 0xef
ja 0x4eb193
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4eb175
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4eb182
mov ebp, dword [esi + 0xfd07c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4eb1d4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..data
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xdfc7c7c
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2825594a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x100129d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100129df
pop dword [ebp - 0x44]
mov eax, 0x30b30594
add eax, 0xdf4e244b
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x7c275aac
sub dword [ebp - 0x54], 0x2dd51561
mov dword [ebp - 0x50], 0xfe757ada
sub dword [ebp - 0x50], 0xcc422e95
mov dword [ebp - 0x4c], 0xe02f2839
sub dword [ebp - 0x4c], 0x93e2e40b
mov dword [ebp - 0x48], 0x2a0adefc
add dword [ebp - 0x48], 0xd5f52104
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe46d083
sub eax, 0xfe457023
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x2a0eb2f3
sub dword [ebp - 0x54], 0xb59c499d
mov dword [ebp - 0x50], 0xdc4c4e08
sub dword [ebp - 0x50], 0x9adfec93
mov dword [ebp - 0x4c], 0xf7a11889
sub dword [ebp - 0x4c], 0x9431ac1d
mov dword [ebp - 0x48], 0x47e5676
add dword [ebp - 0x48], 0xfb81a98a
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xa3b6a95e
sub eax, 0x93b548fa
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35da6
push 0
call eax
mov ecx, 0x4107
xor edx, edx
add edx, eax
mov edi, 0x10023600
add edi, dword [ebp - 0x44]
mov esi, 0x30770c75
xor dword [ebp - 0x2c], 0x17a5fede
mov ebx, dword [edi]
add dword [ebp - 0x30], esi
sub ebx, esi
mov dword [edx], ebx
add dword [ebp - 0x38], edi
add edx, 0xe34aea3e
add edx, 0x1cb515c6
add edi, 0x416f902d
sub edi, 0x416f9029
loop 0x10012af1
add eax, 0x3005b1ab
sub eax, 0x3004babc
mov ebx, eax
add eax, 5
mov ecx, 0x86fdf56b
sub ecx, 0x76fdf56b
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0xab4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ab41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xab407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xab406a
add dl, dl
jne 0xab4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xab40dc
xor eax, eax
add dl, dl
jne 0xab4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xab417d
add dl, dl
jne 0xab40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xab40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xab4075
mov eax, 1
add dl, dl
jne 0xab40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xab40e1
sub eax, ebx
mov ebx, 1
jne 0xab4128
mov ecx, 1
add dl, dl
jne 0xab410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xab4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xab4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xab4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xab413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xab414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xab4136
cmp eax, 0x7d00
jae 0xab416d
cmp eax, 0x500
jb 0xab4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xab4075
cmp eax, 0x7f
ja 0xab4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xab4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xab419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xab4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x401443
pop dword [ebp - 0x40]
mov eax, 0xe8f555f4
sub eax, 0xe8b541b1
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x22cae35b
sub dword [ebp - 0x50], 0xd4789e10
mov dword [ebp - 0x4c], 0x596c2397
sub dword [ebp - 0x4c], 0x2738d752
mov dword [ebp - 0x48], 0x8f8087cb
add dword [ebp - 0x48], 0xbccbbc63
mov dword [ebp - 0x44], 0x6c2dab3
add dword [ebp - 0x44], 0xf93d254d
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x61028743
add dword [ebp - 0x50], 0x136fe213
mov dword [ebp - 0x4c], 0xf701d38d
sub dword [ebp - 0x4c], 0xb5957218
mov dword [ebp - 0x48], 0xc674c319
sub dword [ebp - 0x48], 0x630556ad
mov dword [ebp - 0x44], 0x29e02477
sub dword [ebp - 0x44], 0x29e02477
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x34e0101e
sub eax, 0x349f8f1e
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x39c92
push 0
call eax
mov ecx, 0x438528e4
add ecx, 0xbc7b2517
xor edx, edx
add edx, eax
mov edi, 0x7ef98687
sub edi, 0x7eb2a287
add edi, dword [ebp - 0x40]
mov esi, 0x5518c858
add esi, 0xf409a488
xor dword [ebp - 0x38], edx
mov ebx, dword [edi]
add dword [ebp - 0x24], ebx
sub ebx, esi
xor dword [ebp - 0xc], edi
mov dword [edx], ebx
add dword [ebp - 0x28], 0x60b92945
add edx, 0xfbc5d7fa
sub edx, 0xfbc5d7f6
add edi, 4
loop 0x401562
add eax, 0x12abf
mov ebx, eax
add eax, 0xc7073422
sub eax, 0xc707341d
mov ecx, 0x99caf139
sub ecx, 0x998af139
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4059c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4059eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004061c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405a0d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405a0f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405a93
jg 0x405a24
test esi, esi
je 0x405a93
test ecx, ecx
jl 0x405a6d
jg 0x405a2e
test eax, eax
je 0x405a6d
cmp edi, ecx
jg 0x405a42
jl 0x405a38
cmp esi, eax
jae 0x405a42
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00457010
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405a70
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405a93
jg 0x405a7a
test esi, esi
je 0x405a93
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405a93
push eax
push esi
push 1
push edx
call fcn.0045ac1c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405adb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405afd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405aff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405b9e
jg 0x405b1c
test esi, esi
je 0x405b9e
test ecx, ecx
jl 0x405b69
jg 0x405b26
test eax, eax
je 0x405b69
cmp ebx, ecx
jg 0x405b3a
jl 0x405b30
cmp esi, eax
jae 0x405b3a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00457010
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405b70
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405b9e
jg 0x405b7a
test esi, esi
je 0x405b9e
cmp dword [edi + 0x4c], 0
je 0x405b9e
mov ecx, edi
call fcn.00406e70
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045b1f6
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405ee0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455217
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f1d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405f1d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455217
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x406012
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405f45
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405f79
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045a2f7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455217
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x406012
cmp eax, 1
jle 0x405fe1
cmp eax, 3
jne 0x406012
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045a2f7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455217
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x406000
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045ac1c
add esp, 0x10
cmp edi, eax
jne 0x406012
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405f07
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455217
add esp, 0x30
ret 4