joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp dword [0x72e020], esi
je 0x40831d
mov dword [esp + 0x10], 0x72e020
mov ebp, 0x72e028
mov dword [esp + 0x14], 0x72e024
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
cmp edi, dword [esp + 0x1c]
jl 0x4082b0
push edi
push ebx
call fcn.004276c5
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], edi
cmp edi, esi
jle 0x4082d4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
sub edx, esi
push edx
lea eax, [esi + ebx]
push 1
push eax
call fcn.004276a8
add esi, eax
add esp, 0x10
cmp esi, edi
jl 0x4082fd
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push esi
push ebx
call edx
add esp, 8
test eax, eax
je 0x4082fd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp]
push esi
push ebx
push eax
push ecx
call edx
add esp, 0x10
test eax, eax
jne 0x408330
inc dword [esp + 0x18]
mov eax, 0x18
add dword [esp + 0x10], eax
add dword [esp + 0x14], eax
add ebp, eax
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x408294
push ebx
call fcn.0042737a
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebx
call fcn.0042737a
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
lea eax, [eax + eax*2]
pop ebp
lea eax, [eax*8 + 0x72e020]
pop ebx
add esp, 0x10
ret

Function at 0x408350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x72eb0c]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, ecx
push 1
push esi
push edi
call fcn.0042796a
add esp, 0xc
test eax, eax
je 0x4083a8
test esi, esi
jbe 0x4083a8
jmp 0x408380
mov eax, 0x400
cmp esi, 0x400
ja 0x40838f
mov eax, esi
push edi
push eax
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004276a8
add esp, 0x10
test eax, eax
je 0x4083c3
sub esi, eax
jne 0x408380
mov eax, 1
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004279ef
add esp, 0x404
ret
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004279ef
add esp, 0x404
ret
Function at 0x4083e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x72eb0c]
xor eax, esp
mov dword [esp + 8], eax
push edi
mov edi, ecx
push edi
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004276a8
add esp, 0x10
cmp eax, 8
jb 0x408484
mov edi, edi
mov ecx, dword [esp + 4]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx]
movzx ecx, byte [esp + 0xb]
je 0x4084ac
movzx eax, byte [esp + 0xa]
movzx edx, byte [esp + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 8]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esi], ecx
call fcn.00408350
test eax, eax
je 0x40849a
mov ecx, dword [esi]
push ecx
lea edx, [esp + 8]
push edx
push str.Skipping_chunk_of_type___s___length__d_n
mov byte [esp + 0x14], 0
call fcn.00427b1a
add eax, 0x40
push eax
call fcn.004279fe
push edi
push 8
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.004276a8
add esp, 0x20
cmp eax, 8
jae 0x408410
push str.Warning:_Unexpected_EOF_in_reading_WAV_header_n
call fcn.00427b1a
add eax, 0x40
push eax
call fcn.004279fe
add esp, 8
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004279ef
mov esp, ebp
pop ebp
ret
movzx edx, byte [esp + 0xa]
movzx eax, byte [esp + 9]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 8]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004279ef
mov esp, ebp
pop ebp
ret

Function at 0x4084f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x72eb0c]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
xor esi, esi
lea esp, [esp]
push edi
push 8
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004276a8
add esp, 0x10
cmp eax, 8
jae 0x40853f
test esi, esi
jne 0x408591
push 0
push 0xc
push edi
mov esi, 1
call fcn.0042796a
add esp, 0xc
jmp 0x408510
movzx eax, byte [esp + 0x10]
movzx ecx, byte [esp + 0x11]
movzx edx, byte [esp + 0x12]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x13]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0xc]
shl eax, 8
or eax, ecx
mov dword [ebx], eax
cmp edx, dword [ebp]
je 0x4085bb
test al, 1
je 0x408574
inc eax
mov dword [ebx], eax
mov ecx, dword [ebx]
call fcn.00408350
test eax, eax
jne 0x408510
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004279ef
add esp, 0xc
ret
push str.Warning:_Unexpected_EOF_in_AIFF_chunk_n
call fcn.00427b1a
add eax, 0x40
push eax
call fcn.004279fe
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004279ef
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004279ef
add esp, 0xc
ret

Function at 0x40a300
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
push 1
push ecx
call fcn.00428ce2
mov edx, dword [esi + 0xc]
push edi
push edx
mov ebx, eax
mov eax, dword [esi + 8]
push 1
push eax
call fcn.00428ce2
add esp, 0x20
pop edi
pop esi
add eax, ebx
pop ebx
ret
Function at 0x40f8f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xb8
mov eax, dword [0x72eb0c]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 2
jne 0x40fa81
cmp dword [esp + 0x24], 4
jb 0x40fa81
push ebx
push ebp
push edi
xor ebp, ebp
push str.shell32.dll
xor ebx, ebx
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, ebp
je 0x40fa7e
push esi
push str.CommandLineToArgvW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
je 0x40fa67
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x40fa67
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebp
jle 0x40f9dd
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push eax
push ebp
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebp
je 0x40fa67
add ebx, eax
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x40f9b0
lea ecx, [ebx + eax*4]
push ecx
call fcn.00427f9b
mov ecx, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x1c], ecx
lea esi, [ecx + eax*4]
jle 0x40fa4b
mov eax, dword [esp + 0x10]
sub eax, ecx
mov edi, ecx
mov dword [esp + 0x24], eax
jmp 0x40fa14
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40fa63
mov dword [edi], esi
add esi, eax
sub ebx, eax
mov eax, dword [esp + 0x14]
inc ebp
add edi, 4
cmp ebp, eax
jl 0x40fa10
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx], 1
jmp 0x40fa67
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
je 0x40fa7e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004279ef
add esp, 0xb8
ret
Function at 0x4114b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x411546
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x4114fd
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x44a298]
inc edx
cmp edx, esi
jl 0x4114e1
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x411521
mov edi, dword [ecx + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x44a298]
inc edx
cmp edx, esi
jl 0x411507
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x41b720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x80
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x40
fld dword [eax + 0xb74]
fstp dword [esi + 0xc]
mov dword [esi], ecx
mov dword [esi + 0xa4], ebx
mov eax, dword [eax + 4]
cdq
push edi
sub eax, edx
sar eax, 1
push 4
push ebx
mov dword [esp + 0x24], ecx
mov dword [esi + 0xb0], eax
call fcn.004280f9
mov dword [esi + 0x24], eax
lea eax, [esi + 0x10]
push ebx
push eax
call fcn.0041a670
add esp, 0x10
xor edi, edi
mov dword [esp + 0xc], edi
fild dword [esp + 0xc]
fdiv qword [0x450368]
fmul qword [0x450338]
call fcn.0042cf00
fstp dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
fld dword [esp + 0x18]
fstp dword [ecx + edi*4]
mov edx, dword [esi + 0x24]
fld dword [edx + edi*4]
lea eax, [edx + edi*4]
fmul st(0), st(0)
inc edi
cmp edi, ebx
mov dword [esp + 0xc], edi
fstp dword [eax]
jl 0x41b788
mov eax, 4
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], eax
mov eax, 6
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov eax, 8
mov dword [esi + 0x28], 2
mov dword [esi + 0x3c], 5
mov dword [esi + 0x58], 9
mov dword [esi + 0x5c], eax
mov dword [esi + 0x68], 0xd
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], 0x11
mov dword [esi + 0x7c], eax
mov dword [esi + 0x88], 0x16
mov dword [esi + 0x8c], eax
lea edi, [esi + 0x34]
mov dword [esp + 0x18], 7
mov eax, dword [edi - 8]
mov dword [esp + 0x10], eax
add eax, eax
add eax, eax
push eax
call fcn.00427f9b
xor ebx, ebx
add esp, 4
cmp dword [esp + 0x10], ebx
mov dword [edi - 4], eax
mov dword [esp + 0xc], ebx
jle 0x41b88b
fild dword [esp + 0x10]
mov dword [esp + 0x14], eax
fstp qword [esp + 0x20]
fild dword [esp + 0xc]
fadd qword [0x446418]
fdiv qword [esp + 0x20]
fmul qword [0x450338]
call fcn.0042cf00
mov ecx, dword [esp + 0x14]
fstp dword [ecx + ebx*4]
mov eax, dword [edi - 4]
fld dword [eax + ebx*4]
inc ebx
cmp ebx, dword [esp + 0x10]
fadd dword [edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
fstp dword [edi]
jl 0x41b852
fld dword [edi]
add edi, 0x10
sub dword [esp + 0x18], 1
fld1
fdivrp st(1)
fstp dword [edi - 0x10]
jne 0x41b823
mov eax, dword [esp + 0x1c]
lea edx, [eax*8]
sub edx, eax
push 0x90
push edx
call fcn.004280f9
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xa4]
push 4
push eax
call fcn.004280f9
add esp, 0x10
pop edi
mov dword [esi + 0xa0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4279ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x72eb0c]
jne 0x4279f9
repz ret
jmp fcn.0042f128

Function at 0x4369e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x436a11
call fcn.0042a22f
mov dword [eax], esi
call fcn.0042a21c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042ef7a
add esp, 0x14
push 0x16
pop eax
jmp 0x436a66
test dword [ebp + 0xc], 0xfffffff9
jne 0x4369ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a242
pop ecx
call fcn.0042a21c
mov eax, dword [eax]
jmp 0x436a66
test al, 0x10
jne 0x436a64
test al, 1
je 0x436a64
test byte [ebp + 0xc], 2
je 0x436a64
call fcn.0042a22f
mov dword [eax], 5
call fcn.0042a21c
mov dword [eax], 0xd
jmp 0x436a35
xor eax, eax
pop esi
pop ebp
ret

Function at 0x43ebe4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00431d06
and dword [ebp - 4], 0
cmp dword [0x731044], 0
mov ebx, eax
jne 0x43ec95
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43ed46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43ed46
push eax
call fcn.00431c94
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x731044], eax
call esi
push eax
call fcn.00431c94
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x731048], eax
call esi
push eax
call fcn.00431c94
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x73104c], eax
call esi
push eax
call fcn.00431c94
pop ecx
mov dword [0x731054], eax
test eax, eax
je 0x43ec95
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431c94
pop ecx
mov dword [0x731050], eax
mov eax, dword [0x731050]
cmp eax, ebx
je 0x43eced
cmp dword [0x731054], ebx
je 0x43eced
push eax
call fcn.00431d0f
push dword [0x731054]
mov esi, eax
call fcn.00431d0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43eced
test edi, edi
je 0x43eced
call esi
test eax, eax
je 0x43ece4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ece4
test byte [ebp - 0xc], 1
jne 0x43eced
or dword [ebp + 0x10], 0x200000
jmp 0x43ed26
mov eax, dword [0x731048]
cmp eax, ebx
je 0x43ed26
push eax
call fcn.00431d0f
pop ecx
test eax, eax
je 0x43ed26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43ed26
mov eax, dword [0x73104c]
cmp eax, ebx
je 0x43ed26
push eax
call fcn.00431d0f
pop ecx
test eax, eax
je 0x43ed26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x731044]
call fcn.00431d0f
pop ecx
test eax, eax
je 0x43ed46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ed48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x7ac9a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ac9ae
pushal
call 0x7ac9b4
pop ebp
sub ebp, 0x10
sub ebp, 0x3ac9a4
jmp 0x7ac9ca
mov eax, 0x3ac9a4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f3
mov edx, 0x9e836d27
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ac9e1
jmp 0x7ac9f4
lodsb al, byte [esi]
ljmp 0x2727
Function at 0x408560
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fb8
xor eax, eax
push ebp
push 0x408625
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4138a4]
call fcn.00403fc8
mov dword [ebp - 8], eax
push 0xa
mov eax, dword [ebp - 4]
call fcn.00403fc8
push eax
mov eax, dword [0x40a700]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40860f
push ebx
mov eax, dword [0x40a700]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
test edi, edi
je 0x40860f
push ebx
mov eax, dword [0x40a700]
push eax
call sub.KERNEL32.DLL_LoadResource
test eax, eax
je 0x40860f
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
test esi, esi
je 0x40860f
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40860f
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40862c
lea eax, [ebp - 4]
call fcn.00403b60
ret

Function at 0x408c40
Capabilities:
Copy file
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x408bd0
call fcn.004046e8
xor eax, eax
push ebp
push 0x408d81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x409108]
call fcn.00403fc8
push eax
push 0xffffffffffffffff
push 0
call fcn.004047bc
call sub.KERNEL32.DLL_GetLastError_1
cmp eax, 0xb7
jne 0x408c8a
push 0
call sub.KERNEL32.DLL_ExitProcess_1
push 0x4139b8
push 0
push 0
push 0x407d24
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
push 0x4139b8
push 0
push 0
push 0x408b20
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
push 0xff
push 0x4138b4
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, 0x4138a4
mov edx, 0x4138b4
mov ecx, pe_nt_image_headers32
call fcn.00403db8
mov eax, 0x4138a4
mov edx, 0x408d98
call fcn.00403dd8
mov eax, 0x408dac
call fcn.00408560
mov eax, 0x4139b4
mov edx, 0x4138b4
mov ecx, pe_nt_image_headers32
call fcn.00403db8
mov eax, 0x4139b4
mov edx, 0x408dbc
call fcn.00403dd8
push 0
mov eax, dword [0x4139b4]
call fcn.00403fc8
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040273c
mov eax, dword [ebp - 0x14]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CopyFileA
push 0x408dc8
push 0x408dd4
push 0x408dec
push 0x408df4
call sub.KERNEL32.DLL_WritePrivateProfileStringA
mov ecx, 0x408e04
mov edx, 0x408e10
mov eax, 0x408e1c
call fcn.004089b4
jmp 0x408d69

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx