joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e7a2c30
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x1e7a2be3
cmp dword [eax + 0xc], ebx
je 0x1e7a2c86
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
inc ebp
or al, 0xe8
inc edi
cli
invalid
jmp ebp
pop esp
pop esp
lea edi, [ecx]
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
adc al, 0xe9
mov bh, 0x66
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x1e7a2c74
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x1e7a2c4f
and eax, 0xffff
push eax
jmp 0x1e7a2c53
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1e7a2603
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x1e7a2e2d
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x1e7a2c34
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x1e7a2bd5
call fcn.1e7a263e
dec ebx
cmp byte gs:[esi + 0xa0878b], dh
add byte [eax], al
cmp eax, ebx
je 0x1e7a2cf2
add eax, esi
cmp dword [eax], ebx
je 0x1e7a2cf2
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1e7a2ced
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1e7a2cd7
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1e7a2cdf
cmp edx, ebx
jne 0x1e7a2e2d
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1e7a2cae
add eax, dword [eax + 4]
jmp 0x1e7a2c9b
mov dword [ebp + 0xc], ebx
jmp 0x1e7a2cfd
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1e7a2d15
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1e7a2d33
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1e7a2d91
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1e7a2d78
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1e7a2d81
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1e7a2d8b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1e7a2d6d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1e7a2cf7
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x1e7a3190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.1e7a263e
mov cl, 0x35
aam 0x72
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
xchg esp, eax
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.1e7a264e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a2603
add esp, 0xc
mov dword [ebp - 0x67c], eax
invalid
Function at 0x1e7a47e0
Capabilities:
Access peb ldr_data

Disassembly:
add ebp, 0x24
push esp
call fcn.1e7a263e
mov bh, 0xa9
pop edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x1e7a4802
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1e7a263e
jecxz 0x1e7a47f0
add ebp, dword [edx + 0x478bf88b]
cmp al, 0x8b
push esp
pop es
js 0x1e7a481c
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.1e7a263e
stosd dword es:[edi], eax
fst qword [edi + 0x348b49f5]
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
invalid
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1e7a482b
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1e7a482b
call fcn.1e7a263e
jg 0x1e7a4825
fucomi st(0)
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1e7a263e
xchg ecx, ecx
test al, 0x53
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.1e7a2e3e
mov dword [ecx], 1
mov dword [eax + 0xc], edx
mov dword [eax], sym.pywintypes27.dll_const_PyHKEY::vftable
mov eax, ecx
add esp, 8
ret

Function at 0x1e7a7500
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 4], 0x1e7ba2c0
je 0x1e7a751c
mov eax, dword [sym.imp.python27.dll__Py_NotImplementedStruct]
inc dword [eax]
mov eax, dword [sym.imp.python27.dll__Py_NotImplementedStruct]
ret 8
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [esp + 8]
cmp ecx, 2
jne 0x1e7a7541
test eax, eax
je 0x1e7a754a
mov eax, dword [sym.imp.python27.dll__Py_TrueStruct]
inc dword [eax]
ret 8
cmp ecx, 3
jne 0x1e7a7554
test eax, eax
je 0x1e7a7537
mov eax, dword [sym.imp.python27.dll__Py_ZeroStruct]
inc dword [eax]
ret 8
mov eax, dword [sym.imp.python27.dll__Py_NotImplementedStruct]
inc dword [eax]
ret 8

Function at 0x1e7a9c90
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], 0
push ebx
mov ebx, dword [sym.imp.python27.dll_Py_FatalError]
push esi
push edi
mov edi, dword [sym.imp.python27.dll_PyThreadState_Swap]
jne 0x1e7a9ccd
push 0
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x1e7a9cbf
push str.pywintypes:_can_not_setup_interpreter_state__as_current_state_is_invalid
call ebx
add esp, 4
mov eax, dword [esi + 4]
push esi
mov dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], eax
call edi
add esp, 4
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1e7a9ce7
push 0x1e7b10fc
call ebx
add esp, 4
mov ecx, dword [0x1e7ba8b8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call edi
push eax
mov dword [esi], eax
call edi
add esp, 8
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
ret
Function at 0x401f8b
Capabilities:
Parse pe header

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

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100062fa
pop dword [ebp - 0x40]
mov eax, 0x100062fa
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3cb80
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x56c9
mov esi, eax
mov edx, 0x39957848
sub edx, 0x2993f248
add edx, dword [ebp - 0x40]
mov ebx, 0x53390f58
sub dword [ebp - 0x20], 0xa999b502
mov edi, dword [edx]
xor dword [ebp - 0x28], 0x5adc8b0
sub edi, ebx
mov dword [esi], edi
sub dword [ebp - 0x30], ecx
add esi, 0x653debb5
sub esi, 0x653debb1
add edx, 0xe3f8d767
sub edx, 0xe3f8d763
loop 0x10006343
add eax, 0xf52911d4
sub eax, 0xf527c3dd
mov ebx, eax
add eax, 0xa5eae595
add eax, 0x5a151a70
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x75d940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x253000]
push edi
or ebp, 0xffffffff
jmp 0x75d962
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x75d969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75d958
mov eax, 1
add ebx, ebx
jne 0x75d97b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x75d98c
jne 0x75d9ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75d9ab
dec eax
add ebx, ebx
jne 0x75d998
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x75d970
add ebx, ebx
jne 0x75d9a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x75d9fd
xor ecx, ecx
sub eax, 3
jb 0x75d9c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x75da32
sar eax, 1
mov ebp, eax
jmp 0x75d9ce
add ebx, ebx
jne 0x75d9ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75d99c
inc ecx
add ebx, ebx
jne 0x75d9dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x75d99c
add ebx, ebx
jne 0x75d9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x75d9de
jne 0x75d9fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x75d9de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x75da1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x75da0e
jmp 0x75d95e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x75da1c
add edi, ecx
jmp 0x75d95e
pop esi
mov edi, esi
mov ecx, 0x6a19
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x75da3a
cmp byte [edi], 0x22
jne 0x75da3a
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 0x75da3f
lea edi, [esi + 0x35a000]
mov eax, dword [edi]
or eax, eax
je 0x75dab7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x360fdc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x361100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x75da6c
mov ecx, edi
jns 0x75da9b
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 + 0x361108]
or eax, eax
je 0x75dab1
mov dword [ebx], eax
add ebx, 4
jmp 0x75da89
call dword [esi + 0x361104]
mov ebp, dword [esi + 0x36110c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x75daeb
sub esp, 0xffffff80
jmp 0x4e05e8
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10007c2e
pop dword [ebp - 0x18]
mov eax, 0x12f6a86a
add eax, 0xfd09d3c4
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xbe5ff01a
sub dword [ebp - 0x28], 0x700daacf
mov dword [ebp - 0x24], 0x1233f2fc
sub dword [ebp - 0x24], 0xe000a6b7
mov dword [ebp - 0x20], 0x6906e151
sub dword [ebp - 0x20], 0x1cba9d23
mov dword [ebp - 0x1c], 0x97ba134b
sub dword [ebp - 0x1c], 0x97ba134b
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x77519cce
sub dword [ebp - 0x28], 0x2df3378
mov dword [ebp - 0x24], 0x248ae808
sub dword [ebp - 0x24], 0xe31e8693
mov dword [ebp - 0x20], 0x989579d6
sub dword [ebp - 0x20], 0x35260d6a
mov dword [ebp - 0x1c], 0xe57deb34
sub dword [ebp - 0x1c], 0xe57deb34
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3b1c2
push 0
call eax
mov ecx, 0x4bda9932
sub ecx, 0x4bda3f6d
mov edi, eax
mov esi, 0xe850c3f6
add esi, 0x27b0360a
add esi, dword [ebp - 0x18]
mov ebx, 0xf091ccdb
add ebx, 0x39a42c80
xor dword [ebp - 0x10], 0x8bfe7a50
mov edx, dword [esi]
add dword [ebp - 8], 0x6df952ef
xor edx, ebx
add dword [ebp - 4], 0x965d79d6
mov dword [edi], edx
add dword [ebp - 0x14], edi
add edi, 0x43e37060
add edi, 0xbc1c8fa4
add esi, 0x600cfe93
sub esi, 0x600cfe8f
loop 0x10007d46
add eax, 0xb3198622
add eax, 0x4ce7d3c5
mov ebx, eax
add eax, 0x8273629c
add eax, 0x7d8c9d69
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401340
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x401354
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esi + 0x74]
call fcn.004051c0
mov ecx, esi
pop esi
jmp fcn.00413af7

Function at 0x403400
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x2c8
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x2c4], eax
push ebx
push esi
push str.Trickster_Config
push 0
mov ebx, ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call fcn.0040eba4
mov esi, eax
test esi, esi
je 0x403469
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403448
push 9
mov ecx, esi
call fcn.0040b92c
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
pop ebx
mov ecx, dword [esp + 0x2c4]
xor ecx, esp
call fcn.00427398
add esp, 0x2c8
ret
lea edx, [esp + 0x1c8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea eax, [esp + 0xc8]
push 0
push eax
call fcn.004273b0
mov ecx, 0x22
lea eax, [esp + 0x14]
mov word [esp + 0xd0], cx
push eax
lea ecx, [esp + 0x1d8]
mov edx, 0x5c
push ecx
mov word [esp + 0x1c], dx
call fcn.0042912d
add esp, 0x14
test eax, eax
je 0x40352d
push edi
lea edx, [esp + 0x64]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4034c7
lea edi, [esp + 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4034d6
mov dx, word [0x448de8]
lea eax, [esp + 0x64]
mov word [edi], dx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034f0
lea edi, [esp + 0xc8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403501
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0xc]
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.0042912d
add esp, 8
test eax, eax
jne 0x4034c1
pop edi
lea eax, [esp + 0xc4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403535
mov ecx, dword [str.Setting_]
mov edx, dword [0x448de0]
mov dword [eax], ecx
mov cx, word [0x448de4]
mov dword [eax + 4], edx
mov dl, byte [0x448de6]
mov word [eax + 8], cx
push 0x44
mov byte [eax + 0xa], dl
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004273b0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0xe4]
push eax
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4035bf
push eax
push eax
push str.________________.________________.
mov ecx, ebx
call fcn.0040da73
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x2cc]
pop esi
pop ebx
xor ecx, esp
call fcn.00427398
add esp, 0x2c8
ret
Function at 0x4035f0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1d84]
test eax, eax
je 0x403604
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, esi
pop esi
jmp fcn.00413af7

Function at 0x404c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov dword [esp + 8], 0
je 0x404c58
call fcn.00404a10
call fcn.0040b67e
mov ecx, dword [esp + 0x14]
movzx edx, word [esp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x404ca9
call fcn.0040b67e
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov eax, dword [eax + 0x20]
push 9
push 0x10
push str.CPicture_Error
push str.FindResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
push ebx
call fcn.0040b67e
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x404cf2
call fcn.0040b67e
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov eax, dword [eax + 0x20]
push 9
push 0x10
push str.CPicture_Error
push str.LoadResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x404d2f
call fcn.0040b67e
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov eax, dword [eax + 0x20]
push 9
push 0x10
push str.CPicture_Error
push str.LockResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
call fcn.0040b67e
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push ebx
mov ecx, esi
call fcn.00404a40
test eax, eax
je 0x404d56
mov dword [esp + 0xc], 1
mov eax, dword [esi + 4]
mov dword [esi + 0xc], edi
test eax, eax
je 0x404da8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
lea edi, [esi + 8]
push edi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esi, 0x10
push esi
push eax
call edx
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x60
push eax
call ebx
mov ecx, dword [esi]
push 0x9ec
push 0x60
push ecx
mov dword [edi], eax
call ebx
pop ebx
mov dword [esi], eax
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
pop ebx
pop edi
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x406070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406089
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4060c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4060c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4060c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4060b0
cmp esi, eax
jb 0x4060ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406520
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
push esi
push 0
push eax
push edx
call fcn.004064c0
mov esi, eax
test esi, esi
jne 0x40653f
lea eax, [esi + 2]
pop esi
ret 0x10
mov ecx, dword [esp + 0xc]
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
push esi
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
lea eax, [eax + eax + 2]
ret 0x10

Function at 0x406580
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 1
push ebx
push ebp
mov esi, ecx
call fcn.004064c0
mov edi, eax
test edi, edi
jne 0x4065cb
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push eax
push ebp
mov ecx, esi
call fcn.00406470
test eax, eax
je 0x4065cf
push str._ERROR__Cant_CreateKeyValue_n
call fcn.00402310
add esp, 4
lea eax, [edi + 2]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov ebx, dword [esp + 0x18]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065d4
mov ecx, dword [esp + 0x1c]
sub eax, edx
push eax
push ebx
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
test eax, eax
je 0x406606
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret 0x14
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret 0x14

Function at 0x406680
Capabilities:
Delete file

Disassembly:
add ecx, 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret