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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x151000]
push edi
jmp 0x5a58aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a58b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58a0
mov eax, 1
add ebx, ebx
jne 0x5a58c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a58d4
jne 0x5a58f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58f3
dec eax
add ebx, ebx
jne 0x5a58e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a58b8
add ebx, ebx
jne 0x5a58ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a5945
xor ecx, ecx
sub eax, 3
jb 0x5a590b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a597a
sar eax, 1
mov ebp, eax
jmp 0x5a5916
add ebx, ebx
jne 0x5a5916
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58e4
inc ecx
add ebx, ebx
jne 0x5a5924
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58e4
add ebx, ebx
jne 0x5a5931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a5926
jne 0x5a5942
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a5926
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a5964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a5956
jmp 0x5a58a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a5964
add edi, ecx
jmp 0x5a58a6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a5982
cmp byte [edi], 0x11
jne 0x5a5982
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 0x5a5987
lea edi, [esi + 0x19e000]
mov eax, dword [edi]
or eax, eax
je 0x5a59ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x274ac0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x274c3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a59b4
mov ecx, edi
jns 0x5a59e3
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 + 0x274c40]
or eax, eax
je 0x5a59f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5a59d1
call dword [esi + 0x274c50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5a5a30
cmp al, 0xef
ja 0x5a5a23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5a5a05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5a5a12
mov ebp, dword [esi + 0x274c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x5a5a64
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10001010
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
cmp dword [ebp + 0xc], 1
jne 0x10001095
pushal
push 0x40
push 0x3000
push 0xea60
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [section..data], 0x74666f53
mov dword [0x10003004], 0x65726177
push eax
pop dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push section..data
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10001092
mov dword [ebp - 8], 0xea60
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
push 0
push 0x10003009
push dword [ebp - 0x1c]
call sub.advapi32.dll_RegQueryValueExA
mov esi, dword [ebp - 4]
mov ecx, 1
mov eax, dword [ebp + 8]
call esi
popal
jmp 0x100010a0
cmp dword [ebp + 0xc], 0
jne 0x100010a0
mov eax, 0
leave
ret 0xc
Function at 0x402e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e3b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402e6e
jmp 0x402e60
cmp esi, eax
jae 0x402e72
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e60
cmp esi, eax
jb 0x402e79
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4052d0
test esi, esi
je 0x4052d0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4052d0
xor eax, eax
test edx, edx
je 0x4052c5
push ebx
mov cl, byte [eax + edi]
mov ebx, esi
sar ebx, 8
xor bl, cl
movzx ecx, cl
add esi, ecx
imul esi, esi, 0xce6d
mov byte [eax + edi], bl
inc eax
add esi, 0x58bf
cmp eax, edx
jb 0x4052a1
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x405460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f578
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4054bf
lea ecx, [ebp - 0x10]
push ecx
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
add eax, 0xfffffff0
cmp dword [eax + 0xc], 1
jle 0x4054e0
mov edx, dword [eax + 4]
push edx
lea ecx, [ebp + 8]
call fcn.00401aa0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edi, 0xffffffff
add dword [eax + 0xc], edi
jne 0x4054eb
mov dword [eax + 0xc], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
push esi
push ecx
push 1
push 0
push str.Path
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x405522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406f40
Capabilities:
Accept command line arguments
Check mutex on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fa46
mov eax, dword fs:[0]
push eax
mov eax, 0x3944
call fcn.005163b0
mov eax, dword [0x58deec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.zhuzaiRxjhIce
push 1
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406fa4
push 0
push 0
push 0x54107c
call fcn.00421121
jmp 0x407103
test esi, esi
je 0x406faf
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call fcn.00428d43
add esp, 4
lea eax, [ebp - 0x3950]
push eax
mov dword [ebp - 0x3950], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x407090
cmp dword [ebp - 0x3950], 3
jl 0x407090
mov ecx, dword [esi + 4]
push ecx
lea ecx, [ebp - 0x3948]
call fcn.00406af0
mov edx, dword [esi + 8]
push edx
lea ecx, [ebp - 0x394c]
mov dword [ebp - 4], 0
call fcn.00406af0
mov eax, dword [ebp - 0x3948]
push eax
call fcn.005163a3
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x407038
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x394c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x394c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3948]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
lea ecx, [ebp - 0x3944]
call fcn.004094d0
lea ecx, [ebp - 0x3944]
mov dword [ebp - 4], 1
mov dword [edi + 0x20], ecx
call fcn.0041587b
cmp eax, 1
jne 0x4070f1
mov edx, dword [0x541074]
mov al, byte [0x541078]
lea ecx, [ebp - 0x20c]
push ecx
push 2
mov dword [ebp - 0x204], 0x80
mov dword [ebp - 0x200], 7
mov dword [ebp - 0x1f4], edx
mov byte [ebp - 0x1f0], al
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
lea ecx, [ebp - 0x3944]
mov dword [ebp - 4], 0xffffffff
call fcn.00406b90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005156a7
mov esp, ebp
pop ebp
ret
Function at 0x407240
Capabilities:
Hash data using crc32b

Disassembly:
push esi
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x407250
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x40725c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x407266
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x407270
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x40727a
or eax, 8
shr ecx, 1
test cl, 1
je 0x407284
or eax, 4
shr ecx, 1
test cl, 1
je 0x40728e
or eax, 2
test cl, 2
je 0x407296
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor esi, esi
mov dword [edx*4 + 0x5929a0], ecx
mov eax, ecx
lea ecx, [esi + 0x1f]
nop
test al, 1
je 0x40735d
mov edi, 1
shl edi, cl
or esi, edi
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x407350
mov dword [edx*4 + 0x5929a0], esi
inc edx
cmp edx, 0xff
jle 0x407244
pop edi
pop esi
ret

Function at 0x407570
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
movzx ecx, word [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
mov dword [ebp + 0x10], 0
call fcn.00415021
push esi
mov edi, eax
push 0
push edi
call fcn.005160e0
mov edx, dword [ebp + 0x14]
push esi
push edx
push edi
call fcn.005169a0
add esp, 0x1c
test esi, esi
je 0x407628
mov eax, dword [ebp + 0xc]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x407628
push 0
lea ecx, [ebp + 0x10]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.0041502c
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x4079e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
or eax, 0xffffffff
test ecx, ecx
je 0x407a11
push esi
push edi
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x5929a0]
inc edx
dec ecx
jne 0x4079f4
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x4083a0
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x58deec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x207
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.005160e0
mov ecx, dword [ebp + 0x10]
push 0x5409a6
push ecx
call fcn.0051628c
add esp, 0x14
push 0
test eax, eax
jne 0x4083f4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40840c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0
push 0x4000000
push 3
push 0
push 1
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x44
lea edx, [ebp - 0x260]
push 0
push edx
mov esi, eax
call fcn.005160e0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
xor eax, eax
push esi
push edx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x20c]
push str._s__d___s_
push eax
mov dword [ebp - 0x260], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x260]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4084cf
push edi
call ebx
test esi, esi
je 0x4084d6
push esi
call ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x4084f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408517
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005156a7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408fb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fa98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x8000000
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x4090ac
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 0x20
lea ecx, [ebp - 0x10]
call fcn.004085b0
mov dword [ebp - 4], 0
test esi, esi
jns 0x40902c
push 0x80070057
call fcn.00401010
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40904c
push esi
lea ecx, [ebp - 0x10]
call fcn.00401dd0
mov edx, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005175cf
add esp, 8
test eax, eax
js 0x409022
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x409022
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
mov byte [eax + edx], 0
cmp esi, dword [ebp - 0x14]
je 0x4090c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4090ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push esi
push ecx
call fcn.004079e0
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4090f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fde0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530813
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041fe5e
xor ecx, ecx
mov dword [esi], vtable.XCMemDC.0
mov dword [ebp - 4], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [ebp - 4], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x40feb7
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00420430
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
call fcn.00420704
test ebx, ebx
je 0x40fe96
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.00420795
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0041ffe0
jmp 0x40fec9
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411630
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41163e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x41171d
mov esi, edx
shr esi, 3
push edi
jmp 0x411660
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x543740]
add ecx, 8
sub edx, 8
dec esi
jne 0x411660
pop edi
test edx, edx
je 0x41173a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x543740]
inc ecx
dec edx
jne 0x411721
not eax
pop esi
pop ebp
ret

Function at 0x411740
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x543740]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x543740]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x411d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x411d40
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411d34
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x411d51
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005169a0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret