joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423440
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mul dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
mul dword [ebp + 8]
add esi, edx
shrd eax, esi, 1
cmp eax, 0x2b
jae 0x42359d
mov eax, dword fs:[0x30]
push ebx
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov esi, dword [eax + 0x18]
mov dword [ebp + 0x10], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp + 8], ecx
cmp ecx, esi
je 0x4234d4
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x4234d4
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4234cd
nop word [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x4234b0
cmp esi, 0xacf9e7c0
je 0x4234d8
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x423495
mov eax, dword [eax]
jmp 0x423470
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push 0x21f
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp + 0x10], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp + 8], ecx
cmp ecx, edx
je 0x423569
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x423569
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
nop dword [eax + eax]
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x811c9dc5
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x423562
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x423545
cmp esi, 0x1d5f8790
je 0x42356d
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x423530
mov eax, dword [eax]
jmp 0x423506
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push 0
push 0
mov eax, dword [esi + 0x24]
push 0
push 0
push 0x56
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
push 0
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x45c3370d
xor edx, edx
nop dword [eax]
nop dword [eax + eax]
movsx eax, byte [edx + str.ozqofauhs8w40psxeo1z6b48uo695n1wweov9c6fhd4k7gz4nsksvoifwwom]
xor eax, ecx
imul ecx, eax, 0x1000193
movsx eax, byte [edx + 0x424359]
xor ecx, eax
movsx eax, byte [edx + 0x42435a]
imul ecx, ecx, 0x1000193
xor ecx, eax
movsx eax, byte [edx + 0x42435b]
imul ecx, ecx, 0x1000193
xor ecx, eax
movsx eax, byte [edx + 0x42435c]
imul ecx, ecx, 0x1000193
xor ecx, eax
movsx eax, byte [edx + 0x42435d]
imul ecx, ecx, 0x1000193
add edx, 6
xor ecx, eax
imul ecx, ecx, 0x1000193
cmp edx, 0x3c
jb 0x4235b0
push ecx
mov ecx, 0x434030
call fcn.00402220
push eax
call fcn.004013a0
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x43bc80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x43bd8c
test eax, eax
je 0x43bd8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x456ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x43bd73
lea edi, [eax + 4]
jmp 0x43bcd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x43bcec
mov dword [ebp - 4], 2
jmp 0x43bd0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x43bd03
mov dword [ebp - 4], 1
jmp 0x43bd0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x43bd83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x43bd46
mov byte [ecx], 0x3d
jmp 0x43bd52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x43bd5d
mov byte [ecx], 0x3d
jmp 0x43bd63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x43bcd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bd50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
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 [0x42bfb8], eax
pop esi
pop edi
pop ebp
ret
Function at 0x413b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
mov edx, dword [0x42b5f0]
xor edx, ebp
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x20], eax
call fcn.0040e940
lea ecx, [ebp - 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00413cc0
lea eax, [0x413d40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
add eax, 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.00413dc0
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], 0
lea edx, [0x413d40]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov dword [ebp - 0x28], ecx
call fcn.00416ce6
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0xf467060b
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, 0xf467060b
mov dword [ebp - 0x2c], eax
je 0x413c55
jmp 0x413c17
mov eax, dword [ebp - 0x2c]
sub eax, 0xf6b6c770
je 0x413c84
jmp 0x413c2a
mov eax, dword [ebp - 0x2c]
sub eax, 0x203dd1b6
je 0x413c9a
jmp 0x413c3d
mov eax, dword [ebp - 0x2c]
sub eax, 0x316c43ad
je 0x413c70
jmp 0x413c50
jmp 0x413cb5
mov eax, dword [ebp - 8]
cmp eax, 0
mov eax, 0x316c43ad
mov ecx, 0xf6b6c770
cmovne ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x413cb5
lea ecx, [ebp - 0x10]
call fcn.00413de0
mov dword [ebp - 0x1c], 0x203dd1b6
jmp 0x413cb5
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov dword [esp], 6
call fcn.0041441d
lea ecx, [ebp - 0x10]
call fcn.00413e30
mov eax, dword [ebp - 4]
xor eax, ebp
mov ecx, eax
call fcn.00414241
add esp, 0x44
pop ebp
ret 4
jmp 0x413bfe

Function at 0x4153ec
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41542b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41542b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41542b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41542b
cmp dword [ecx + 0x74], 0xe
jbe 0x41542b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4197ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4197ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419b12
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423dcc
push 0x423dc4
push str.FlsAlloc
push 0x1f
call fcn.00419e9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419b46
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x419b4c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x419b90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423ddc
push 0x423dd4
push str.FlsGetValue
push 0x21
call fcn.00419e9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419bc7
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x419bcf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423de4
push 0x423ddc
push str.FlsSetValue
push 0x22
call fcn.00419e9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419c09
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41d22d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d2ca
push ebx
push esi
call fcn.0041d2cd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d131
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d277
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d2c9
push edi
push eax
call fcn.0041bc45
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d297
call fcn.0041b0cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d2c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d131
add esp, 0x20
test eax, eax
jne 0x41d2b6
push edi
call fcn.0041b0cb
jmp 0x41d2be
push ebx
call fcn.0041b0cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401482
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x14c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x436910]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
or eax, 8
mov dword [esp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4015a6
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x11d]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
jne 0x401540
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 0x124]
je 0x401525
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, 1
jmp 0x4015a6
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401482
sub esp, 0xc
test eax, eax
je 0x4014db
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 4
call fcn.00408063
test eax, eax
push edi
je 0x401581
mov edx, dword [0x436910]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x4015a6
cmp dword [0x436910], 0
mov eax, 1
jne 0x4015a6
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push edx
push edx
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4039c9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x4039f4
mov eax, dword [0x427c60]
test eax, eax
je 0x4039e8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x427c60], 0
jmp 0x403a63
cmp dword [0x427c60], 0
je 0x403a0c
mov dword [esp], 0
call fcn.00408612
push edx
jmp 0x403a63
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x436980]
jbe 0x403a63
mov eax, dword [0x4369a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403914
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x427c60], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret

Function at 0x403a65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403aa6
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x40748c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2b], 0
mov word [ebp - 0x2a], 4
mov dword [ebp - 0x28], 0x40b5f0
mov dword [ebp - 0x24], 0x40b5f0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b5e0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
push edx
push edx
je 0x4074f0
xor eax, eax
jmp 0x40751d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x40751d
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x4074ec
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407555
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x435280], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x435280
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x4075d1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x40784d
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
mov edx, 0
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4078b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x1c]
mov esi, 0x65
sub esp, 0x2c
mov ebx, dword [ebp + 8]
dec esi
je 0x407907
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
add byte [ebp - 0x1a], dl
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4078c4
mov eax, ebx
jmp 0x40790c
mov byte [ebx], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x407916
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x34
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 0
mov dword [esp + 0x10], edx
sbb eax, eax
mov dword [esp + 8], 0
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4079b8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4079a1
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x4079a4
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407f37
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x434a80
mov dword [esp + 4], eax
call fcn.00407a92
push ebx
push ebx
mov dword [esp], 0x434a80
call fcn.00407711
test eax, eax
push esi
jne 0x407f69
xor eax, eax
jmp 0x407fe1
mov dword [esp], eax
mov ebx, eax
call fcn.00407b13
test byte [0x436984], 0x80
push ecx
je 0x407f87
mov al, byte [ebx]
test al, al
je 0x407f65
cmp al, 0x5c
je 0x407f65
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x434a80
mov dword [esp], 0x434a80
call esi
push ecx
cmp ebx, eax
mov dword [esp], 0x434a80
jge 0x407fc6
call fcn.00407eff
test eax, eax
push edx
je 0x407fb7
test byte [eax], 0x10
je 0x407f65
mov dword [esp], 0x434a80
call fcn.004076aa
push eax
jmp 0x407f93
call fcn.00407ace
push eax
mov dword [esp], 0x434a80
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407fea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [eax - 1]
push ecx
push ecx
cmp edx, 0x103
ja 0x408027
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x40802e
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40b3e0
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], str._s_s.dll
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edx
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408664
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4352e4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x408681
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4086af
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x40868a
mov dword [ecx*4 + 0x4352e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408683
jmp 0x408675
cmp edx, ebx
je 0x4086c8
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4352e0]
jmp 0x4086af
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x403454
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x409b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409be2
test eax, edx
je 0x409be5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409ba5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409bcb
add ecx, 4
js 0x409bbb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409bc8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409bf1
test edx, edx
jne 0x409b98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42e0c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42e0c6
ret
Function at 0x4466ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4468a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004059bc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4468c0
call fcn.00405550
mov eax, ebx
call fcn.00428a10
mov edi, eax
dec edi
test edi, edi
jl 0x4467a4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004289e4
mov edx, dword [0x43a000]
call fcn.004043fc
test al, al
je 0x4467a0
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.004289e4
lea edx, [ebp - 0x14]
call fcn.00455df8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004059bc
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004055cc
inc esi
dec edi
jne 0x446752
movzx eax, byte [0x4468c4]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4468d0
mov eax, dword [ebp - 8]
call fcn.0040f970
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004052d0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00455df8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4468c0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.00455df8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4468c0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4468c0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4468dc
call fcn.0040b5b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4468ae
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040525c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040525c
lea eax, [ebp - 0x14]
call fcn.00405238
lea eax, [ebp - 0x10]
call fcn.00405238
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040525c
ret