joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
push 0x3e8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004054e0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004054e0
mov edi, eax
mov ebx, edx
mov eax, esi
xorps xmm0, xmm0
cdq
add edi, eax
movlpd qword [ebp - 0x18], xmm0
adc ebx, edx
js 0x40400a
jg 0x403fdd
test edi, edi
je 0x40400a
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004054e0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp edx, ebx
jl 0x403fe3
jg 0x40400a
cmp eax, edi
jb 0x403fe3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404773
mov esp, ebp
pop ebp
ret
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x128057
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402a47
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a98
cmp dword [ebp + 0x10], ebx
jne 0x402acf
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a47
test eax, eax
jne 0x402aaa
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ec3
cmp eax, ebx
je 0x402ae2
push ebx
push dword [0x42ec50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402adb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42ec50], ebx
jne 0x402ad8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad8
jmp 0x402adb
Function at 0x405368
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b828], 0x44
push eax
xor eax, eax
push 0x42b828
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053a3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40542d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405821
mov edi, eax
cmp edi, 0xffffffff
je 0x40546e
test byte [esp + 0x10], 1
push esi
je 0x405450
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405456
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40545f
xor eax, eax
inc eax
jmp 0x405470
test byte [esp + 0x10], 4
jne 0x40546e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405475
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405733
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054b4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec28], eax
jmp 0x40563e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054ce
test eax, eax
je 0x4055ec
test bl, 2
je 0x4055ec
mov esi, 0x42b028
push edi
push esi
call fcn.00405b98
cmp dword [ebp + 8], 0
je 0x4054ed
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054f3
push edi
call fcn.0040568c
cmp byte [edi], 0
jne 0x405501
cmp byte [0x42b028], 0x5c
jne 0x40550c
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055e2
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405670
cmp byte [eax], 0
je 0x405552
cmp byte [ebp - 0x1c], 0
je 0x405552
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405568
mov al, byte [esi + 1]
test al, al
je 0x4055c1
cmp al, 0x2e
jne 0x405568
cmp byte [esi + 2], 0
je 0x4055c1
push esi
push ebx
call fcn.00405b98
test byte [ebp - 0x14c], 0x10
je 0x40558d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c1
push dword [ebp + 0xc]
push edi
call fcn.00405475
jmp 0x4055c1
push dword [ebp - 4]
push edi
call fcn.0040542d
test eax, eax
jne 0x4055b9
cmp dword [ebp - 4], eax
je 0x4055b1
push edi
push 0xfffffffffffffff1
call fcn.00404ea5
push 0
push edi
call fcn.00405a4c
jmp 0x4055c1
inc dword [0x42ec28]
jmp 0x4055c1
push edi
push 0xfffffffffffffff2
call fcn.00404ea5
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405530
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055ec
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40563e
cmp dword [ebp - 0xc], esi
jne 0x405600
inc dword [0x42ec28]
jmp 0x40563e
push edi
call fcn.00405e9c
test eax, eax
je 0x40563e
push edi
call fcn.00405645
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040542d
test eax, eax
jne 0x405636
cmp dword [ebp - 4], esi
je 0x4055f8
push edi
push 0xfffffffffffffff1
call fcn.00404ea5
push esi
push edi
call fcn.00405a4c
jmp 0x40563e
push edi
push 0xffffffffffffffe5
call fcn.00404ea5
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405733
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b428
push esi
call fcn.00405b98
push esi
call fcn.004056de
mov edi, eax
test edi, edi
jne 0x405754
xor eax, eax
jmp 0x4057a6
push edi
call fcn.00405e03
test byte [0x42ebb8], 0x80
je 0x40576d
mov al, byte [edi]
test al, al
je 0x405750
cmp al, 0x5c
je 0x405750
sub edi, esi
jmp 0x405785
call fcn.00405e9c
test eax, eax
je 0x40577f
test byte [eax], 0x10
je 0x405750
push esi
call fcn.0040568c
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405771
call fcn.00405645
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405821
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405840
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405846
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405875
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058ba
test edi, edi
jne 0x405880
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058b4
Function at 0x4058be
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x42bdb0
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x40590d
push 1
push 0
push esi
call fcn.00405846
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a46
cmp eax, ebx
jg 0x405a46
mov esi, 0x42c1b0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a46
cmp eax, ebx
jg 0x405a46
push esi
push edi
push str._s_s_r_n
push 0x42b9b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ebb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bba
push 4
push 0xc0000000
push esi
call fcn.00405846
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a46
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a3f
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a3f
cmp edi, dword [esp + 0x10]
jne 0x405a3f
push str._Rename__r_n
push esi
call fcn.004057ab
test eax, eax
jne 0x4059d5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405a0a
add eax, 0xa
push 0x40936c
push eax
call fcn.004057ab
mov ebp, eax
test ebp, ebp
je 0x405a06
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059f7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059f1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405a0c
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x42b9b0
push eax
call fcn.00405801
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405f35
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c5b4], 0
push esi
jne 0x405f6c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f46
mov dword [ecx*4 + 0x42c5b0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f41
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f9d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c5b0]
xor eax, esi
inc ecx
dec edx
jne 0x405f7f
pop edi
not eax
pop esi
ret 0xc

Function at 0x423da0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x423dc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423db8
mov eax, 1
add ebx, ebx
jne 0x423ddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423dd0
jne 0x423dec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423dd0
xor ecx, ecx
sub eax, 3
jb 0x423e00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423e72
mov ebp, eax
add ebx, ebx
jne 0x423e0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423e18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423e3c
inc ecx
add ebx, ebx
jne 0x423e28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423e1d
jne 0x423e39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423e1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423e5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423e4d
jmp 0x423dbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423e5c
add edi, ecx
jmp 0x423dbe
pop esi
mov edi, esi
mov ecx, 6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423e7a
cmp byte [edi], 2
jne 0x423e7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x423e7f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423ef7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x238e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2391c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423eac
mov ecx, edi
jns 0x423edb
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 + 0x23920]
or eax, eax
je 0x423ef1
mov dword [ebx], eax
add ebx, 4
jmp 0x423ec9
call dword [esi + 0x23930]
mov ebp, dword [esi + 0x23924]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x423f2b
sub esp, 0xffffff80
jmp 0x401274
Function at 0xaf814c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0xb1219a
sub esp, 0x24
mov eax, dword [0xb72154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0xb12208
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.00af88b8
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.00afa9ab
pop ecx
pop ecx
test al, al
jne 0xb1221f
lea ecx, [esp + 0x18]
add edi, 4
call fcn.00afa92e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0xb121d3
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00af9d71
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.00afa92e
jmp 0xb1220a

Function at 0xafab63
Capabilities:
Encode data using xor

Disassembly:
jmp 0xb12d32
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0xb12e26
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0xb754f8
mov bl, byte [esi + edi]
push 0xb575e8
push ebp
call fcn.00af9a33
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0xab1edd
push 0xb575f4
mov bh, byte [edx + section..REMO]
push 0xb755e0
xor bh, bl
call fcn.00af9a33
pop ecx
pop ecx
mov ecx, eax
call fcn.00afcaa8
mov bl, byte [esi + edi]
push 0xab1edd
push 0xb57604
push ebp
call fcn.00af9a33
pop ecx
pop ecx
mov ecx, eax
call fcn.00afcaa8
add byte [esi + edi], bh
push 0xab1edd
push 0xb57618
push ebp
call fcn.00af9a33
pop ecx
pop ecx
mov ecx, eax
call fcn.00afcaa8
dec byte [esi + edi]
push 0xb57638
push ebp
call fcn.00af9a33
add byte [esi + edi], 0xfe
push 0xb57644
push ebp
call fcn.00af9a33
sub byte [esi + edi], bl
push 0xb57658
push ebp
call fcn.00af9a33
inc byte [esi + edi]
push 0xb57668
push ebp
call fcn.00af9a33
inc byte [esi + edi]
push 0xb57674
push ebp
call fcn.00af9a33
inc byte [esi + edi]
push 0xb57680
push ebp
call fcn.00af9a33
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0xb12d4b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0xafcba2
Capabilities:
Parse pe header

Disassembly:
jmp 0xb38e00
push 0
call dword [0xb780ec]
test eax, eax
je 0xb38e3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xb38e3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xb38e3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xb38e3f
cmp dword [ecx + 0x74], 0xe
jbe 0xb38e3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xafceb8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0xb12265
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0xb7a00c], eax
pop edi
pop esi
ret
Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404da0
test esi, esi
jne 0x403112
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e90
jmp 0x403130
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fe0
mov edi, eax
test esi, esi
je 0x403130
cmp dword [ebx], 0
je 0x403130
dec esi
jmp 0x403119
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403df8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403dd8
xor eax, eax
push ebp
push 0x403dd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403e14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x490020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x493048], 0
je 0x404c81
cmp word [0x49321c], 0xd7b2
jne 0x404c49
cmp dword [0x493224], 0
jbe 0x404c49
mov eax, 0x493218
call dword [0x493234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49077c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404ca8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49002c], 0
jne 0x404c9d
push 0
push 0x490774
push 0x49077c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret