joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaa4700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57c000]
push edi
or ebp, 0xffffffff
jmp 0xaa4722
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xaa4729
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa4718
mov eax, 1
add ebx, ebx
jne 0xaa473b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xaa474c
jne 0xaa476b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa476b
dec eax
add ebx, ebx
jne 0xaa4758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaa4730
add ebx, ebx
jne 0xaa4767
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xaa47bd
xor ecx, ecx
sub eax, 3
jb 0xaa4783
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xaa47f2
sar eax, 1
mov ebp, eax
jmp 0xaa478e
add ebx, ebx
jne 0xaa478e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa475c
inc ecx
add ebx, ebx
jne 0xaa479c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xaa475c
add ebx, ebx
jne 0xaa47a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xaa479e
jne 0xaa47ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xaa479e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xaa47dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xaa47ce
jmp 0xaa471e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xaa47dc
add edi, ecx
jmp 0xaa471e
pop esi
mov edi, esi
mov ecx, 0xb9e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xaa47fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xaa47ff
lea edi, [esi + 0x6a2000]
mov eax, dword [edi]
or eax, eax
je 0xaa4870
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a67c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a6800]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xaa4825
mov ecx, edi
jns 0xaa4854
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6a6804]
or eax, eax
je 0xaa486a
mov dword [ebx], eax
add ebx, 4
jmp 0xaa4842
call dword [esi + 0x6a6814]
mov ebp, dword [esi + 0x6a6808]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xaa48a4
sub esp, 0xffffff80
jmp 0x425ed8
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xbc2000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xbc200a
jmp 0xbc400f
jmp fcn.008c62c0
Function at 0x4a183f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x500324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004b9540
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4a18aa
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4a18b8
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401bce
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a18cd
leave
ret

Function at 0x4a3a6e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4ca0f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c9f75

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x458063]
shl eax, 2
mov dword [0x458067], eax
push edi
push ecx
xor eax, eax
mov edi, 0x472fe8
mov ecx, 0x4766d8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.0040abbb
pop ecx
push 0x45802c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x45806b], eax
push 0
jmp fcn.004159c0
Function at 0x4073d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 4
push esi
mov edx, dword [edi]
push edx
call sub.KERNEL32.dll_ReadFile
test eax, eax
setne al
and eax, 1
test al, al
je 0x407408
cmp dword [ebp - 4], 4
je 0x40740f
xor eax, eax
jmp 0x4074de
cmp dword [ebp + 0x10], 0
jne 0x40742b
mov edx, dword [esi]
and edx, 0xf0ff
cmp edx, 0xf0ff
sete bl
and ebx, 1
jmp 0x407460
mov edx, dword [esi]
mov ecx, edx
and ecx, 0xcf8ff
cmp ecx, dword [edi + 0x6d4]
jne 0x407457
and edx, 0xc0000000
cmp edx, 0xc0000000
sete dl
and edx, 1
cmp dl, byte [edi + 0x6d8]
je 0x40745b
xor ebx, ebx
jmp 0x407460
mov ebx, 1
test bl, bl
jne 0x40749a
push 1
push 0
push 0xfffffffffffffffd
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_SetFilePointer
mov edx, eax
cmp edx, 0xffffffff
setne al
and eax, 1
cmp dword [edi + 0x6e2], 0
je 0x40749a
mov ecx, dword [edi + 0x6de]
add ecx, dword [edi + 0x6e2]
cmp edx, ecx
jb 0x40749a
xor eax, eax
jmp 0x4074de
test bl, bl
jne 0x4074a6
test al, al
jne 0x4073e5
test al, al
jne 0x4074ae
xor eax, eax
jmp 0x4074de
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shl ecx, 8
shl edx, 0x18
and ecx, 0xff0000
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff00
shr eax, 0x18
or edx, ecx
or edx, eax
mov al, 1
mov dword [esi], edx
inc dword [edi + 0x6d9]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4074e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x6e2], 0
jle 0x407530
push 1
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_SetFilePointer
add eax, esi
mov edi, dword [ebx + 0x6de]
add edi, dword [ebx + 0x6e2]
cmp eax, edi
jbe 0x407530
mov eax, edi
push 0
push 0
push eax
mov edx, dword [ebx]
push edx
call sub.KERNEL32.dll_SetFilePointer
xor eax, eax
jmp 0x4075b9
push 0
lea edx, [ebp - 4]
push edx
push esi
lea edi, [ebx + 4]
push edi
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
mov dword [ebx + 0x6cc], edi
setne dl
xor ecx, ecx
and edx, 1
mov dword [ebx + 0x6d0], ecx
mov ecx, esi
dec ecx
mov dword [ebx + 0x6c8], esi
shr ecx, 2
shl ecx, 2
add ecx, ebx
add ecx, 4
jmp 0x40759a
mov eax, dword [ecx]
mov edi, eax
mov esi, eax
shl edi, 8
shl esi, 0x18
and edi, 0xff0000
or esi, edi
mov edi, eax
shr edi, 8
and edi, 0xff00
shr eax, 0x18
or esi, edi
or esi, eax
mov dword [ecx], esi
sub ecx, 4
lea eax, [ebx + 4]
cmp ecx, eax
jae 0x40756f
test dl, dl
je 0x4075b0
mov edx, dword [ebx + 0x6c8]
cmp edx, dword [ebp - 4]
je 0x4075b4
xor eax, eax
jmp 0x4075b9
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4104c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0040fe50
test byte [ebp + 0xd], 0xc0
jne 0x4104e8
mov eax, dword [0x4716a8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4104f5
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x410522
je 0x410534
sub ecx, 0x100
je 0x410542
sub ecx, 0x100
je 0x410549
sub ecx, 0x100
je 0x41053b
jmp 0x410550
sub ecx, 0x600
je 0x410549
sub ecx, 0x100
je 0x410534
jmp 0x410550
mov edi, 1
jmp 0x410555
mov edi, 2
jmp 0x410555
mov edi, 4
jmp 0x410555
mov edi, 5
jmp 0x410555
mov edi, 3
test byte [ebp + 0xd], 1
je 0x41057c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x471c8c]
test al, 0x80
je 0x410575
mov ebx, 0x80
jmp 0x41058e
mov ebx, 1
jmp 0x41058e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41058e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4105a0
je 0x4105a9
dec eax
je 0x4105b2
jmp 0x4105bb
mov dword [ebp - 4], 0x80000000
jmp 0x4105ca
mov dword [ebp - 4], 0x40000000
jmp 0x4105ca
mov dword [ebp - 4], 0xc0000000
jmp 0x4105ca
push 1
call fcn.00410210
pop ecx
mov ebx, eax
jmp 0x4106b6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4105e6
sub eax, 0x10
je 0x4105ed
sub eax, 0x10
je 0x4105f6
sub eax, 0x10
je 0x4105ff
jmp 0x4105ff
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x410606
mov dword [ebp - 8], 1
jmp 0x410606
mov dword [ebp - 8], 2
jmp 0x410606
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x41066f
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x410664
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x410664
add ebx, 0xffffffb2
push ebx
call fcn.00410210
pop ecx
mov ebx, eax
jmp 0x4106b6
mov edi, esi
push edi
call fcn.00410428
pop ecx
test eax, eax
je 0x410683
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x41068f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0040ff50
add esp, 8
mov ebx, eax
inc eax
jne 0x4106b6
push 4
call fcn.00410210
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.0040fe84
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414734
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x414bd4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x472708], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x414c8c
cmp byte [0x458062], 0
je 0x414c46
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00413ae0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x414c2f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00413ae0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x414c2f
lea ebx, [ebp - 0x54]
jmp 0x414c30
inc ebx
call fcn.00414b8c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x414cad
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x47270c
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040a25c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x47270f
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x414cad
cmp dword [0x472708], 0xffffffff
je 0x414cad
mov eax, dword [0x472708]
test eax, eax
je 0x414cad
cmp byte [eax], 0
je 0x414cad
push esi
push eax
call fcn.00414d3c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4153b4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x473664], 0
jne 0x415435
cmp dword [0x473680], 0
jne 0x4153e4
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x473680], eax
test eax, eax
jne 0x4153e4
push 0x472830
call fcn.00414cc4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x473680]
jmp 0x4153f8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040a25c
pop ecx
mov edi, eax
test eax, eax
jne 0x4153f0
lea edi, [ebp + 1]
push edi
call fcn.00414434
pop ecx
mov ebx, eax
mov dword [0x473668], ebx
test ebx, ebx
jne 0x415422
xor eax, eax
jmp 0x4154f8
push edi
mov edx, dword [0x473680]
push edx
push ebx
call fcn.0040a03c
add esp, 0xc
jmp 0x415455
xor esi, esi
mov ebx, dword [0x473664]
jmp 0x41544f
push eax
call fcn.0040a25c
pop ecx
test eax, eax
jne 0x41544b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41543f
lea ebx, [esi + 4]
push 4
mov dword [0x47366c], ebx
inc ebx
push ebx
call fcn.00413b38
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x415478
xor eax, eax
jmp 0x4154f8
cmp dword [0x473664], 0
jne 0x4154a9
xor esi, esi
mov ebx, dword [0x473668]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41549a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040a25c
pop ecx
mov edi, eax
test eax, eax
jne 0x415490
jmp 0x4154da
xor esi, esi
mov ebx, dword [0x473664]
mov eax, dword [esp]
mov edi, eax
jmp 0x4154d4
push eax
call fcn.0040a25c
pop ecx
test eax, eax
je 0x4154c9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4154cd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4154b8
mov eax, dword [0x473664]
test eax, eax
je 0x4154ea
push eax
call fcn.00414320
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x473664], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4168f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x416916
test esi, esi
je 0x416916
call fcn.00414b60
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x416982
call fcn.004166cc
mov ebx, eax
test eax, eax
jne 0x416931
call fcn.00414b60
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x416982
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
push eax
mov edx, dword [ebp + 0x18]
push edx
push ebx
push 0x416860
push esi
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.dll_CreateThread
test eax, eax
jne 0x416976
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x718
jne 0x41696f
push 0x59
call fcn.00410210
pop ecx
jmp 0x416982
call fcn.0041027c
jmp 0x416982
mov dword [ebx + 8], eax
test edi, edi
je 0x416982
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41a70c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 4], eax
mov eax, 0x458430
call fcn.0040ca44
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 4]
mov dword [edx], 0x4581f8
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x4584e4
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xffffffff
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x4584ac
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.00417eec
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x32e
call fcn.00418920
inc dword [ebp - 0xc]
push 0x40
push 0
mov edx, dword [ebp - 4]
add edx, 0x35b
push edx
call fcn.0040a0ac
add esp, 0xc
push 0x20
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x32f
push ecx
call fcn.0040a0ac
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0x353], 0xffffffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x357], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x39b], eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41becc
Capabilities:
Read file on windows

Disassembly:
add esp, 0xfffffff4
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
push 0
lea eax, [esp + 0xc]
push eax
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
push edx
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x41bf27
cmp dword [esp + 8], 0
jne 0x41bf13
push 0x11
mov ecx, dword [esp + 4]
push ecx
mov eax, dword [ecx]
call dword [eax]
add esp, 8
jmp 0x41bf21
push 0
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
add esp, 8
mov eax, dword [esp + 8]
jmp 0x41bf37
push 0x63
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
add esp, 8
xor eax, eax
add esp, 0xc
ret
Function at 0x41d234
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x45856c
push 0
call sub.SHELL32.dll_ShellExecuteA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x41d272
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call sub.SHELL32.dll_ShellExecuteA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jbe 0x41d27f
xor eax, eax
jmp 0x41d37c
lea edx, [ebp - 0x408]
push edx
push 0x458571
push 0x80000000
call fcn.0041d380
add esp, 0xc
test eax, eax
jne 0x41d379
push 0x458576
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040a150
add esp, 8
lea eax, [ebp - 0x408]
push eax
lea edx, [ebp - 0x408]
push edx
push 0x80000000
call fcn.0041d380
add esp, 0xc
test eax, eax
jne 0x41d379
push 0x45858a
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040a4d4
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41d333
push 0x45858f
lea eax, [ebp - 0x408]
push eax
call fcn.0040a4d4
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41d32b
lea edx, [ebp - 0x408]
push edx
call fcn.0040a25c
pop ecx
lea ecx, [ebp - 0x409]
add eax, ecx
mov dword [ebp - 8], eax
jmp 0x41d339
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x41d339
mov edx, dword [ebp - 8]
mov byte [edx], 0
push 0x458592
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a150
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.0040a150
add esp, 8
lea ecx, [ebp - 0x408]
push 0
push 0
push ecx
call fcn.004239e8
add esp, 0xc
test eax, eax
jne 0x41d379
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41d380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push esi
push edi
lea eax, [ebp - 8]
push eax
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.dll_RegOpenKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41d400
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10c]
push edx
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_RegQueryValueA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41d3f7
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x10c]
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e38c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push 0x200
lea eax, [ebp - 0x214]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
call sub.USER32.dll_GetWindowTextA
lea eax, [ebp - 0x214]
push eax
call fcn.0040a25c
pop ecx
test eax, eax
je 0x41e456
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0041e4a0
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
je 0x41e3f2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.dll_SetTextColor
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call sub.GDI32.dll_SetBkMode
push 0
lea eax, [ebp - 0x14]
push 0x8020
push eax
lea edx, [ebp - 0x214]
push 0xffffffffffffffff
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.USER32.dll_DrawTextExA
cmp dword [ebp + 0x10], 0
je 0x41e440
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041e45c
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x41e456
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.dll_SelectObject
mov esp, ebp
pop ebp
ret