joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b5008], 0x8088405
inc edx
mov dword [ebx + 0x4b5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb9c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbc4
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49e56f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e576
ret
Function at 0x41e9a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x49ef53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0x4b7248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0x4b7248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0x4b60d8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ef5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10002aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002b01
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002ac2
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18

Function at 0x401a48
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405028]
jne 0x401a52
repz ret
jmp fcn.00401f6e
Function at 0x401040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40dd20
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x44c064]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
mov eax, dword [0x44c064]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x449f3e
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], 0x449d28
mov dword [esp + 0x14], str.sec_fetch_dest:_document
mov dword [esp + 0x18], str.sec_fetch_mode:_navigate
mov dword [esp + 0x1c], str.sec_fetch_site:_none
mov dword [esp + 0x20], str.sec_fetch_user:__1
mov dword [esp + 0x24], str.upgrade_insecure_requests:_1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.004013b0
mov dword [esp + 0x68], ebx
push ebx
push 0x449f3e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.004013b0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call fcn.00402220
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x401115
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00402923
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x401139
mov edx, dword [esp + 0x44]
push edx
call fcn.00402923
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004027ab
add esp, 0x64
ret

Function at 0x401160
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x44c064]
xor eax, esp
mov dword [esp + 0x114], eax
call fcn.00401d20
test eax, eax
je 0x40118b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401870
test eax, eax
jne 0x401233
call fcn.00401870
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SOFTWAREMicrosoftwfplwfs
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4011d8
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401040
push 0x103
lea edx, [esp + 0xd]
push 0
push edx
mov byte [esp + 0x14], 0
call fcn.00403de0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.wfplwfs.exe
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.004029a3
add esp, 0xc
lea eax, [esp + 8]
call fcn.00401e30
lea edx, [esp + 8]
push edx
call fcn.00401e80
add esp, 4
call fcn.00401d90
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.004027ab
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x38
push ebp
push esi
push edi
mov edi, eax
push edi
xor esi, esi
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401862
push esi
push 0x2000000
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401862
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x401862
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
mov word [esp + 0x38], 0x7b2
mov word [esp + 0x3a], 1
mov word [esp + 0x3e], 1
mov word [esp + 0x40], si
mov word [esp + 0x42], si
mov word [esp + 0x44], si
mov word [esp + 0x46], si
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sbb edx, dword [esp + 0x1c]
push esi
push 0x2710
push edx
push ecx
call fcn.0040dba0
mov esi, eax
mov edi, edx
call fcn.00401710
sub eax, esi
sbb edx, edi
cmp edx, 2
ja 0x401862
jb 0x401856
cmp eax, 0x69fb2000
ja 0x401862
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x38
ret
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x38
ret
Function at 0x401d20
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push esi
push 1
lea eax, [esp + 0x14]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Global_signature_netsetup
push esi
lea eax, [esp + 0xc]
lea edx, [esp + 0x18]
push eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x401d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x401d83
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x401d90
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x20c
mov eax, dword [0x44c064]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00403de0
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.00403de0
add esp, 0x18
push 0x104
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
push eax
lea ecx, [esp + 0x108]
push str.cmd__c_ping_127.0.0.1__n_3__del___s_
push ecx
call fcn.00402adc
add esp, 0xc
push 0
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004027ab
add esp, 0x20c
ret

Function at 0x401e30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x3a000
mov esi, eax
push 0x40fd28
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e6d
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x401e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push esi
push edi
push 0x40
xor esi, esi
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x24], 0x44
call fcn.00403de0
mov eax, dword [esp + 0x70]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401edc
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov esi, 1
call edi
mov edx, dword [esp + 8]
push edx
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x58
ret
Function at 0x4027ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c064]
jne 0x4027b5
repz ret
jmp fcn.004038e5

Function at 0x40af7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004065a9
xor ebx, ebx
cmp dword [0x44db58], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b051
push 0x40f1f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40afbc
xor eax, eax
jmp 0x40b115
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f1ec
push edi
call esi
cmp eax, ebx
je 0x40afb5
push eax
call fcn.00406546
mov dword [esp], 0x40f1dc
push edi
mov dword [0x44db58], eax
call esi
push eax
call fcn.00406546
mov dword [esp], 0x40f1c8
push edi
mov dword [0x44db5c], eax
call esi
push eax
call fcn.00406546
mov dword [0x44db60], eax
lea eax, [ebp - 8]
push eax
call fcn.0040602f
test eax, eax
pop ecx
pop ecx
je 0x40b01f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402e47
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b051
push 0x40f1ac
push edi
call esi
push eax
call fcn.00406546
cmp eax, ebx
pop ecx
mov dword [0x44db68], eax
je 0x40b051
push 0x40f194
push edi
call esi
push eax
call fcn.00406546
pop ecx
mov dword [0x44db64], eax
mov eax, dword [0x44db64]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b0ca
cmp dword [0x44db68], esi
je 0x40b0ca
push eax
call fcn.004065b2
pop ecx
call eax
cmp eax, ebx
je 0x40b097
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44db68]
call fcn.004065b2
pop ecx
call eax
test eax, eax
je 0x40b097
test byte [ebp - 0x18], 1
jne 0x40b0ca
lea eax, [ebp - 0xc]
push eax
call fcn.00406066
test eax, eax
pop ecx
je 0x40b0b2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402e47
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b0c1
or dword [ebp + 0x10], 0x200000
jmp 0x40b0fb
or dword [ebp + 0x10], 0x40000
jmp 0x40b0fb
mov eax, dword [0x44db5c]
cmp eax, esi
je 0x40b0fb
push eax
call fcn.004065b2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b0fb
mov eax, dword [0x44db60]
cmp eax, esi
je 0x40b0fb
push dword [ebp - 4]
push eax
call fcn.004065b2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44db58]
call fcn.004065b2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401014
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
jmp 0x401022
push pe_nt_image_headers32
jmp 0x401029
dec dword [esp]
cmp dword [esp], 0
jne 0x401026
pop eax
push 0x417071
call sub.KERNEL32.DLL_VirtualFreeEx
dec ebx
push 0
call sub.KERNEL32.DLL_VirtualFree
neg eax
call sub.KERNEL32.DLL_VirtualAlloc
add esi, ebx
call sub.KERNEL32.DLL_VirtualAlloc
not ecx
neg edx
push 0
push 0
push eax
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0xebd7531d
call sub.KERNEL32.DLL_GetCommandLineA
not esi
neg ebx
call sub.KERNEL32.DLL_VirtualAlloc
mov edi, eax
add ecx, eax
push 0
call sub.KERNEL32.DLL_VirtualFree
neg ecx
call sub.KERNEL32.DLL_VirtualAlloc
add esi, ecx
push 0
call sub.KERNEL32.DLL_VirtualFree
not eax
call sub.KERNEL32.DLL_VirtualAlloc
dec eax
push 0
push 0
push edx
push dword [ebp - 0x20]
push 0x4c38
push eax
push dword [ebp - 8]
push 0xfd8ca4c6
call sub.KERNEL32.DLL_GetCommandLineA
mov edx, esi
push 0
push 0
push 0x6b7261
lea ecx, [ebp - 0x14]
push ecx
push 0x73364e53
push 0x55566a
push edx
push 0xe0992094
call sub.KERNEL32.DLL_GetCommandLineA
neg ecx
mov ecx, ebx
call sub.KERNEL32.DLL_VirtualAlloc
dec eax
neg eax
call sub.KERNEL32.DLL_VirtualAlloc
inc ebx
neg edx
not edx
push 0
call sub.KERNEL32.DLL_VirtualFree
mov edi, esi
push 0
call sub.KERNEL32.DLL_VirtualFree
neg ecx
add edi, ecx
push 0x41707a
call sub.KERNEL32.DLL_VirtualFreeEx
mov edx, edi
not edi
call sub.KERNEL32.DLL_VirtualAlloc
neg edx
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0x324f6b
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
push 0x786c3573
push 0xfde49930
call sub.KERNEL32.DLL_GetCommandLineA
mov edx, ebx
neg ecx
push 0
push 0
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 8]
push eax
push eax
push 0xe1d2b123
call sub.KERNEL32.DLL_GetCommandLineA
inc esi
neg edx
push 0
call sub.KERNEL32.DLL_VirtualFree
dec esi
inc eax
call sub.KERNEL32.DLL_VirtualAlloc
add ebx, esi
push 0
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
push 0x4e7437
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0xf6298c0c
call sub.KERNEL32.DLL_GetCommandLineA
dec edx
inc edi
push 0
call sub.KERNEL32.DLL_VirtualFree
neg esi
not ecx
leave
call fcn.00401ce7
push ds
shl byte [edi - 0x40f07036], 0xb4
mov ah, 0x18
mov dword [0x4b4b4da2], eax
ror byte [esi], 0xb7
ret 0x830e
Function at 0x401ce7
Capabilities:
Encode data using xor
Get graphical window text

Disassembly:
mov esi, ebx
dec ecx
inc edi
add esi, ebx
push 0
push 0
push 0
call sub.user32.dll_GetWindowTextA
jmp 0x401cfb
push eax
or eax, eax
jne 0x401cfa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 0x57
je 0x401d0e
ret
push 0
push 0
push 0
call sub.KERNEL32.DLL_WideCharToMultiByte
push pe_nt_image_headers32
push 0x1000
push 0x1000
push 0
push sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime
pop eax
call dword [eax]
add edi, ecx
neg ebx
dec edx
neg esi
add edx, ebx
push eax
mov ecx, eax
not ebx
mov edx, 0xb42
not esi
dec ecx
mov esi, ecx
add ecx, edx
mov eax, dword [esp + 4]
dec edi
not ecx
mov edi, dword [esp]
mov esi, edx
not ecx
mov esi, dword [eax]
neg ebx
add ebx, ecx
mov ebx, eax
inc ecx
xor esi, 0x4b
inc ebx
mov dword [edi], esi
not esi
inc esi
dec ecx
neg esi
not esi
inc eax
mov esi, edi
inc edi
neg ecx
mov ebx, edx
dec edx
jne 0x401d54
dec ecx
add ecx, ebx
pop esi
not edx
neg edi
add ecx, esi
pop ecx
dec edx
not eax
neg ecx
push esi
inc ecx
mov ebx, eax
dec esi
neg edx
add edi, ecx
call fcn.00401000
neg edx
inc eax
ret
Function at 0x24d89270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x24da1f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, 1
push 0xc
mov dword [esi], 0x4c
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov word [esi + 0x20], di
mov word [esi + 0x22], di
mov dword [esi + 0x24], edi
mov word [esi + 0x28], di
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov word [esi + 0x38], ax
mov dword [esi + 0x3c], edi
mov word [esi + 0x40], di
mov word [esi + 0x42], di
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x24d89306
mov ecx, eax
call fcn.24d942b0
mov dword [esi + 0x48], eax
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x24d89510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x24da1f5b
push eax
mov dword fs:[0], esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov dword [esi], 0x3c
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0xff
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x20], bx
mov word [esi + 0x22], bx
mov word [esi + 0x24], bx
mov dword [esi + 0x28], ebx
mov word [esi + 0x2c], bx
mov word [esi + 0x2e], bx
mov word [esi + 0x30], bx
mov word [esi + 0x32], bx
mov word [esi + 0x34], bx
mov word [esi + 0x36], bx
mov word [esi + 0x38], 1
je 0x24d8965f
mov eax, dword [edi + 4]
push eax
call fcn.24d8c770
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
push ecx
call fcn.24d8c770
mov dword [esi + 8], eax
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov cx, word [edi + 0x20]
mov word [esi + 0x20], cx
mov dx, word [edi + 0x22]
mov word [esi + 0x22], dx
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
mov eax, dword [edi]
add esp, 8
cmp eax, 0x2e
jb 0x24d895e4
mov cx, word [edi + 0x2c]
mov word [esi + 0x2c], cx
cmp dword [edi], 0x30
jb 0x24d895f1
mov dx, word [edi + 0x2e]
mov word [esi + 0x2e], dx
cmp dword [edi], 0x32
jb 0x24d895fe
mov ax, word [edi + 0x30]
mov word [esi + 0x30], ax
cmp dword [edi], 0x34
jb 0x24d8960b
mov cx, word [edi + 0x32]
mov word [esi + 0x32], cx
cmp dword [edi], 0x36
jb 0x24d89618
mov dx, word [edi + 0x34]
mov word [esi + 0x34], dx
cmp dword [edi], 0x38
jb 0x24d89625
mov ax, word [edi + 0x36]
mov word [esi + 0x36], ax
cmp dword [edi], 0x3a
jb 0x24d89632
mov cx, word [edi + 0x38]
mov word [esi + 0x38], cx
cmp dword [edi + 0x28], ebx
je 0x24d8965f
push 0x10
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x24d8965a
mov edx, dword [edi + 0x28]
push edx
mov ecx, eax
call fcn.24d93400
jmp 0x24d8965c
xor eax, eax
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4