joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472020
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x472080
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x472080
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x472080
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x472080
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x472090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x474208
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49792c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0048a578
mov dword [esi], method.CTreeCtrl.virtual_0
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0x6c1d44
call fcn.00476d30
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00476d30
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.00476d30
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.00476d30
mov dword [edi], 0x6c1d3c
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.004879af
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x6c1e0c
mov eax, dword [0x6e2390]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.00476d30
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.004879af
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CTreeCtrl.virtual_0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4742f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4979b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.004879d8
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x6c1d38
call fcn.00476f30
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.00488fc9
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.0048fc67
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.004879d8
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x6c1d38
call fcn.00476f30
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x6c1d38
call fcn.00476f30
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x6c1d38
call fcn.00476f30
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x6c1d38
call fcn.00476f30
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0048761b
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x474ef0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x474f93
test eax, eax
jbe 0x474f93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x474f93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x474f3e
xor esi, esi
jmp 0x474f44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x474f6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004093f0
add esi, eax
push esi
mov ebx, esi
call fcn.004093f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x474f50
pop ebp
test edi, edi
pop edi
jne 0x474f93
test ebx, ebx
je 0x474f93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00479b10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4750b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4751cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4751cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048a9ca
mov esi, eax
test esi, esi
je 0x4751cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4751cd
mov ecx, esi
call fcn.00475040
cmp edi, eax
jge 0x4751cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475153
mov dword [esp + 0x34], 1
jmp 0x4751ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4751cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00472db0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48b36d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48b3a5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489424
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004893fc
jmp 0x48b3b1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48ca5e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48caa0
call fcn.0049269d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48caa0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ca97
xor eax, eax
jmp 0x48caa8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048caae
pop edi
pop esi
pop ebx
ret 4

Function at 0x492bcd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492bfb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492c19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492b33
jmp 0x492c19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492c19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492b33
test edi, edi
mov eax, edi
jne 0x492c03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4331b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x4331d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4331d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4331c8
mov eax, 1
add ebx, ebx
jne 0x4331eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4331e0
jne 0x4331fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4331e0
xor ecx, ecx
sub eax, 3
jb 0x433210
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x433282
mov ebp, eax
add ebx, ebx
jne 0x43321b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x433228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43324c
inc ecx
add ebx, ebx
jne 0x433238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43322d
jne 0x433249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43322d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43326c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43325d
jmp 0x4331ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43326c
add edi, ecx
jmp 0x4331ce
pop esi
mov edi, esi
mov ecx, 0x240
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43328a
cmp byte [edi], 1
jne 0x43328a
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 eax, ebx
loop 0x43328f
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x433307
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38c58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38d0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4332bc
mov ecx, edi
jns 0x4332eb
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 + 0x38d10]
or eax, eax
je 0x433301
mov dword [ebx], eax
add ebx, 4
jmp 0x4332d9
call dword [esi + 0x38d14]
popal
jmp 0x403161
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x104ec058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104ec1a8
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 0x104ec07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104ec06a
add dl, dl
jne 0x104ec089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104ec0dc
xor eax, eax
add dl, dl
jne 0x104ec096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104ec17d
add dl, dl
jne 0x104ec0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104ec0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104ec0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104ec0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104ec0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104ec075
mov eax, 1
add dl, dl
jne 0x104ec0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104ec0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104ec0e1
sub eax, ebx
mov ebx, 1
jne 0x104ec128
mov ecx, 1
add dl, dl
jne 0x104ec10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104ec119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104ec105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104ec075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104ec13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104ec14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104ec136
cmp eax, 0x7d00
jae 0x104ec16d
cmp eax, 0x500
jb 0x104ec168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104ec075
cmp eax, 0x7f
ja 0x104ec170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104ec075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104ec19e
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 0x104ec075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x4a1e038d
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x4a0c285a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10531058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105311a8
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 0x1053107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053106a
add dl, dl
jne 0x10531089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105310dc
xor eax, eax
add dl, dl
jne 0x10531096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053117d
add dl, dl
jne 0x105310a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105310b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105310bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105310c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105310d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10531075
mov eax, 1
add dl, dl
jne 0x105310ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105310f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105310e1
sub eax, ebx
mov ebx, 1
jne 0x10531128
mov ecx, 1
add dl, dl
jne 0x1053110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10531119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10531105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10531075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1053113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1053114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10531136
cmp eax, 0x7d00
jae 0x1053116d
cmp eax, 0x500
jb 0x10531168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10531075
cmp eax, 0x7f
ja 0x10531170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10531075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1053119e
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 0x10531075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4c6330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
jmp 0x4c634a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6340
mov eax, 1
add ebx, ebx
jne 0x4c6363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6374
jne 0x4c6393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6393
dec eax
add ebx, ebx
jne 0x4c6380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6358
add ebx, ebx
jne 0x4c638f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c63e5
xor ecx, ecx
sub eax, 3
jb 0x4c63ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c641a
sar eax, 1
mov ebp, eax
jmp 0x4c63b6
add ebx, ebx
jne 0x4c63b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6384
inc ecx
add ebx, ebx
jne 0x4c63c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6384
add ebx, ebx
jne 0x4c63d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c63c6
jne 0x4c63e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c63c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c63f6
jmp 0x4c6346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6404
add edi, ecx
jmp 0x4c6346
pop esi
mov edi, esi
mov ecx, 0x3726
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6422
cmp byte [edi], 0x22
jne 0x4c6422
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 0x4c6427
lea edi, [esi + 0xc2000]
mov eax, dword [edi]
or eax, eax
je 0x4c649f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdcf10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdd064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6454
mov ecx, edi
jns 0x4c6483
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 + 0xdd068]
or eax, eax
je 0x4c6499
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6471
call dword [esi + 0xdd078]
mov ebp, dword [esi + 0xdd06c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4c64d3
sub esp, 0xffffff80
jmp 0x416781
Function at 0x40b7a0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x410600
call fcn.0040bfd8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x411710
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40b5c8
cmp eax, esi
jne 0x40b5bb
xor esi, esi
inc esi
mov edi, esi
jmp 0x40b5cb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b59f
xor esi, esi
inc esi
cmp dword [0x411714], esi
jne 0x40b5dd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40b617
cmp dword [0x411714], ebx
jne 0x40b611
mov dword [0x411714], esi
push 0x4033dc
push 0x4033d0
call fcn.0040b6fc
pop ecx
pop ecx
test eax, eax
je 0x40b617
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40b6ec
mov dword [0x4113b8], esi
cmp dword [0x411714], esi
jne 0x40b63a
push 0x4033cc
push 0x4033b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x411714], 2
test edi, edi
jne 0x40b647
xor eax, eax
mov ecx, 0x411710
xchg dword [ecx], eax
cmp dword [0x411720], 0
je 0x40b673
push 0x411720
call fcn.0040be30
pop ecx
test eax, eax
je 0x40b673
push ebx
push 2
push ebx
mov esi, dword [0x411720]
mov ecx, esi
call dword [0x412228]
call esi
push dword [0x4113c4]
push dword [0x4113c0]
push dword [0x4113bc]
call fcn.004098c0
add esp, 0xc
mov dword [0x4113b4], eax
cmp dword [0x4113cc], 0
jne 0x40b6d1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4113b8], 0
jne 0x40b6e5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4113b4]
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.0040bf25
jmp 0x40b583

Function at 0x40bd14
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x410640
call fcn.0040bfd8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bd74
cmp eax, 0xffffffff
je 0x40bd74
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40bd6d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40bd6d
cmp edx, 0x10000000
jae 0x40bd6d
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 0x40bd6a
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 0x40bde0
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 0x40be1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40be16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40be20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40be06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40bef0
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 0x40bf21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bf21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40bf21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c0d3
Capabilities:
Enumerate processes

Disassembly:
push 0x240
push 0x410998
call fcn.0040d128
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x24c], esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 4], esi
cmp edi, 0xffffffff
je 0x40c15c
push 0x22c
push esi
lea eax, [ebp - 0x248]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40c14a
cmp dword [ebp - 0x240], ebx
je 0x40c150
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c134
jmp 0x40c15c
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x24c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c186
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e659
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x40e708
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x411724]
push edi
mov edi, edx
test edi, edi
je 0x40e757
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40e756
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x40e74a
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40e756
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x40f06f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x411398]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x411960]
jne 0x40f10b
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x406e00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f10a
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x406eb8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40f10a
push 3
push dword [edi*8 + 0x401790]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40f0fc
inc edi
cmp edi, 0x1c
jb 0x40f0da
jmp 0x40f10a
mov ax, word [edi*8 + 0x401794]
mov word [0x411960], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x411960]
xor ecx, ebp
call fcn.0040b7e0
leave
ret