joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a36d9
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0491ca8
jmp 0x4a3773
mov word [esp], di
jmp 0x4a370b
pushfd
mov byte [esp + 2], al
mov dword [esp], esp
pushal
mov dword [esp + 0xf], edx
pushfd
jmp 0x4a379e
mov word [esp + 1], bx
lea esp, [esp + 3]
lea esp, [esp + 1]
mov dword [esp], edx
push ecx
mov dword [esp], ebx
jmp 0x4a36f5
push edi
jmp 0x4a3762
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
push ebx
jmp 0x4a3721
push word [esp]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
push ebx
push edi
push dword [esp]
mov dword [esp + 0x28], edi
lea esp, [esp + 0x28]
pushfd
jmp 0x4a2837
jmp 0x4a37af
lea esi, [esi + ebp]
jmp 0x4a377e
mov esi, dword [esp + 0x2c]
lea ecx, [eax*4]
btr eax, ecx
jo 0x4a3870
jno 0x4a37f8
xlatb
inc esi
aam 0xb3
dec esi
int1
ja 0x4a37fa
test eax, 0x244c88c8
sbb al, 0x66
push dword [esp + 0x15]
mov byte [esp + 0x1c], cl
push word [esp + 0x15]
jae 0x4a3754
push word [esp]
jmp 0x4a3737
rdtsc
mov ebx, 0x9b017bca
bsr eax, edx
jge 0x4a3775
lea esi, [esi + ebp]
jmp 0x4a377e
mov edx, esp
mov ebx, dword [esp]
bts ebx, edi
je 0x4a381b
jne 0x4a381b
add eax, 0x91620797
sub dword [ebp + reloc.IPHLPAPI.DLL_GetInterfaceInfo], ebx
mov ebp, 0x5c35a53d
scasd eax, dword es:[edi]
pop ds
push esp
invalid
cmc
mov dx, word [esp]
mov edx, dword [esp]
jmp 0x4a3875
mov ebp, esp
stc
jns 0x4a3839
xchg dh, al
rdtsc
neg bl
jmp 0x4a3827
sub esp, 0xc0
jmp 0x4a37ff
rdtsc
neg bl
mov eax, esi
neg ebx
jmp 0x4a383d
xchg dh, al
jmp 0x4a3823
ja 0x4a3853
bsf dx, dx
mov edx, 0x16682dbe
jmp 0x4a3c48
bsf dx, dx
mov edx, 0x16682dbe
mov bl, dh
sub esp, 0xc
mov cl, ch
pop edx
jmp 0x4a39cc
cmc
mov dx, word [esp]
lea edi, [esp]
mov edx, 0x5e953c68
jmp 0x4a37d7
rol esi, 0
sub esp, 0x19
jns 0x4a38ba
js 0x4a38ba
rcr byte [ebp - 0x33], 0x94
xlatb
xor ch, byte [esi + 0x4b65b3c]
aas
push es
mov cx, sp
jmp 0x4a3882
call 0x4a389f
mov byte [esp + 5], dh
sbb cx, 0x32a3
jnp 0x4a389a
mov cx, sp
jmp 0x4a389d
mov bl, dh
sub esp, 0xc
mov cl, ch
jmp 0x4a3863

Function at 0x4ac03c
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x4ae550
call 0x4ac059
jmp 0x4ae535
mov dword [esp + 0x24], eax
jmp 0x4ae500
popal
pushal
lea esp, [esp + 0x20]
popfd
ret
mov dword [ecx + reloc.IPHLPAPI.DLL_GetInterfaceInfo], eax
jmp 0x4ae571
pop ecx
sub ecx, 0x1001a3b1
jmp 0x4ae51f
push eax
call fcn.00495d8c
jmp 0x4ac054
add ebx, 0xca00b447
jmp 0x4ae5a3
movzx ebx, byte [eax]
jmp 0x4ae55b
cmp ebx, 0xca00b513
je 0x4ae607
jne 0x4ac05e
xchg esi, eax
adc byte [esi + 0x8a010e1], al
lea ebx, reloc.IPHLPAPI.DLL_GetInterfaceInfo
push ds
mov ebx, gs
loop 0x4ae5b3
xchg cl, ah
adc byte [eax + 0x641d8d08], ah
xchg edi, eax
daa
lcall 0xefe2, 0x26eb8c1e
neg byte [eax + 0x2d]
or ch, byte [ebx]
ror dl, 1
invalid

Function at 0x4b07f9
Capabilities:
Encode data using xor

Disassembly:
push edx
pushfd
lea esp, [esp + 8]
jmp 0x494fce

Function at 0x5d0367
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bp, si
cpuid
mov byte [esp + 7], ch
jmp 0x5d0351
Function at 0x5d05c1
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x5d060c
bts si, di
push word [esp + 1]
mov edi, ecx
rdtsc
mov word [esp + 1], bx
jmp 0x5d05f6
mov si, 0x71bc
cpuid
neg ah
mov ebx, eax
xchg word [esp + 1], bp
lea esp, [esp + 5]
jmp 0x5d05c3
Function at 0x5d0b84
Capabilities:
Execute anti-debugging instructions

Disassembly:
not edi
mov word [esp + 0x1a], si
lea ebp, reloc.IPHLPAPI.DLL_GetInterfaceInfo
jmp 0x5d0ba4

Function at 0x5d29ff
Capabilities:
Access peb ldr_data

Disassembly:
pop word [esp + 1]
lea esp, [esp + 1]
jmp 0x5d2a1e
mov dword [esp + 0x28], ebp
pushal
push dword [esp + 0x15]
push dword [esp + 0x1b]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
jmp 0x5d2a57
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x8ccba4
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x8cc92e
push ebx
pop ebx
call fcn.008ccbdf
add ebx, ebx
sub edx, 0xa15ea011
xor dword [eax], esi
and edx, ebx
mov edx, 0xe35570ed
add eax, 1
mov edx, 0xbaab0a53
cmp eax, ecx
jne fcn.008ccba4
sub ebx, 0x9a01fbf7
add edx, 0x918b7a4f
ret
Function at 0x40178b
Capabilities:
Create pipe
Get thread local storage value
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00410d00
mov eax, dword [0x24605dc]
mov ecx, dword [0x2460068]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x401881
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x24605dc], 0x959
jne 0x40186f
push esi
lea eax, [ebp - 0xc08]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push str.zamuloguwatisofobus
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
lea eax, [ebp - 0x1808]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push esi
push esi
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x1408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.gotarurivocabowixetalakagaxahufijefisosefimazuwuhituwigoveyehucorocoyepep
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push esi
lea eax, [ebp - 0x2008]
push eax
push esi
call edi
push ebx
call fcn.00401543
add ebx, 8
dec dword [ebp - 4]
jne 0x4017be
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c2d
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41384c
call fcn.004136d0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040390d
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404bd8
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402c75
call fcn.004036c1
mov dword [ebx], eax
call fcn.00403480
mov ecx, eax
call fcn.00401181
mov eax, ebx
jmp 0x402c77
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4473f8]
jne 0x40526a
repz ret
jmp fcn.0040a1ec
Function at 0x4102ea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4473f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408d5f
and dword [ebp - 0x14], 0
cmp dword [0x44ded0], 0
mov dword [ebp - 0x18], eax
jne 0x41039d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410445
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410445
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44ded0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44ded4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44ded8], eax
call edi
push eax
call esi
mov dword [0x44dee0], eax
test eax, eax
je 0x41039d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44dedc], eax
mov eax, dword [0x44dedc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4103f6
cmp dword [0x44dee0], ecx
je 0x4103f6
push eax
call esi
push dword [0x44dee0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4103f6
test ebx, ebx
je 0x4103f6
call edi
test eax, eax
je 0x4103ed
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4103ed
test byte [ebp - 8], 1
jne 0x4103f6
or dword [ebp + 0x10], 0x200000
jmp 0x410429
mov eax, dword [0x44ded4]
cmp eax, dword [ebp - 0x18]
je 0x410429
push eax
call esi
test eax, eax
je 0x410429
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410429
mov eax, dword [0x44ded8]
cmp eax, dword [ebp - 0x18]
je 0x410429
push eax
call esi
test eax, eax
je 0x410429
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44ded0]
call esi
test eax, eax
je 0x410445
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410447
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405260
leave
ret
Function at 0x402a6c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004034f8
test esi, esi
jne 0x402aa3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004035e8
jmp 0x402ac4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402908
mov dword [esp], eax
test esi, esi
je 0x402ac4
cmp dword [ebx], 0
je 0x402ac4
dec esi
jmp 0x402aab
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x402c74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402cec
xor eax, eax
push ebp
push 0x402ce5
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 0x402d28
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 0x402cec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403374
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x4033d5
cmp word [0x409208], 0xd7b2
jne 0x40339d
cmp dword [0x409210], 0
jbe 0x40339d
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408054
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 0x4033fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x4033f1
push 0
push 0x40804c
push 0x408054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403aec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403b52
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403648
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b54
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403b3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b59
lea eax, [ebp - 0x10]
call fcn.004034f8
ret
Function at 0x4041d8
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
movzx eax, word [0x409698]
cmp eax, dword [0x40969c]
jb 0x40425e
push 0
push 0x40969c
mov eax, dword [0x408864]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.00405e9c
push eax
mov eax, dword [0x409690]
push eax
mov eax, dword [0x408874]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [0x408860]
mov ax, word [eax + 6]
and ax, 1
cmp ax, 1
jne 0x404255
mov esi, dword [0x40969c]
dec esi
test esi, esi
jl 0x404255
inc esi
xor ebx, ebx
call fcn.00407078
mov edx, dword [0x409690]
xor byte [edx + ebx], al
mov eax, dword [0x409690]
mov al, byte [eax + ebx]
call fcn.00406f88
inc ebx
dec esi
jne 0x404236
mov word [0x409698], 0
cmp dword [0x40969c], 0
jne 0x40427f
mov eax, dword [0x408864]
xor edx, edx
mov dword [eax], edx
mov word [0x409698], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x409698]
mov edx, dword [0x409690]
movzx eax, byte [edx + eax]
inc word [0x409698]
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403860
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40562d
test al, 0x10
jne 0x405631
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x405a70
Capabilities:
Get geographical location

Disassembly:
push esi
push edi
add esp, 0xfffffff8
push 7
lea edx, [esp + 4]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
xor esi, esi
mov edi, 7
mov eax, esp
mov dl, byte [eax]
mov ecx, edx
add cl, 0xd0
sub cl, 0xa
jae 0x405ab0
mov edx, esi
add edx, edx
lea edx, [edx + edx*4]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
sub edx, 0x30
mov esi, edx
jmp 0x405abd
test dl, dl
je 0x405ac1
call sub.kernel32.dll_GetACP
mov esi, eax
jmp 0x405ac1
inc eax
dec edi
jne 0x405a90
mov eax, esi
pop ecx
pop edx
pop edi
pop esi
ret

Function at 0x405e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
push esi
push ecx
push edx
push eax
call sub.kernel32.dll_WriteFile_1
mov ebx, eax
mov eax, dword [esi]
add dword [0x409810], eax
push 0
mov eax, dword [0x409810]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
fild qword [ebp - 8]
mov eax, dword [0x40980c]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdivp st(1)
fmul dword [0x405e74]
call fcn.00402ad0
push eax
push 0x402
mov eax, dword [0x409808]
push eax
call sub.user32.dll_SendMessageA
call fcn.00405dec
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405edc
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x40981c
mov edx, 0x8000
mov eax, dword [edi]
call fcn.00405e9c
add eax, 2
call fcn.004027b4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x405fc4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jle 0x405fa9
push 0
lea eax, [ebp - 4]
push eax
mov edx, 0x8000
mov eax, dword [edi]
call fcn.00405e9c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4096c4]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
sub dword [edi], eax
mov ax, word [0x40982a]
and ax, 1
cmp ax, 1
jne 0x405f7a
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jl 0x405f7a
inc esi
xor ebx, ebx
call fcn.00407078
mov edx, dword [ebp - 8]
xor al, byte [edx + ebx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx]
call fcn.00406f88
inc ebx
dec esi
jne 0x405f5a
lea eax, [ebp - 4]
push eax
push 0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [0x409820]
call fcn.00405e00
mov ecx, 0x409818
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00405e78
cmp dword [edi], 0
jg 0x405f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fcb
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004027e4
ret

Function at 0x406108
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403850
xor eax, eax
push ebp
push 0x4061e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403660
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x406165
mov eax, dword [ebp - 4]
call fcn.00403660
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004057c0
cmp al, 2
je 0x406165
mov eax, dword [ebp - 4]
call fcn.00403660
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00403990
mov eax, dword [ebp - 4]
call fcn.00403660
cmp eax, 3
jl 0x4061cb
mov eax, dword [ebp - 4]
call fcn.00403860
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403618
mov eax, dword [ebp - 8]
call fcn.00405614
test al, al
jne 0x4061cb
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405688
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004037ac
je 0x4061cb
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00405688
mov eax, dword [ebp - 0x10]
call fcn.00406108
push 0
mov eax, dword [ebp - 4]
call fcn.00403860
push eax
call sub.kernel32.dll_CreateDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061ed
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040351c
ret
Function at 0x406f88
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
mov edx, 0x409848
and eax, 0xff
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov ebx, dword [eax*4 + 0x408244]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [edx], ebx
and ebx, 0xff
add dword [edx + 4], ebx
imul eax, dword [edx + 4], 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
mov ecx, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x408244]
shr ecx, 8
and ecx, 0xffffff
xor eax, ecx
mov dword [edx + 8], eax
pop ebx
ret

Function at 0x407098
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00403850
xor eax, eax
push ebp
push 0x407143
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp + 8], 0
je 0x40712d
mov eax, dword [ebp + 8]
call fcn.00406fe8
xor ebx, ebx
call fcn.00407078
xor edx, edx
mov dl, bl
xor al, byte [esi + edx + 0xc]
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
call fcn.00406f88
xor eax, eax
mov al, bl
mov dl, byte [ebp - 5]
mov byte [esi + eax], dl
inc ebx
cmp bl, 0xc
jne 0x4070d0
mov bl, byte [esi + 0xb]
and di, 8
cmp di, 8
je 0x40711b
mov eax, dword [ebp - 4]
call fcn.00403f94
call fcn.00403f98
cmp bl, al
sete al
mov ebx, eax
jmp 0x40712d
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40714a
lea eax, [ebp + 8]
call fcn.004034f8
ret

Function at 0x407a24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10000
call fcn.004027b4
mov dword [ebp - 8], eax
xor ebx, ebx
push ebp
push 0x407ad9
push dword fs:[ebx]
mov dword fs:[ebx], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10000
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x408874]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov cl, 1
mov dx, word [ebp - 0xc]
sub dx, 4
test dx, dx
jb 0x407ac3
inc edx
xor eax, eax
movzx esi, ax
mov ebx, dword [ebp - 8]
cmp byte [ebx + esi], 0x50
jne 0x407abd
movzx ebx, ax
mov edi, dword [ebp - 8]
cmp byte [edi + ebx + 1], 0x4b
jne 0x407abd
movzx ebx, ax
mov edi, dword [ebp - 8]
cmp byte [edi + ebx + 2], 3
jne 0x407abd
movzx ebx, ax
mov edi, dword [ebp - 8]
cmp byte [edi + ebx + 3], 4
jne 0x407abd
test cl, cl
je 0x407ab8
xor ecx, ecx
jmp 0x407abd
mov dword [ebp - 4], esi
jmp 0x407ac3
inc eax
dec dx
jne 0x407a7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ae0
mov eax, dword [ebp - 8]
call fcn.004027e4
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x40c440f5
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x7b195c14
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x12e3370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x12e338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x130c074
push ecx
mov edi, eax
call fcn.012f7198
mov esi, eax
add esp, 8
test esi, esi
jne 0x12e33cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.012f702e
push esi
call fcn.012f6fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret