joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47e218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0043f220
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x480434]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x4804ac]
test eax, eax
je 0x43e749
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0043e330
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x480478]
push edi
lea ecx, [esp + 0x4c]
call fcn.00477722
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0044db30
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x480084]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x4804d4]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x480468]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00477794
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x43ec80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0043c880
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x43ecd9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00439ce0
dec dword [ebx - 0x748fdb94]
clc
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00439cd0
fsubr qword [edi + 0x548bffff]
and al, 0x74
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.0043e330
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4804d4]
push 0
lea ecx, [esp + 0x4c]
call fcn.00477722
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0044db30
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0043c2e0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x480088]
mov ecx, ebx
call fcn.00439c50
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x43eda4
push edi
mov ecx, esi
call fcn.0043c3f0
push eax
push ebp
mov ecx, esi
call fcn.0043c5b0
cmp eax, dword [esp + 0x40]
jg 0x43eda0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x43ed7e
mov eax, ebx
jmp 0x43edaa
cmp edi, ebx
jl 0x43eda8
mov eax, ebx
jmp 0x43edaa
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x43edbb
mov dword [esp + 0x30], eax
jmp 0x43edc6
cmp edi, ebx
jl 0x43edc1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00439c10
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x43ee0d
push edi
mov ecx, esi
call fcn.0043c310
push eax
push ebx
mov ecx, esi
call fcn.0043c6e0
cmp eax, dword [esp + 0x44]
jg 0x43ee05
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x43eddf
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x43ee17
cmp edi, ebp
jl 0x43ee11
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x43ee17
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x43ee20
mov ecx, eax
jmp 0x43ee29
cmp edi, ebp
jl 0x43ee26
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.0043c300
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00477794
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x43f590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47e305
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
and eax, 0
sub esp, 0xbc
push ebx
push ebp
push esi
mov ebp, ecx

Function at 0x4485a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47e6f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4485d9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4486ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4485ed
mov eax, 0xffffffc7
jmp 0x4486ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4485fe
cmp dword [esi + 8], eax
jne 0x4485ed
cmp dword [esi + 8], eax
jne 0x448617
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x448617
mov eax, 0xffffffc7
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44862b
push eax
mov ecx, ebx
call fcn.00447dd0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00416910
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44865c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00416930
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00447540
test eax, eax
mov dword [esp + 0x38], eax
je 0x44868f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b80a0
call fcn.00416b10
mov eax, dword [esp + 0x38]
jmp 0x4486ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00448400
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4486d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00448420
mov esi, eax
test esi, esi
jne 0x448703
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00448400
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4486a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b80a0
call fcn.00416b10
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b80a0
call fcn.00416b10
mov eax, esi
jmp 0x4486ee
Function at 0x45a320
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45a353
push esi
call fcn.0045d430
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45a34c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45a3d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a3c2
mov eax, dword [esi + 8]
test eax, eax
je 0x45a377
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45a3be
cmp eax, 2
je 0x45a3c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a36a
cmp eax, 3
je 0x45a39d
cmp eax, 1
jne 0x45a36a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45a36a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45a36a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a400
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a3e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a400
add esp, 4
pop esi
ret

Function at 0x461730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
les eax, [eax*4 - 0x7f7bf040]
add byte [eax], al
add byte [ebx + 0x9087], cl
add byte [ebx + 0x988f], cl
add byte [ebx], bh
sar dword [esi - 0x4e], 0x8b
dec edi
and byte [ebx + 0xd8af], cl
add byte [ebx], dh
ror byte [ecx + 0x3b2c246c], 0xc8
mov dword [esp + 0x68], eax
jle 0x461d02
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x54], eax
mov eax, 0xffffffbc
lea ebx, [esi + 0x48]
sub eax, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x8c], eax
Function at 0x46c170
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ed28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4804d4]
push 0
lea ecx, [esp + 0x20]
call 0x495702
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046bb10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x495630
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call 0x491ef4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call 0x491ef4
push 1
push 0
push 0
mov ecx, esi
call 0x491e9c
push 1
push 0
push 1
mov ecx, esi
call 0x491e9c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x495774
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46c2f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ed48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x495702
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046bb10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x495630
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4804d4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46c3b4
cmp dword [esp + 0x40], 1
jne 0x46c3b2
cmp ecx, eax
jge 0x46c3b4
mov eax, ecx
cmp eax, 0xc8
jge 0x46c3c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046c170
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4804d0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x495774
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46ecc7
Capabilities:
Terminate process

Disassembly:
mov dl, 0
add byte [eax], al
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00473411
call dword [0x480304]
mov dword [0x502d44], eax
call fcn.004732df
mov dword [0x5014f8], eax
call fcn.00473092
call fcn.00472fd9
call fcn.00472106
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [0x480190]
call fcn.00472f81
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x46ed1b
movzx eax, word [ebp - 0x2c]
jmp 0x46ed1e
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [0x4802f8]
push eax
call fcn.0047cb6e
mov dword [ebp - 0x60], eax
push eax
call fcn.00472133
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.00472e09
pop ecx
pop ecx
ret

Function at 0x479da5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [ebx + 0x988f], cl
add byte [ebx + 0x1a8b7], cl
add byte [eax - 0x77], cl
test byte [eax + ecx*4], ah
add byte [eax], al
add byte [ebx + 0x9087], cl
add byte [ebx], bh
ror dword [ecx + 0x9424b4], 0
add byte [edi + 0x4e], bh
mov edx, dword [edi + 0x1b0]
mov ebx, dword [edx + 0x14]
test ebx, ebx
jne 0x479d2a
cmp eax, ecx
jne 0x479d0c
mov ebp, dword [edi + 0x18c]
mov ebx, dword [edi + 0x9c]
mov ecx, dword [edi + 0x94]
xor eax, eax
test ebp, ebp
sete al
add eax, ebx
cmp ecx, eax
ja 0x479d2a
push edi
call dword [edx]
add esp, 4
test eax, eax
je 0x479d9a
mov eax, dword [edi + 0x90]
mov ecx, dword [edi + 0x98]
cmp eax, ecx
jle 0x479cdc
mov ecx, dword [edi + 0x20]
mov ebp, dword [edi + 0xd8]
xor eax, eax
mov dword [esp + 0x2c], ebp
cmp ecx, eax
mov dword [esp + 0x68], eax
jle 0x47a2e2
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x54], eax
mov eax, 0xffffffbc
lea ebx, [esi + 0x48]
sub eax, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x8c], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
add bl, al

Function at 0x479fb5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jl 0x479fdb
lea eax, [edx - 1]
jmp 0x479fdb
mov ebp, dword [esp + 0x2c]
mov word [esp + 0x9a], ax
Function at 0x47dd56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov cs, word [ebx + 0x3202474]
retf 0xd233
Function at 0x40108a
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42847c]
push ebx
push esi
xor ebx, ebx
push ebx
xor eax, ebp
push ebx
mov dword [ebp + 0x88], eax
mov eax, dword [ebp + 0x94]
push ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x4010cc
xor eax, eax
jmp 0x401188
push edi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x7c], bl
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esi + 0x4c], eax
je 0x401185
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
je 0x401158
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x401158
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x401158
xor eax, eax
inc eax
jmp 0x401187
mov eax, dword [esi + 0x3c]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40116b
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x401178
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x401185
push eax
call edi
mov dword [esi + 0x30], ebx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c29
add ebp, 0x8c
leave
ret 4
Function at 0x4011e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ecx + 0x40]
test ebx, ebx
mov dword [ebp - 8], ecx
je 0x4011fc
cmp word [ebx], 0x5a4d
je 0x401203
xor eax, eax
jmp 0x4012d5
push esi
push edi
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov dword [ecx + 0x48], edi
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
movzx eax, word [edi + 6]
push eax
push edx
push edi
mov dword [ebp - 4], eax
mov dword [ecx + 0x44], eax
call fcn.004011a1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov esi, eax
add esi, ebx
push dword [esi + 0x20]
push edi
call fcn.004011a1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [esi + 0x24]
add eax, ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.004011a1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [esi + 0x1c]
add eax, ebx
push edi
mov dword [ebp - 0x18], eax
call fcn.004011a1
and dword [ebp - 4], 0
add eax, ebx
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x1c], eax
jbe 0x4012d0
mov ecx, dword [ebp - 8]
push dword [ecx + 0x44]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push dword [eax + edx*4]
push edi
call fcn.004011a1
add eax, ebx
mov dword [ebp - 0x14], eax
je 0x4012a8
push eax
call sub.MSVCR71.dll_strlen
test eax, eax
pop ecx
je 0x4012a8
push dword [ebp + 8]
push dword [ebp - 0x14]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x4012b5
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x401270
jmp 0x4012d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ax, word [eax + ecx*2]
add ax, word [esi + 0x10]
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401451
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x64
mov ebx, 0x401362
push ebx
mov esi, ecx
call ebp
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x64
mov edi, 0x401370
push edi
call ebp
push 5
push dword [esi + 0x28]
mov eax, ebx
inc eax
inc eax
push eax
call sub.MSVCR71.dll_memcpy
push 5
push dword [esi + 0x2c]
mov eax, edi
inc eax
inc eax
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 8]
sub eax, ebx
sub eax, 7
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xc]
sub eax, edi
sub eax, 7
mov dword [esp + 0x30], eax
push 4
lea eax, [esp + 0x30]
push eax
add ebx, 8
push ebx
call sub.MSVCR71.dll_memcpy
push 4
lea eax, [esp + 0x40]
push eax
add edi, 8
push edi
call sub.MSVCR71.dll_memcpy
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40158d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4015ca
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4015ba
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
call edi
pop edi
pop esi
ret

Function at 0x401630
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.MoveFileA
push ebx
call edi
push str.MoveFileW
push ebx
mov dword [esi], eax
call edi
push str.MoveFileWithProgressA
push ebx
mov dword [esi + 4], eax
call edi
push str.MoveFileWithProgressW
push ebx
mov dword [esi + 8], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 4], 0
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ebx, 0xc8
push ebx
push dword [esi]
call edi
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [esi + 4]
call edi
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [esi + 8]
call edi
mov ecx, esi
call fcn.004013a6
call fcn.00401451
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x401758
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x401782
push edi
push edi
push esi
push 0x4016f0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
pop esi
ret