joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14e8c
Capabilities:
Check http status code

Disassembly:
mov cx, word [esp + 4]
xor eax, eax
cmp cx, 0x190
jne 0x14ea1
push 0x13
jmp 0x14f36
jae 0x14eb1
cmp cx, 0x10b
jb 0x14eb8
push 0x14
jmp 0x14f36
cmp cx, 0x10b
jae 0x14ec3
cmp cx, 0xc8
jb 0x14eca
push 0x15
jmp 0x14f36
cmp cx, 0xc8
jae 0x14ed5
cmp cx, 0xa0
jb 0x14edc
push 0x16
jmp 0x14f36
cmp cx, 0xa0
jae 0x14ee7
cmp cx, 0x85
jb 0x14eee
push 0x17
jmp 0x14f36
cmp cx, 0x85
jae 0x14ef8
cmp cx, 0x64
jb 0x14efe
push 0x18
jmp 0x14f36
cmp cx, 0x64
jae 0x14f08
cmp cx, 0x50
jb 0x14f0e
push 0x19
jmp 0x14f36
cmp cx, 0x50
jae 0x14f18
cmp cx, 0x43
jb 0x14f1e
push 0x1a
jmp 0x14f36
cmp cx, 0x43
jae 0x14f28
cmp cx, 0x39
jb 0x14f2e
push 0x1b
jmp 0x14f36
cmp cx, 0x39
jae 0x14f37
cmp cx, 0x32
jb 0x14f37
push 0x1c
pop eax
mov cl, byte [esp + 8]
xor edx, edx
and cl, 0x7f
mov dh, cl
or eax, edx
cmp byte [esp + 0xc], 0x10
jne 0x14f50
or eax, 0x80
ret 0xc
Function at 0x1002405
Capabilities:
Query environment variable

Disassembly:
push 0x60
push 0x10014f0
call fcn.01003160
mov edi, 0x94
mov eax, edi
call fcn.010031b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1006278], ecx
mov eax, dword [esi + 4]
mov dword [0x1006284], eax
mov edx, dword [esi + 8]
mov dword [0x1006288], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100627c], esi
cmp ecx, 2
je 0x1002465
or esi, 0x8000
mov dword [0x100627c], esi
shl eax, 8
add eax, edx
mov dword [0x1006280], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10024a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10024a0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10024b8
cmp eax, 0x20b
je 0x10024a5
mov dword [ebp - 0x1c], esi
jmp 0x10024cc
cmp dword [ecx + 0x84], 0xe
jbe 0x10024a0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x10024c6
cmp dword [ecx + 0x74], 0xe
jbe 0x10024a0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0100310d
pop ecx
test eax, eax
jne 0x10024f8
cmp dword [0x1006268], 1
jne 0x10024e5
call fcn.01002921
push 0x1c
call fcn.01002758
push 0xff
call fcn.010025d9
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.01002f48
test eax, eax
jge 0x100250c
push 0x1b
call fcn.010023e0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1006794], eax
call fcn.01002e22
mov dword [0x1006260], eax
call fcn.01002d80
test eax, eax
jge 0x1002532
push 8
call fcn.010023e0
pop ecx
call fcn.01002b34
test eax, eax
jge 0x1002543
push 9
call fcn.010023e0
pop ecx
call fcn.01002609
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1002556
push eax
call fcn.010023e0
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01002acb
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x1002577
movzx eax, word [ebp - 0x34]
jmp 0x100257a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.010021d2
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1002598
push edi
call fcn.01002718
call fcn.0100273a
jmp 0x10025ca
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01003199
ret
Function at 0x1002701
Capabilities:
Link many functions at runtime

Disassembly:
xor eax, eax
inc eax
cmp dword [0x10062b8], eax
je 0x10026fc
cmp dword [esp + 8], 0
mov dword [0x10062b4], eax
mov al, byte [esp + 0xc]
push esi
push edi
mov byte [0x10062b0], al
jne 0x10026db
mov ecx, dword [0x1006788]
test ecx, ecx
je 0x10026bc
mov eax, dword [0x1006784]
sub eax, 4
cmp eax, ecx
jmp 0x10026b5
mov eax, dword [eax]
test eax, eax
je 0x10026a7
call eax
mov eax, dword [0x1006784]
sub eax, 4
cmp eax, dword [0x1006788]
mov dword [0x1006784], eax
jae 0x100269f
mov eax, 0x1001128
mov esi, 0x100112c
cmp eax, esi
mov edi, eax
jae 0x10026db
mov eax, dword [edi]
test eax, eax
je 0x10026d4
call eax
add edi, 4
cmp edi, esi
jb 0x10026cc
mov eax, 0x1001130
mov esi, 0x1001134
cmp eax, esi
mov edi, eax
jae 0x10026fa
mov eax, dword [edi]
test eax, eax
je 0x10026f3
call eax
add edi, 4
cmp edi, esi
jb 0x10026eb
pop edi
pop esi
cmp dword [esp + 0xc], 0
jne 0x1002717
push dword [esp + 4]
mov dword [0x10062b8], 1
call fcn.010025d9
pop ecx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4a01a7]
shl eax, 2
mov dword [0x4a01ab], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004949dc
pop edx
call fcn.00493ce4
call fcn.004949e0
push 0
call fcn.00495c74
pop ecx
push 0x4a0150
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4a01af], eax
push 0
jmp fcn.0049ca98
Function at 0x406b38
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x406b58
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x406b3f
cmp dword [eax], 0x11
jbe 0x406b73
mov dword [eax], 0x11
jmp 0x406b67
dec dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x406b73
cmp dword [eax + edx*4], 0
je 0x406b65
ret

Function at 0x4073ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x4073f3
mov eax, 1
jmp 0x4073cc
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x4073c2
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, ebx
add edx, edi
push ecx
push edx
call fcn.00494c74
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x407458
mov eax, dword [esi]
cmp eax, dword [ebx]
jbe 0x407431
mov eax, 1
jmp 0x40740a
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x407400
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, esi
add edx, edi
push ecx
push edx
call fcn.00494c74
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x407458
mov eax, dword [ebx]
test eax, eax
jbe 0x407444
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x407444
dec eax
test eax, eax
ja 0x407437
mov dword [edi], eax
test eax, eax
jbe 0x407458
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x40744a
pop edi
pop esi
pop ebx
ret
Function at 0x408c3c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff790
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x35], dl
mov ebx, eax
mov eax, 0x4a0c70
call fcn.00495294
cmp byte [ebx + 0x6e2d], 0
mov eax, dword [ebx + 0x13cc]
je 0x408c7a
cmp byte [eax + 0x20e1], 0
jne 0x408c7a
cmp byte [ebx + 0x6e28], 0
je 0x408c8b
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x408e1f
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040ecfc
inc dword [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x24], 0x14
movzx eax, word [ebx + 0x4708]
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebx + 0x470c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, ebx
xor edx, edx
call fcn.00409c30
mov eax, ebx
call fcn.004053a4
cmp byte [ebp - 0x35], 0
je 0x408d08
push pe_nt_image_headers32
lea edx, [ebp - 0x238]
push edx
push dword [0x4c234c]
call sub.USER32.DLL_GetWindowTextA
mov eax, 0x34a
call fcn.0041202c
call fcn.0047e890
call fcn.0047dd2c
mov edx, dword [ebx + 0x46d8]
sub edx, 0x76
je 0x408d20
sub edx, 3
je 0x408d5a
dec edx
je 0x408d6c
jmp 0x408da5
test byte [ebx + 0x4704], 0x20
jne 0x408d48
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed68
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x408e1f
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408544
jmp 0x408da5
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00408e28
jmp 0x408da5
push 0x4a0b64
lea eax, [ebx + 0x5470]
push eax
call fcn.00494e18
add esp, 8
test eax, eax
sete dl
and edx, 1
test dl, dl
je 0x408d9e
lea ecx, [ebp - 0x870]
mov dl, byte [ebp - 0x35]
mov eax, ebx
call fcn.00409080
jmp 0x408da5
mov byte [ebp - 0x23a], 1
cmp byte [ebp - 0x35], 0
je 0x408dbb
lea eax, [ebp - 0x238]
call fcn.0047e890
call fcn.0047dd2c
test esi, esi
je 0x408dd0
push esi
mov edi, esi
lea esi, [ebp - 0x870]
mov ecx, 0x18e
rep movsd dword es:[edi], dword [esi]
pop esi
cmp byte [ebp - 0x23a], 0
je 0x408e05
cmp byte [ebp - 0x35], 0
je 0x408e05
mov eax, 0x2a9
call fcn.0041202c
push eax
add ebx, 0x17
push ebx
call fcn.00448a00
add esp, 8
mov eax, 0x4af020
mov edx, 1
call fcn.0042cf24
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed68
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x409563
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x409574
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x409583
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x40958d
xor eax, eax
jmp 0x409592
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040ffc8
test eax, eax
je 0x4095bf
test esi, esi
je 0x4095bf
cmp word [esi], 0
je 0x4095bf
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x4095d6
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4095ef
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4095ef
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40965d
mov dword [ebx + 4], edi
test esi, esi
je 0x409624
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0041023c
jmp 0x40962d
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x409644
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.00494e64
add esp, 8
jmp 0x409653
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0041001c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00409774
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40990c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x409ac4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409947
dec eax
je 0x409931
dec eax
je 0x40993d
jmp 0x409947
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x409947
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x409999
xor ebp, ebp
cmp esi, ebp
jle 0x4099b5
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40996c
mov ecx, esi
sub ecx, ebp
jmp 0x409971
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x4099b5
add ebp, 0x4000
cmp esi, ebp
jg 0x409953
jmp 0x4099b5
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x409ac0
cmp byte [edi + 0x14], 0
je 0x409ac0
cmp dword [edi + 0xc], 0
jne 0x409ac0
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.00409ce8
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.0040a3e0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x409a0e
cmp eax, dword [esp + 0x10]
jae 0x409a5a
jmp 0x409a10
jge 0x409a5a
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x409a32
cmp eax, 0xffffffff
ja 0x409a5a
jmp 0x409a34
jg 0x409a5a
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x409a4b
cmp eax, 0xffffffff
jbe 0x409a5a
jmp 0x409a4d
jle 0x409a5a
lea edx, [edi + 0x17]
mov eax, 0x4af020
call fcn.0042ccac
lea edx, [edi + 0x17]
mov eax, 0x4af020
call fcn.0042cce0
test al, al
je 0x409aaa
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x409947
cmp dword [esp + 4], 0
jbe 0x409947
mov eax, edi
call fcn.00409ce8
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00409c30
jmp 0x409947
lea ecx, [edi + 0x17]
mov eax, 0x4af020
xor edx, edx
call fcn.0042cc94
jmp 0x409ac0
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a3e0
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040c534
cmp dword [0x4a0d7c], 0
jne 0x40a41e
push 0x4a0d80
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x40a41e
push 0x4a0d8d
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a0d7c], eax
cmp dword [0x4a0d7c], 0
je 0x40a48d
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040bfac
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x40a458
lea edx, [esp + 0x3c]
jmp 0x40a45a
xor edx, edx
push edx
call dword [0x4a0d7c]
test eax, eax
je 0x40a48d
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x40a48d
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a4fa
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x40a4ae
lea eax, [esp + 0x40]
jmp 0x40a4b0
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a4c3
mov eax, 0x163e00
xor edx, edx
jmp 0x40a4fa
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.0049936c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a52f
test ebx, ebx
je 0x40a52f
cmp word [ebx], 0
je 0x40a52f
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40a938
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a95a
test ebx, ebx
je 0x40a95a
cmp word [ebx], 0
je 0x40a95a
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40a964
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040ffc8
test eax, eax
je 0x40a991
test ebx, ebx
je 0x40a991
cmp word [ebx], 0
je 0x40a991
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40a9a0
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40aae8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b0
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x4a0e90
call fcn.00495294
mov word [ebp - 0x30], 8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040ecfc
inc dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x10000
call fcn.00402a88
inc dword [ebp - 0x24]
or esi, 0xffffffff
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [0x4c234c], 0
je 0x40ab71
lea eax, [ebp - 0x250]
call fcn.0047e8b8
push pe_nt_image_headers32
lea edx, [ebp - 0x450]
push edx
push dword [0x4c234c]
call sub.USER32.DLL_GetWindowTextA
mov eax, edi
call fcn.00409ee8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0
push 0
xor edx, edx
mov eax, edi
call fcn.00409c30
jmp 0x40ac2e
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
and eax, 0xf
xor edx, edx
cmp edx, 0
jne 0x40ac08
cmp eax, 0
jne 0x40ac08
cmp dword [0x4c234c], 0
je 0x40ac03
push 0
push 0x10000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.0049936c
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0040ebdc
push eax
mov eax, 0x51e
call fcn.0041202c
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.00497dc4
add esp, 0xc
lea eax, [ebp - 0x650]
call fcn.0047e8c8
call fcn.0047dd2c
call fcn.0040faf8
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00410774
cmp dword [ebp + 0xc], 0x80000000
mov esi, eax
jne 0x40ac23
cmp dword [ebp + 8], 0
je 0x40ac2e
mov eax, ebx
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x80000000
jne 0x40ac44
cmp dword [ebp + 8], 0
jne 0x40ac44
mov ecx, 0x10000
jmp 0x40ac63
cmp dword [ebp + 0xc], 0
jne 0x40ac55
cmp dword [ebp + 8], 0x10000
jbe 0x40ac5e
jmp 0x40ac57
jle 0x40ac5e
mov ecx, 0x10000
jmp 0x40ac63
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00409acc
mov ebx, eax
test eax, eax
jne 0x40ab90
cmp dword [0x4c234c], 0
je 0x40ac9b
lea eax, [ebp - 0x250]
call fcn.0047e8c8
lea eax, [ebp - 0x450]
call fcn.0047e890
call fcn.0047dd2c
mov eax, esi
mov edx, 2
xor eax, 0xffffffff
push eax
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x24]
call fcn.004017ec
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040ed68
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b60c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40b615
mov eax, dword [ebp - 4]
add esp, 0xfffffb0c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x20f8]
mov eax, 0x4a0fc0
call fcn.00495294
lea eax, [ebp - 0x10e4]
call fcn.004137a4
lea eax, [ebp - 0x10b8]
call fcn.004137a4
lea eax, [ebp - 0x108c]
call fcn.004137a4
push 0
lea ecx, [ebp - 0x1cf8]
mov edx, ebx
mov eax, esi
call fcn.004128bc
test al, al
jne 0x40b689
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b83e
cmp byte [ebp - 0x1cf8], 0
je 0x40b69b
cmp byte [ebp - 0x1060], 0
jne 0x40b6af
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b83e
lea eax, [ebp - 0x1cf8]
call fcn.0040ba60
lea edx, [ebp - 0x1060]
call fcn.0040ee00
test eax, eax
je 0x40b6df
mov eax, esi
call fcn.0040ba60
lea edx, [ebp - 0x1060]
call fcn.0040ee00
test eax, eax
je 0x40b6f3
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b83e
xor ebx, ebx
push 0x400
push esi
push edi
call fcn.00495044
add esp, 0xc
push ebx
push 0x4a0f96
mov eax, edi
call fcn.0040ba60
push eax
call fcn.00497dc4
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.0040a504
test al, al
je 0x40b732
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40b6f5
mov eax, edi
xor edx, edx
call fcn.0040a504
test al, al
je 0x40b753
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b83e
push 0x400
push esi
lea ecx, [ebp - 0x24f8]
push ecx
call fcn.00495044
add esp, 0xc
lea eax, [ebp - 0x1cf8]
call fcn.0040ba60
push eax
lea eax, [ebp - 0x24f8]
call fcn.0040ba60
push eax
call fcn.00494e64
add esp, 8
push edi
lea edx, [ebp - 0x24f8]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40b7ad
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b83e
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.00409448
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.0040a504
test al, al
jne 0x40b7f0
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, esi
call fcn.004096c0
mov ebx, eax
lea eax, [ebp - 0x24f8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40b817
lea eax, [ebp - 0xc20]
call fcn.004097f4
lea eax, [ebp - 0xc20]
call fcn.00409888
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.004094f8
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40faf8
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4a1ad4], 0
jne 0x40fb11
call fcn.0049d288
mov dword [0x4a1ad0], eax
inc byte [0x4a1ad4]
call fcn.0049d288
sub eax, dword [0x4a1ad0]
cmp eax, 0x64
jle 0x40fb4d
cmp dword [0x4c4cf0], 0
je 0x40fb48
mov eax, 0x4af020
mov edx, 0xff
call fcn.0042cf24
mov eax, 0x4af020
mov edx, 0xff
call fcn.0042cf0c
call fcn.004483d0
mov eax, dword [0x4a1acc]
test eax, eax
je 0x40fb5c
push eax
call sub.KERNEL32.DLL_Sleep
ret
Function at 0x40ff6c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x40ffb8
lea eax, [esp + 8]
push eax
push 0x4a1af6
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0x80000000
push 0xd
call sub.USER32.DLL_ExitWindowsEx
add esp, 0x14
ret

Function at 0x410774
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x4b0f70
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x41078e
call fcn.0041073c
mov eax, ebp
jmp 0x4107a6
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x4107ae
test al, 7
jne 0x410792
cmp esi, 8
jb 0x410837
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x4107b7
xor edx, edx
jmp 0x410851
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x41083b
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret