joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x41b024]
xor eax, esp
mov dword [esp + 0x290], eax
and dword [esp + 0x80], 0
mov eax, 0x6d006f
mov dword [esp + 0x6c], eax
mov edx, 0x6e0065
mov dword [esp + 0x2c], eax
mov ecx, 0x63002e
mov eax, 0x780079
mov dword [esp + 0x44], 0x740068
push esi
mov dword [esp + 0x5c], eax
mov esi, 0x67007a

Function at 0x401080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [esp + 0x1c], eax
mov eax, 0x6d0061
push 0x411de0
mov dword [esp + 0x50], 0x700074
mov dword [esp + 0x54], 0x2f003a
mov dword [esp + 0x58], 0x78002f
mov dword [esp + 0x5c], 0x2e0076
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], 0x25002f
mov dword [esp + 0x7c], 0x2e0064
add byte fs:[esi], ch
add bh, al
test byte [eax + eax*4], ah
add byte [eax], al
add byte [eax], ch
je 0x4010d5
mov dword [esp + 0x84], 0x6c006d
mov dword [esp + 0xc], 0x740068
mov dword [esp + 0x10], 0x700074
mov dword [esp + 0x14], 0x2f003a
mov dword [esp + 0x18], 0x78002f
mov dword [esp + 0x1c], 0x2e0076
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], 0x6c002f
mov dword [esp + 0x3c], 0x67006f
mov dword [esp + 0x40], 0x2e006f
mov dword [esp + 0x44], 0x6e0070
mov dword [esp + 0x48], 0x67
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], eax
call fcn.00401d53
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push dword [0x41b7d8]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x90]
push ecx
call eax
add esp, 0xc
push 0x419c44
call fcn.00401d1e
push eax
call esi
push 0
call eax
xor edx, edx
lea ecx, [esp + 0x88]
inc edx
call fcn.004012b9
mov esi, 0x419c54
jmp 0x4011a7
push esi
call fcn.00401a90
pop ecx
xor edx, edx
lea ecx, [esp + 0x88]
inc edx
call fcn.004012b9
test eax, eax
je 0x401191
jmp 0x4011b4
push esi
call fcn.00401a90
pop ecx
push 2
pop edx
lea ecx, [esp + 8]
call fcn.004012b9
test eax, eax
je 0x4011ad
call fcn.00401790
mov ecx, dword [esp + 0x294]
pop esi
xor ecx, esp
call fcn.004022da
mov esp, ebp
pop ebp
ret

Function at 0x4010c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte fs:[esi], ch
add bh, al
test byte [eax + eax*4], ah
add byte [eax], al
add byte [eax], ch
je 0x4010d5

Function at 0x40232f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add esp, dword [edx + 0xf]
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x40235e
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x402357
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp esp, dword [edx + 0x72]
or al, 0x83
ret 0x3b28
add edx, 0x28
cmp edx, esi
jne 0x402348
xor eax, eax
pop esi
pop ebp
ret
Function at 0x402a55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and dword [0x41bc3c], 0
sub esp, 0x2c
push ebx
xor ebx, ebx
cwde
or dword [ebp + 0x41b02c], ebx
push 0xa
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x402bf2
and dword [ebp - 0x14], 0
xor eax, eax
or dword [0x41b02c], 2
mov al, 0x41
add byte [edx], al
xor ecx, ecx
push esi
push edi
mov dword [ebp + 0x41bc3c], ebx
lea edi, [ebp - 0x2c]
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
xor ecx, ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
xor edi, 0x756e6547
mov eax, dword [ebp - 0x20]
xor eax, 0x49656e69
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
xor eax, 0x6c65746e
mov dword [ebp - 8], eax
xor eax, eax
inc eax
push ebx
cpuid
mov esi, ebx
pop ebx
or edi, dword [ebp - 4]
lea ebx, [ebp - 0x2c]
or edi, dword [ebp - 8]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
jne 0x402a84
mov eax, dword [ebp - 0x2c]
and eax, 0xfff3ff0
cmp eax, 0x106c0
je 0x402b1e
cmp eax, 0x20643
je 0x402b1e
cmp eax, 0x20670
je 0x402b1e
cmp eax, 0x30650
je 0x402b1e
cmp eax, 0x30643
je 0x402b1e
cmp eax, 0x30670
jne 0x402b2f
mov edi, dword [0x41bc40]
or edi, 1
mov dword [0x41bc40], edi
jmp 0x402b35
mov edi, dword [0x41bc40]
cmp dword [ebp - 0xc], 7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
jl 0x402b7c
push 7
pop eax
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x28]
test eax, 0x200
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
je 0x402b7c
or edi, 2
mov dword [0x41bc40], edi
pop edi
pop esi
test eax, 0x100000
je 0x402bf2
or dword [0x41b02c], 4
mov dword [0x41bc3c], 2
test eax, 0x8000000
je 0x402bf2
test eax, 0x10000000
je 0x402bf2
xor ecx, ecx
xgetbv
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
and eax, 6
xor ecx, ecx
cmp eax, 6
jne 0x402bf2
test ecx, ecx
jne 0x402bf2
mov eax, dword [0x41b02c]
and dword [edx + 8], 0xffffffc7
add eax, 0x41bc3c
add eax, dword [eax]
add byte [eax], al
test byte [ebp - 0x14], 0x20
mov dword [0x41b02c], eax
je 0x402bf2
and dword [edx + 0x20], 0xffffffc7
add eax, 0x41bc3c
add eax, 0xa3000000
sub al, 0xb0
inc ecx
add byte [ebx], dh
rcr byte [ebx - 0x75], 0xe5
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406dba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esp, dword [edx - 0x7b]
leave
jne 0x406dcb
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406dc8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406dc8
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x406dc8
cmp dword [eax + 0x74], 0xe
jbe 0x406dc8
cmp dword [eax + 0xe8], 0
setne al
ret
Function at 0x40a743
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x243
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x5c
pop esi
push 0x3a
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x25c], 0x2f
pop edi
jmp 0x40a795
movzx eax, word [ecx]
cmp ax, word [ebp - 0x25c]
je 0x40a799
cmp ax, si
je 0x40a799
cmp ax, di
je 0x40a799
sub ecx, 2
cmp ecx, ebx
jne 0x40a77c
movzx esi, word [ecx]
cmp si, di
jne 0x40a7bb
lea ebx, [eax + 0x74623b02]
adc edx, dword [edx + 0x33]
call dword [edi + 0x57]
push ebx
call fcn.0040a6a5
add esp, 0x10
jmp 0x40a842
push 0x2f
mov eax, esi
xor edi, edi
pop edx
cmp ax, dx
je 0x40a7db
push 0x5c
pop edx
cmp ax, dx
je 0x40a7db
push 0x3a
pop edx
cmp ax, dx
je 0x40a7db
mov eax, edi
jmp 0x40a7de
xor eax, eax
inc eax
sub ecx, ebx
movzx eax, al
sar ecx, 1
inc ecx
neg eax
push 0x250
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.00404260
add esp, 0xc
lea eax, [ebp - 0x254]
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a853
mov eax, dword [ebp - 0x258]
push eax
push edi
push edi
push ebx
call fcn.0040a6a5
add esp, 0x10
mov edi, eax
cmp esi, 0xffffffff
je 0x40a840
push esi
call dword [sym.imp.KERNEL32.dll_Findlose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022da
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x258]
push 0x2e
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
mov dword [ebp - 0x260], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40a88e
cmp word [ebp - 0x226], di
je 0x40a8a9
cmp word [ebp - 0x226], ax
jne 0x40a88e
cmp word [ebp - 0x224], di
je 0x40a8a9
push ecx
push dword [ebp - 0x25c]
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.0040a6a5
add esp, 0x10
test eax, eax
jne 0x40a832
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x258]
test eax, eax
push 0x2e
pop eax
jne 0x40a86a
mov eax, ecx
mov ecx, dword [ebp - 0x260]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
cmp esp, dword [edx + 0xf]
test byte [esi - 1], dl
invalid
Function at 0x40ce15
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esp, dword [edx - 0x7d]
loopne 0x40ce6e
sar ecx, 6
push ebx
imul ebx, eax, 0x30
push esi
mov eax, dword [ecx*4 + 0x41c070]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + ebx + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
add eax, edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetonsoleP]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0x62], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
cmp edi, ecx
inc esi
or byte [ebx], bh
stc
jae 0x40cfb5
mov ch, byte [edi]
xor eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x1b], ch
mov edx, dword [eax*4 + 0x41c070]
mov cl, byte [edx + ebx + 0x2d]
test cl, 4
je 0x40ceaf
mov al, byte [edx + ebx + 0x2e]
and cl, 0xfb
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push 2
mov byte [ebp - 0xb], ch
mov byte [edx + ebx + 0x2d], cl
push eax
jmp 0x40cee9
call fcn.0040bd52
movzx ecx, byte [edi]
mov edx, 0x8000
test word [eax + ecx*2], dx
je 0x40cee6
cmp edi, dword [ebp - 0x24]
jae 0x40cf8c
push 2
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040938d
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cfb5
inc edi
jmp 0x40cefe
push 1
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040938d
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cfb5
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push 5
push eax
push 1
lea eax, [ebp - 0x18]
inc edi
push eax
push ecx
push dword [ebp + 0x62]
call dword [sym.imp.KERNEL32.dll_WideharToMultiByte]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40cfb5
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cfad
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x30]
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
jb 0x40cfb5
cmp byte [ebp - 0x1b], 0xa
jne 0x40cf81
push 0xd
pop eax
push 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cfad
cmp dword [ebp - 0x20], 1
jb 0x40cfb5
inc dword [esi + 8]
inc dword [esi + 4]
cmp edi, dword [ebp - 0x24]
jb 0x40ce78
jmp 0x40cfb5
mov edx, dword [ebp - 0x2c]
mov al, byte [edi]
mov ecx, dword [edx*4 + 0x41c070]
mov byte [ecx + ebx + 0x2e], al
mov eax, dword [edx*4 + 0x41c070]
or byte [eax + ebx + 0x2d], 4
inc dword [esi + 4]
jmp 0x40cfb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022da
mov esp, ebp
pop ebp
ret
Function at 0x40d1da
Capabilities:
Write file on windows

Disassembly:
mov dword [esi + 4], edx
mov dword [esi + 8], edx
jmp 0x40d257
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x40d217
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xa
jne 0x40d204
add dword [esi + 8], 2
push 0xd
pop edx
mov word [edi], dx
add edi, 2
mov word [edi], ax
lea eax, [ebp - 6]
add edi, 2
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x40d1e8
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
and edi, 0xfffffffe
lea eax, [ebp - 0x1404]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d25d
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x40d265
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x40d1e2
jmp 0x40d265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022da
mov esp, ebp
pop ebp
ret

Function at 0x40d3a5
Capabilities:
Write file on windows

Disassembly:
mov esi, dword [ebp - 0x140c]
lea eax, [ebp - 0x6b0]
cmp edi, esi
jae 0x40d309
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x40d2fc
push 0xd
pop edx
mov word [eax], dx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x40d2e4
push ebx
push ebx
push 0xd55
lea ecx, [ebp - 0x1408]
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideharToMultiByte]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1418], eax
test eax, eax
je 0x40d38a
push 0
lea ecx, [ebp - 0x1410]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1414]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d38a
add ecx, eax
invalid
jae 0x40d392
xor ebx, ebx
jmp 0x40d2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022da
mov esp, ebp
pop ebp
ret
push 0x14
push 0x41a430
call fcn.00402d80
mov esi, dword [ebp + 8]
cmp esi, 0xfffffffe
jne 0x40d3d1
call fcn.00406982
and dword [eax], 0
call fcn.00406995
mov dword [eax], 9
jmp 0x40d487
les edx, [ebp + 0x2083ffff]
add al, ch
iretd
test esi, esi
js 0x40d46f
cmp esi, dword [0x41c270]
jae 0x40d46f
ret 0x41
mov ebx, esi
sar ebx, 6
mov eax, esi
and eax, 0x3f
imul esp, dword [edx + 0x30], 0xffffff89
dec ebp
loopne 0x40d381
add al, 0xc8
jo 0x40d3ba
inc ecx
add byte [edi], cl
mov dh, 0x44
or byte [eax], ch
and eax, 1
je 0x40d46f
push esi
call fcn.0040bc11
pop ecx
or edi, 0xffffffff
mov dword [ebp - 0x1c], edi
and dword [ebp - 4], 0
mov eax, dword [eax + ecx*8]
jo 0x40d3dc
inc ecx
add byte [ebx + 0x44f6e04d], cl
or byte [eax], ch
add dword [ebp + 0x15], esi
call fcn.00406995
mov dword [eax], 9
call fcn.00406982
and dword [eax], 0
jmp 0x40d451
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d467
mov eax, edi
jmp 0x40d48a
call fcn.00406982
and dword [eax], 0
call fcn.00406995
mov dword [eax], 9
call fcn.0040553d
and dword [edx - 1], 0xffffffe8
aaa
pop ecx
invalid
call fcn.00402dc6
ret
Function at 0x401270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x508
test eax, eax
push ebp
mov ebp, dword [esp + 0x510]
push esi
push edi
je 0x401336
mov eax, dword [0x40ed0c]
mov dword [esp + 0xc], 0
test eax, eax
jle 0x4012ec
mov edi, 0x40ed10
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012ca
test cl, cl
je 0x4012c6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012ca
add eax, 2
add esi, 2
test cl, cl
jne 0x4012a6
xor eax, eax
jmp 0x4012cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40132a
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40ed0c]
inc eax
add edi, 0x104
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4012a2
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.asktao.mod
push ebp
lea eax, [esp + 0x18]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401336
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x508
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.asktao.mod
stosb byte es:[edi], al
call fcn.00402db0
mov eax, dword [0x40ed0c]
mov edi, ebp
mov edx, eax
or ecx, 0xffffffff
shl edx, 6
add edx, eax
inc eax
mov dword [0x40ed0c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx*4 + 0x40ed10]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.ksuser.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x128]
push edx
call fcn.00402cf0
add esp, 0x18
lea eax, [esp + 0x114]
push 0
push eax
push 0x410d90
call dword [0x40e208]
push str.midimap.dll
push ebp
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call esi
lea edx, [esp + 0x124]
push edx
call fcn.00402cf0
add esp, 0x14
lea eax, [esp + 0x114]
push 0
push eax
push 0x410d90
call dword [0x40e208]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.msimg32.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402cf0
add esp, 4
lea ecx, [esp + 0x114]
push 0
push ecx
push 0x410d90
call dword [0x40e208]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x508
ret
Function at 0x401cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40e8f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40cf18
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call edi
lea edx, [esp + 0x124]
push esi
push edx
push str._syu_s
lea eax, [esp + 0x234]
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e1c
lea edx, [esp + 0x218]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
call dword [0x40e208]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402cf0
add esp, 4
lea edx, [esp + 0x10]
push ebx
push edx
push 0x410d90
call dword [0x40e208]
lea eax, [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x324]
push str._sdllcache_s
push ecx
call edi
lea edx, [esp + 0x32c]
push edx
call fcn.00402cf0
add esp, 0x14
lea eax, [esp + 0x31c]
lea ecx, [esp + 0x10]
push ebx
push eax
push ecx
call dword [0x40e208]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x402100
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x2f0
push ebp
mov ebp, ecx
call fcn.004024c0
call fcn.00402b10
call fcn.00401a70
test eax, eax
je 0x402262
push str.asktao.mod
call fcn.00402be0
add esp, 4
test eax, eax
je 0x40214e
push str.asktao.mod
call fcn.00402db0
add esp, 4
test eax, eax
jne 0x40214e
push eax
push 0x4020c0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401b40
lea eax, [esp + 0x260]
mov dword [esp + 0x260], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call fcn.00401560
call fcn.00401660
call fcn.00401f10
cmp eax, 1
jne 0x40218c
call fcn.00401e90
call fcn.004019a0
jmp 0x402191
call fcn.00401e90
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x40e8f4
lea ecx, [esp + 0x64]
push str._s_rundll32.exe
push ecx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 5
call esi
push 0x40e9f8
push 0x410d90
lea edx, [esp + 0x178]
push str.__s__ServerMain__s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
add esp, 0x2f0
ret