joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
mov esi, eax
mov dword [ebp - 0x45c], eax
je 0x471187
lea edi, [ebp - 0x244]
xor eax, eax
mov ecx, 0x8b
lea ebx, [ebp - 0x444]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x244]
mov dword [esp], esi
mov dword [ebp - 0x244], 0x22c
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Process32FirstW
sub esp, 8
test eax, eax
je 0x471133
xor eax, eax
mov ecx, pe_nt_image_headers32
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.libmemuqt.dll_ConvertToMultiByte_wchar_t_const__char_]
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x471110
mov edi, dword [ebp - 0x23c]
mov dword [esp + 4], 0
mov dword [esp], 0x410
mov dword [esp + 8], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x471110
mov dword [esp + 4], eax
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.00470ee0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x448]
mov dword [esp], eax
call fcn.004df6f8
mov ecx, dword [ebp - 0x448]
sub esp, 4
mov edx, 0xffffffff
lock xadd dword [ecx - 4], edx
test edx, edx
jle 0x471153
test eax, eax
je 0x471177
mov esi, esi
lea edi, [edi]
lea eax, [ebp - 0x244]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32NextW
sub esp, 8
test eax, eax
jne 0x471070
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x449]
sub ecx, 0xc
mov dword [ebp - 0x460], eax
mov dword [esp], edx
call fcn.004df5e0
mov eax, dword [ebp - 0x460]
sub esp, 4
test eax, eax
jne 0x471110
mov dword [esp], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esp, 4
jmp 0x47113b
lea esp, [ebp - 0xc]
xor edi, edi
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4711c0
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x471202
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
test eax, eax
jne 0x471210
add esp, 0x18
xor eax, eax
pop ebx
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, 1
add esp, 0x18
pop ebx
ret
Function at 0x4de070
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004de0d0
Function at 0x4dea70
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4deaa8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4dea9e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4deaaa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4dea90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4ded70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4deed1
mov edx, dword [esp + 0x3c]
lea eax, [edx*4]
cmp edx, 0x1fc00000
mov edx, 0xffffffff
cmova eax, edx
xor ebx, ebx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
jle 0x4dee79
nop
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jg 0x4dedd0
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00409870
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4deebd
mov edx, dword [edi + ebx*4]
test edx, edx
je 0x4deeb4
mov dword [esp], edx
call sub.libstdc_6.dll_operator_delete___void_
add ebx, 1
cmp dword [esp + 0x3c], ebx
jg 0x4deea5
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x4deec7
Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call fcn.1000106f
Function at 0x1da14d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1da1620
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 0x1da14f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1da14e2
add dl, dl
jne 0x1da1501
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1da1554
xor eax, eax
add dl, dl
jne 0x1da150e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1da15f5
add dl, dl
jne 0x1da151d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1da1528
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1da1533
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1da153e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1da154a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1da14ed
mov eax, 1
add dl, dl
jne 0x1da1562
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1da156d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1da1559
sub eax, ebx
mov ebx, 1
jne 0x1da15a0
mov ecx, 1
add dl, dl
jne 0x1da1586
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1da1591
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1da157d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1da14ed
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1da15b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1da15c2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1da15ae
cmp eax, 0x7d00
jae 0x1da15e5
cmp eax, 0x500
jb 0x1da15e0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1da14ed
cmp eax, 0x7f
ja 0x1da15e8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1da14ed
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1da1616
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 0x1da14ed
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa40058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa401a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa4007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4006a
add dl, dl
jne 0xa40089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa400dc
xor eax, eax
add dl, dl
jne 0xa40096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4017d
add dl, dl
jne 0xa400a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa400b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa400bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa400c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa400d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa40075
mov eax, 1
add dl, dl
jne 0xa400ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa400f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa400e1
sub eax, ebx
mov ebx, 1
jne 0xa40128
mov ecx, 1
add dl, dl
jne 0xa4010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa40119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa40105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa40075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa4013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa4014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa40136
cmp eax, 0x7d00
jae 0xa4016d
cmp eax, 0x500
jb 0xa40168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa40075
cmp eax, 0x7f
ja 0xa40170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa40075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa4019e
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 0xa40075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x11f3a50
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x1c], 8
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], edi
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
jae 0x11f3a97
lea eax, [ebp + 8]
push 0x1263130
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0123fd24
add esp, 0xc
test eax, eax
je 0x11f3ace
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [ebp + 8]
push 0x1263138
rep movsd dword es:[edi], dword [esi]
call fcn.0123fd6b
add esp, 0x20
jmp 0x11f3b35
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.01240072
add esp, 0x10
cmp eax, edi
je 0x11f3b1f
nop
lea ecx, [ebp - 0x404]
push ecx
mov esi, ebx
call fcn.011f38b0
mov edx, dword [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.01240072
add esp, 0x10
cmp eax, edi
jne 0x11f3af0
mov ecx, ebx
call fcn.011f3960
mov ecx, dword [ebp - 0x408]
push ecx
call fcn.012400fc
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x11f3b47
mov edx, dword [ebp + 8]
push edx
call fcn.0123e60d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
lea eax, [ebx + 0x68]
xor ecx, ebp
pop ebx
call fcn.0123e488
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x11f7be0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125c149
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], cx
xor edx, edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
mov byte [ebp - 4], 2
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x11f7c54
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push 0x100
lea ecx, [ebp - 0x21c]
push ecx
push 3
lea edx, [ebp - 0x1c]
push edx
push eax
call fcn.01240207
add esp, 0x24
push ebx
push 0x1263064
lea ecx, [ebp - 0x238]
call fcn.011f1740
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x11f7c90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x238]
call fcn.01202040
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x11f7cb7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.01202040
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x11f7ce4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x4c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x11f7dc2
mov ecx, 0x12646a0
lea eax, [ebp - 0x498]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x11f7d2e
cmp dx, bx
je 0x11f7d2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x11f7d2e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x11f7d08
xor eax, eax
jmp 0x11f7d33
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x11f7dc2
mov ecx, 0x12646a4
lea eax, [ebp - 0x498]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x11f7d6c
cmp dx, bx
je 0x11f7d68
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x11f7d6c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x11f7d46
xor eax, eax
jmp 0x11f7d71
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x11f7dc2
test byte [ebp - 0x4c4], 0x10
je 0x11f7dc2
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.01204c90
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.011febb0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], 8
jb 0x11f7dc2
mov edx, dword [ebp - 0x270]
push edx
call fcn.0123e60d
add esp, 4
lea eax, [ebp - 0x4c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x11f7cf4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x11f7dfb
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0123e60d
add esp, 4
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
cmp dword [ebp + 0x1c], esi
jb 0x11f7e25
mov eax, dword [ebp + 8]
push eax
call fcn.0123e60d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
Function at 0x1200c30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125b338
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x1286d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x54], 0
jne 0x1200d23
mov eax, dword [ebp + 8]
push 0x40
push eax
push ecx
call fcn.0122e00c
add esp, 0xc
test eax, eax
je 0x1200d23
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
mov edx, dword [0x128becc]
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.01201ec0
push eax
mov dword [ebp - 4], 0
call fcn.012055b0
add esp, 4
push eax
mov ecx, esi
call fcn.01200f20
mov ecx, edi
call fcn.011f1f70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x1200dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125af78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x1200efc
cmp byte [edi + 0x4a], bl
je 0x1200efc
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x1200ef0
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x1200e50
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1200e68
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x1200e91
dec eax
je 0x1200e95
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x1200eeb
jmp 0x1200ef7
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1200ea5
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1200ece
cmp ebx, 0x10
jae 0x1200eb4
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.012409aa
add esp, 0x10
cmp esi, eax
jne 0x1200ee8
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x1200ef4
test esi, esi
jne 0x1200e5c
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.012002f0
jmp 0x1200e56
lea ecx, [ebp - 0x2c]
call fcn.011fe0d0
xor al, al
jmp 0x1200efe
lea ecx, [ebp - 0x2c]
call fcn.011fe0d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
Function at 0x1201dd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125abfb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1286d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0122df02
push 4
mov dword [ebp - 4], 0
call fcn.0123e9d2
mov edi, eax
add esp, 4
test edi, edi
je 0x1201e50
call fcn.0122a1b1
mov dword [edi], eax
call fcn.0122a06b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.01229fa0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1201e46
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.01229fc8
jmp 0x1201e52
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1209680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x12096be
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
push 0x20119
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x12096eb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea edi, [esi + eax*2]
je 0x120970d
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
xor edx, edx
mov word [edi], dx
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x214]
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push eax
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x12097a3
jmp 0x1209750
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.01209630
push esi
push ebx
call fcn.01209680
add esp, 8
test eax, eax
je 0x12097a3
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x214]
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1209750
xor edx, edx
mov word [edi - 2], dx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0123e488
mov esp, ebp
pop ebp
ret
Function at 0x12097e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.01255d50
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
lea ecx, [ebp - 0x2008]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x12098fd
mov dword [ebp - 0x200c], 0x2000
test edi, edi
je 0x1209841
push 0x1000
push edi
call fcn.01240f59
add esp, 8
lea edx, [ebp - 0x200c]
push edx
mov edx, dword [ebp - 0x2008]
lea ebx, [eax + eax + 2]
lea eax, [ebp - 0x2004]
push eax
lea ecx, [ebp - 0x2010]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x12098aa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2008]
push ebx
push edi
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x12098fd
mov edx, dword [ebp - 0x2008]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x12098fd
lea eax, [ebp - 0x2004]
push edi
push eax
call fcn.0123fbdb
add esp, 8
test eax, eax
je 0x12098fd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2008]
push ebx
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x12098fd
mov eax, dword [ebp - 0x2008]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2008]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0123e488
mov esp, ebp
pop ebp
ret