joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x406970
cmp edi, esi
jb 0x4069d8
cmp edi, dword [esp + 0x1c]
ja 0x4069eb
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x406972
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x406960
jmp 0x4069cf
ja 0x406978
cmp eax, edx
mov esi, edi
jne 0x406933
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x4069b0
mov ebp, esi
sub ecx, edx
jns 0x4069c7
jmp 0x4069d1
cmp esi, edi
je 0x406a00
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x4069d1
xor al, 1
cmp ebp, edi
jne 0x406990
jmp 0x4069d1
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x43a3f0
call fcn.00437f50
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x43a3f0
call fcn.00437e90
add esp, 4
ud2
mov ecx, 0x43f0d0
mov edx, 0x2b
push 0x43a400
call fcn.00437f00
add esp, 4
ud2
Function at 0x419220
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x419235
test eax, eax
jne 0x419447
mov ebp, dword [0x446934]
test ebp, ebp
je 0x4193d0
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
jmp 0x419257
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x419278
push dword [ebp + 4]
call edi
test eax, eax
je 0x419250
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x419250
test bl, 1
je 0x4193d0
mov ebp, dword [0x446934]
test ebp, ebp
je 0x4193d0
xor ebx, ebx
jmp 0x4192a7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4192c8
push dword [ebp + 4]
call edi
test eax, eax
je 0x4192a0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x4192a0
test bl, 1
je 0x4193d0
mov ebp, dword [0x446934]
test ebp, ebp
je 0x4193d0
xor ebx, ebx
jmp 0x4192f7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x419318
push dword [ebp + 4]
call edi
test eax, eax
je 0x4192f0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x4192f0
test bl, 1
je 0x4193d0
mov ebp, dword [0x446934]
test ebp, ebp
je 0x4193d0
xor ebx, ebx
jmp 0x419347
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x419368
push dword [ebp + 4]
call edi
test eax, eax
je 0x419340
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x419340
test bl, 1
je 0x4193d0
mov ebp, dword [0x446934]
jmp 0x419378
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4193d0
push dword [ebp + 4]
call edi
test eax, eax
je 0x419375
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
jmp 0x419375
mov edx, dword [0x446990]
mov esi, dword fs:[0x2c]
lea ecx, [eax - 1]
mov edx, dword [esi + edx*4]
mov dword [edx + 0xc], ecx
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*8 - 4]
test ecx, ecx
je 0x4193e9
push dword [edx + eax*8 - 8]
call ecx
add esp, 4
mov eax, dword [0x446990]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4193a0
mov eax, dword [0x446990]
mov ecx, dword fs:[0x2c]
mov esi, dword [0x43fc50]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x41941e
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x41941e
and eax, 0x1fffffff
je 0x41941e
call fcn.0042856a
mov eax, dword [0x446990]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov al, byte [0x444a80]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x419b00
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x418
mov dword [esp + 4], ecx
lea eax, [esp + 0x18]
push 0x400
push 0
push eax
call fcn.0042c750
add esp, 0xc
mov eax, dword [0x43fe2c]
mov esi, 0x200
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0x14], 0
cmp esi, 0x201
jae 0x419b62
jmp 0x419ba0
cmp ebx, esi
mov esi, ebx
jb 0x419bf3
cmp esi, 0x201
jb 0x419ba0
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, ebp
sub ecx, ebp
cmp ecx, eax
jb 0x419b7d
mov ebx, dword [esp]
mov ebp, esi
mov edi, esi
mov dword [esp + 0x14], esi
jmp 0x419ba9
lea ecx, [esp + 0xc]
mov edx, ebp
push eax
call fcn.00438950
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp], eax
jmp 0x419b70
lea ebx, [esp + 0x18]
mov edi, 0x200
mov dword [esp + 8], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
jne 0x419bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419c0f
cmp ebx, esi
jne 0x419b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419b50
add esi, esi
cmp esi, 0x201
jb 0x419ba0
jmp 0x419b62
cmp ebx, edi
ja 0x419c52
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
lea ecx, [esi + 4]
push ebx
call fcn.0041a2d0
add esp, 4
xor eax, eax
jmp 0x419c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 4]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419c47
cmp dword [esp], 0
je 0x419c47
and eax, 0x7fffffff
je 0x419c47
mov ecx, dword [esp]
call fcn.0042856a
add esp, 0x418
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebx
mov edx, edi
push 0x43e4a8
call fcn.00437e90
add esp, 4
ud2
Function at 0x41ba10
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x430
mov esi, ecx
lea ecx, [esp + 0x30]
push dword [esp + 0x444]
call fcn.0041bc40
add esp, 4
cmp dword [esp + 0x30], 1
jne 0x41ba48
lea eax, [esp + 0x34]
push eax
call fcn.0041a280
add esp, 4
jmp 0x41bb57
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x10], eax
je 0x41bb57
mov eax, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
push 0x400
push 0
lea eax, [esp + 0x38]
push eax
call fcn.0042c750
add esp, 0xc
mov eax, dword [0x43fe2c]
mov edi, 0x200
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp], eax
mov dword [esp + 0x1c], 0
cmp edi, 0x201
jae 0x41bac2
jmp 0x41bb00
cmp ebp, edi
mov edi, ebp
jb 0x41bb68
cmp edi, 0x201
jb 0x41bb00
mov ecx, dword [esp + 0x18]
mov eax, edi
sub eax, esi
sub ecx, esi
cmp ecx, eax
jb 0x41badd
mov ebp, dword [esp]
mov esi, edi
mov ebx, edi
mov dword [esp + 0x1c], edi
jmp 0x41bb09
lea ecx, [esp + 0x14]
mov edx, esi
push eax
call fcn.00438950
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp], eax
jmp 0x41bad0
lea ebp, [esp + 0x30]
mov ebx, 0x200
mov dword [esp + 0xc], ebp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x41bb31
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bb8d
cmp ebp, edi
jne 0x41bab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41bab0
add edi, edi
cmp edi, 0x201
jb 0x41bb00
jmp 0x41bac2
mov dword [esi], 0
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebp, ebx
ja 0x41bc1e
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push ebp
call fcn.0041a2d0
add esp, 4
mov dword [esp + 0x20], 0
xor ebx, ebx
jmp 0x41bba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
test eax, eax
je 0x41bbce
cmp dword [esp], 0
je 0x41bbce
and eax, 0x7fffffff
je 0x41bbce
mov ecx, dword [esp]
call fcn.0042856a
test bl, bl
je 0x41bbf3
lea eax, [esp + 0x24]
mov dword [esi], 0
push eax
call fcn.0041a280
add esp, 4
test edi, 0x7fffffff
je 0x41bb5d
jmp 0x41bc10
mov eax, dword [esp + 0x2c]
movsd xmm0, qword [esp + 0x24]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
test edi, 0x7fffffff
je 0x41bb5d
mov ecx, dword [esp + 0x10]
call fcn.0042856a
jmp 0x41bb5d
mov ecx, ebp
mov edx, ebx
push 0x43e4a8
call fcn.00437e90
add esp, 4
ud2
Function at 0x41fc30
Capabilities:
Create directory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, edx
mov edx, ecx
mov ecx, esp
push eax
call fcn.0041e9a0
add esp, 4
cmp dword [esp], 1
jne 0x41fc5f
mov esi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov edi, esi
shld esi, ebx, 0x18
shr edi, 8
jmp 0x41fcaa
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41fc87
mov bl, 4
test esi, 0x7fffffff
je 0x41fc85
mov ecx, ebp
call fcn.0042856a
jmp 0x41fcaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
mov esi, eax
shr edi, 8
shl esi, 0x18
test ecx, 0x7fffffff
je 0x41fca8
mov ecx, ebp
call fcn.0042856a
xor ebx, ebx
shld edi, esi, 8
shl esi, 8
movzx eax, bl
or eax, esi
mov edx, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4233e8
Capabilities:
Create pipe
Resolve function by parsing pe exports
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4b0
mov esi, ecx
mov ecx, dword [edx + 4]
mov edi, dword [edx]
xorps xmm0, xmm0
call fcn.00423406
Function at 0x428414
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ecx + 0x28]
mov esi, ecx
mov cl, 4
test ebx, ebx
je 0x42848a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [esi + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
cmp dword [esp + 8], 0
je 0x4284ba
xor eax, eax
mov dword [esp], eax
push eax
lea eax, [esp + 4]
push eax
push ebx
push ebp
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42848c
mov ecx, dword [esp]
xor edx, edx
mov eax, 0x17
test ecx, ecx
je 0x42849e
mov edi, ebx
sub edi, ecx
jb 0x4284d0
mov dword [esi + 0x28], 0
je 0x4284a2
add ecx, ebp
push edi
push ecx
push ebp
call fcn.0042c8b0
add esp, 0xc
mov dword [esi + 0x28], edi
mov ebx, edi
jmp 0x428437
jmp 0x4284a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl eax, 0x18
xor ecx, ecx
shr edx, 8
jmp 0x4284a4
mov cl, 1
jmp 0x4284a4
mov cl, 4
shld edx, eax, 8
shl eax, 8
movzx ecx, cl
or ecx, eax
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x43f0d0
mov edx, 0x2b
push 0x43f0c0
call fcn.00437f00
jmp 0x4284dc
mov edx, ebx
push 0x43f030
call fcn.00437e90
add esp, 4
ud2
Function at 0x429cc3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
push 0x40
push 0x3000
push dword [esp + 0x18]
push 0
push edx
call sub.KERNEL32.dll_VirtualAllocEx
test eax, eax
je 0x429ce6
mov dword [esi + 4], eax
xor eax, eax
jmp 0x429d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
mov edi, eax
mov ebx, 0x19
call fcn.00428524
movsd xmm0, qword [str.Error_on_child_allocationCould_not_close_handle]
movsd xmm2, qword [0x43f470]
movsd xmm1, qword [0x43f478]
mov cl, byte [0x43f480]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
movsd qword [eax], xmm0
movsd qword [eax + 8], xmm2
movsd qword [eax + 0x10], xmm1
mov byte [eax + 0x18], cl
xor eax, eax
mov dword [esi + 0x18], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], edi
inc eax
mov dword [esi], eax
pop esi
pop edi
pop ebx
ret
Function at 0x408916
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x4085d8
add ecx, esi
call fcn.00408948
xor dword [ebx], edx
or esi, ecx
inc ebx
sub ecx, 0x79cc4872
push esi
pop ecx
cmp ebx, edi
jne fcn.00408916
or ecx, ecx
add ecx, 1
ret
Function at 0x406102
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d018]
jne 0x406113
test ecx, 0xffff0000
jne 0x406113
ret
jmp fcn.0040611d

Function at 0x406202
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
push edi
jne 0x406309
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x94
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40624c
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
push esi
push 0
jne 0x406253
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x4062fc
mov eax, dword [esi + 0x10]
mov dword [0x40dab0], eax
mov eax, dword [esi + 4]
mov dword [0x40dabc], eax
mov eax, dword [esi + 8]
mov dword [0x40dac0], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x40dab4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x40dab0], 2
je 0x406291
or byte [0x40dab5], 0x80
mov eax, dword [0x40dabc]
shl eax, 8
add eax, dword [0x40dac0]
push 0
mov dword [0x40dab8], eax
call fcn.004071b0
test eax, eax
pop ecx
je 0x40624c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f394], eax
call fcn.0040729d
mov dword [0x40da90], eax
call fcn.00406c9f
test eax, eax
jge 0x4062d8
call fcn.0040720c
jmp 0x40624c
call fcn.004070e9
test eax, eax
jl 0x406302
call fcn.00406e91
test eax, eax
jl 0x406302
call fcn.00406b8b
test eax, eax
jne 0x406302
inc dword [0x40da8c]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
call fcn.00406e67
jmp 0x4062ce
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x4062f9
cmp dword [0x40da8c], esi
jle 0x40624c
dec dword [0x40da8c]
cmp dword [0x40daec], esi
jne 0x40632f
call fcn.00406c87
cmp dword [ebp + 0x10], esi
jne 0x4062f9
call fcn.00406e67
call fcn.0040720c
jmp 0x4062f9
Function at 0x40729d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40dc00]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x4072e9
call esi
mov edi, eax
cmp edi, ebx
je 0x4072cf
mov dword [0x40dc00], 1
jmp 0x4072ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4072e4
push 2
pop eax
mov dword [0x40dc00], eax
jmp 0x4072e9
mov eax, dword [0x40dc00]
cmp eax, 1
jne 0x407366
cmp edi, ebx
jne 0x4072fa
call esi
mov edi, eax
cmp edi, ebx
je 0x40736f
cmp word [edi], bx
mov eax, edi
je 0x40730f
inc eax
inc eax
cmp word [eax], bx
jne 0x407301
inc eax
inc eax
cmp word [eax], bx
jne 0x407301
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x40735d
call fcn.00409018
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40735d
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x40735a
push dword [ebp - 4]
call fcn.004090f5
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4073be
cmp eax, 2
je 0x407373
cmp eax, ebx
je 0x407373
xor eax, eax
jmp 0x4073c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40736f
cmp byte [esi], bl
je 0x407390
inc eax
cmp byte [eax], bl
jne 0x407386
inc eax
cmp byte [eax], bl
jne 0x407386
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.00409018
cmp eax, ebx
je 0x4073b7
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4073ca
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x40d040]
je 0x4073ec
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x4073da
cmp esi, 0x13
je 0x407528
mov eax, dword [0x40da98]
cmp eax, 1
push ebx
je 0x4074f7
test eax, eax
jne 0x407415
cmp dword [0x40da9c], 1
je 0x4074f7
cmp ecx, 0xfc
je 0x407527
push edi
push 6
pop ecx
mov esi, 0x401928
mov edi, 0x40dc08
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x40dc22
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x40dd26], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407463
push 5
pop ecx
mov esi, 0x401910
mov edi, 0x40dc22
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407468
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x40749b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40747c
sub eax, edx
push 3
lea eax, [eax + 0x40dbe7]
push 0x40190c
push eax
call fcn.00409ec0
add esp, 0xc
mov edx, 0x40dc08
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4074a3
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x40d044]
mov esi, 0x401908
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4074bf
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4074cb
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x4018e0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00409dba
add esp, 0xc
pop edi
jmp 0x407527
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x407527
mov edx, dword [esi*8 + 0x40d044]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x40750f
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x40756e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40759f
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x4075a6
cmp ebx, dword [ebp + 8]
jae 0x4075a6
xor eax, eax
jmp 0x407796
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4075b7
xor eax, eax
inc eax
jmp 0x407795
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4075cd
cmp ecx, edx
jae 0x407712
cmp dword [eax + 4], 0
je 0x4075d6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4075be
cmp dword [ebp + 8], 0
je 0x4075f8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407712
cmp eax, esi
jae 0x407712
mov eax, dword [0x40df20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40761d
cmp dword [esi*4 + 0x40df28], edi
je 0x407716
inc esi
cmp esi, eax
jl 0x40760b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407792
cmp dword [ebp - 8], 0x1000000
jne 0x407792
test byte [ebp - 0xc], 0xcc
je 0x40769b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407792
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407792
cmp word [eax + 0x18], 0x10b
jne 0x407792
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407792
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40769b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40769b
test byte [ecx + 0x27], 0x80
jne 0x407712
push 1
push 0x40df68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4075af
mov ecx, dword [0x40df20]
test ecx, ecx
mov edx, ecx
jle 0x4076cf
lea eax, [ecx*4 + 0x40df24]
cmp dword [eax], edi
je 0x4076cf
dec edx
sub eax, 4
test edx, edx
jg 0x4076c3
test edx, edx
jne 0x407700
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4076dc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4076f4
lea eax, [edx*4 + 0x40df28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4076e2
cmp ecx, 0x10
jge 0x407700
inc ecx
mov dword [0x40df20], ecx
push 0
push 0x40df68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4075af
xor eax, eax
jmp 0x407795
test esi, esi
jle 0x4075af
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40df68
call ebx
test eax, eax
jne 0x4075af
cmp dword [esi*4 + 0x40df28], edi
je 0x40776c
mov eax, dword [0x40df20]
lea esi, [eax - 1]
test esi, esi
jl 0x40775a
cmp dword [esi*4 + 0x40df28], edi
je 0x407756
dec esi
jns 0x40774a
test esi, esi
jge 0x40776a
cmp eax, 0x10
jge 0x407765
inc eax
mov dword [0x40df20], eax
lea esi, [eax - 1]
jmp 0x40776c
je 0x407784
xor ecx, ecx
test esi, esi
jl 0x407784
lea eax, [ecx*4 + 0x40df28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407772
push 0
push 0x40df68
call ebx
jmp 0x4075af
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409dba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40df88], ebx
push esi
push edi
jne 0x409e3c
push 0x401a30
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409e77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a24
push edi
call esi
test eax, eax
mov dword [0x40df88], eax
je 0x409e77
push 0x401a14
push edi
call esi
push 0x401a00
push edi
mov dword [0x40df8c], eax
call esi
cmp dword [0x40dab0], 2
mov dword [0x40df90], eax
jne 0x409e3c
push 0x4019e4
push edi
call esi
test eax, eax
mov dword [0x40df98], eax
je 0x409e3c
push 0x4019cc
push edi
call esi
mov dword [0x40df94], eax
mov eax, dword [0x40df94]
test eax, eax
je 0x409e81
call eax
test eax, eax
je 0x409e68
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40df98]
test eax, eax
je 0x409e68
test byte [ebp - 8], 1
jne 0x409e81
cmp dword [0x40dabc], 4
jb 0x409e7b
or byte [ebp + 0x12], 0x20
jmp 0x409ea0
xor eax, eax
jmp 0x409eb0
or byte [ebp + 0x12], 4
jmp 0x409ea0
mov eax, dword [0x40df8c]
test eax, eax
je 0x409ea0
call eax
mov ebx, eax
test ebx, ebx
je 0x409ea0
mov eax, dword [0x40df90]
test eax, eax
je 0x409ea0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40df88]
pop edi
pop esi
pop ebx
leave
ret