joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f6b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cbf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x488900]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push str.YouXunBoxYouxun.exe
lea esi, [ebx + 0x164]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00405610
mov dword [esp + 0x28], 0
mov eax, dword [0x48d284]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.004022a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00404ff0
test eax, eax
je 0x40f763
push 0x476ec4
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00405610
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
add esp, 0xc
push 5
push eax
push 0x477adc
push edx
push 0x477320
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f825
mov eax, dword [0x48d284]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
call fcn.004022a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004050b0
test eax, eax
je 0x40f7cb
push 0x476ec4
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00405610
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
add esp, 0xc
push 5
push eax
push 0
push edx
push 0x477320
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f825
mov ecx, dword [0x48d288]
cmp dword [ecx - 0xc], 0
jne 0x40f7e1
mov ecx, 0x48d290
call fcn.00401fb0
push 0x476ec4
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00405610
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 5
push eax
mov eax, dword [0x48d290]
push eax
push ecx
push 0x477320
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f869
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x414b10
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x288
mov dword [esp + 8], 0x288
call fcn.0043435e
mov esi, eax
add esp, 4
test esi, esi
je 0x414be4
push 0x288
push 0
push esi
call fcn.00455490
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x414b5f
push esi
call fcn.0043438d
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x414bdb
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x1a0], ecx
jne 0x414b85
cmp dword [eax + 0x190], ecx
je 0x414b99
mov eax, dword [eax]
test eax, eax
jne 0x414b75
push esi
call fcn.0043438d
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x478054
push edx
call fcn.004060e0
add esp, 0x20
push esi
call fcn.0043438d
add esp, 4
pop esi
pop ecx
ret 4

Function at 0x414bf0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.0043435e
mov esi, eax
add esp, 4
test esi, esi
je 0x414cb4
push 0x170
push 0
push esi
call fcn.00455490
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x414c45
push esi
call fcn.0043438d
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x414cab
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x414c7b
mov eax, dword [eax + 8]
test eax, eax
jne 0x414c61
push esi
call fcn.0043438d
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0x478054
push ecx
call fcn.004060e0
add esp, 0x20
push esi
call fcn.0043438d
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x419bd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x419bd7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x419cb4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x479c50]
inc ecx
sub edx, 8
sub esi, 1
jne 0x419bf0
pop edi
test edx, edx
je 0x419cdb
jmp 0x419cc0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x479c50]
inc ecx
sub edx, 1
jne 0x419cc0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x479c50]
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 + 0x479c50]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x479c50]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x479c50]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x41a490
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x41a4c2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a4b8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x41a4d5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00458fd0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x41a4f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x41a523
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a51d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x41a54f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x41a535
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00458fd0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x41a566
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x41a560
cmp byte [esi + 8], 0
je 0x41a560
or eax, 0xffffffff
add esp, 8
ret
Function at 0x41a650
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x41a695
cmp byte [esi + 1], 0
je 0x41a69d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x41a6b2
cmp byte [esi + 1], 0
je 0x41a6a4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x41a6bb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x41a66e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x41a6bb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x41a6cf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004532c4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41a6ed
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x41a801
jmp 0x41a710
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x41a721
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x41a73a
mov ebp, 0x404
cmp byte [esi], 0
je 0x41a75f
cmp byte [esi + 1], 0
je 0x41a801
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41a762
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x41a78a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a784
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x41a7b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x41a79b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00458fd0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x41a801
lea eax, [ebp - 3]
test eax, eax
jl 0x41a7ec
dec eax
cmp byte [eax + ebx], 0x50
jne 0x41a7dc
cmp byte [eax + ebx + 1], 0x4b
jne 0x41a7dc
cmp byte [eax + ebx + 2], 5
jne 0x41a7dc
cmp byte [eax + ebx + 3], 6
je 0x41a7e2
test eax, eax
jge 0x41a7c0
jmp 0x41a7ec
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x41a801
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x41a704
push ebx
call fcn.004531e7
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x41b130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x41b148
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x41b13d
cmp dword [edi + 0x7c], ebx
je 0x41b157
call fcn.0041b520
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041aea0
add esp, 0xc
test eax, eax
je 0x41b17d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004532c4
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41b1bf
push 0x4000
call fcn.004532c4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x41b1cb
push ebp
call fcn.004531e7
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x41b214
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00419fa0
test eax, eax
jne 0x41b214
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x41b23e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x41b247
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x41b284
mov cl, byte [esi]
cmp cl, bl
je 0x41b284
call fcn.00419ce0
add esi, 1
jne 0x41b274
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x41b620
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x41b6c1
cmp dword [esi + 4], 0xffffffff
jne 0x41b6c1
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b650
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x41b689
cmp ax, 0x2f
je 0x41b689
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41b676
mov eax, dword [0x47731c]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.0041a3f0
add esp, 4
test eax, eax
jne 0x41b6a7
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.0041a820
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x41bcc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x488900]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x41bd00
push esi
call ebp
cmp eax, 0xffffffff
jne 0x41bd00
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41bde6
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x41bd1f
cmp ax, 0x5c
jne 0x41bd21
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x41bd13
push edi
cmp ecx, ebx
je 0x41bd64
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00458fd0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.0041bcc0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x41bd8f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x41bd80
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41bd80
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bd93
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x41bdb0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41bdb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x41bde6
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00452675
add esp, 0x414
ret
Function at 0x41ca80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x41cb5b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x41cab4
cmp dword [esi + 0x40], edi
jae 0x41cab4
push eax
call fcn.0043438d
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x41cacb
lea eax, [edi + edi]
push eax
call fcn.00434398
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00458fd0
add esp, 0xc
cmp edi, ebp
jbe 0x41cb57
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x478470]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x478470]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x41cae0
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x41cb94
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x41cb7c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00458fd0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41cbb5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x41fb80
Capabilities:
Parse url

Disassembly:
mov eax, 0x2f28
call fcn.00454980
mov eax, dword [0x488900]
xor eax, esp
mov dword [esp + 0x2f24], eax
cmp dword [ecx + 0x18], 8
mov eax, dword [esp + 0x2f34]
mov dword [esp + 4], eax
lea eax, [esp + 0xfe4]
mov dword [esp], edx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x1f84]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x814]
lea eax, [esp + 0x17b4]
push ebp
mov ebp, dword [esp + 0x2f34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov eax, 0x3e8
lea edx, [esp + 0x2758]
push esi
mov esi, dword [esp + 0x2f34]
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
jb 0x41fc25
mov ecx, dword [ecx + 4]
jmp 0x41fc28
add ecx, 4
push ebx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov eax, dword [esp + 0x24]
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41fc42
sub ecx, ebx
sar ecx, 1
push ecx
call fcn.00405bc0
mov cx, word [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov word [edi], cx
mov ecx, eax
lea esi, [ecx + 2]
pop ebx
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41fc70
sub ecx, esi
sar ecx, 1
push ecx
mov esi, ebp
call fcn.00405bc0
mov eax, dword [esp + 0x44]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41fc90
sub ecx, esi
mov esi, dword [esp + 0xc]
sar ecx, 1
push ecx
call fcn.00405bc0
mov ecx, dword [esp + 0x2f2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
pop esi
pop ebp
xor ecx, esp
mov dword [eax], edx
call fcn.00452675
add esp, 0x2f28
ret 0xc
Function at 0x429cc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46dd28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x488900]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00405da0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x429d16
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00429be0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00405da0
cmp dword [esp + 0x24], 8
jb 0x429d5f
mov edx, dword [esp + 0x10]
push edx
call fcn.0043438d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x42a0c0
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, edx
push edi
mov edi, eax
test esi, esi
je 0x42a1cb
test edi, edi
jle 0x42a1cb
cmp edi, 3
jl 0x42a165
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
jmp 0x42a100
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x42a100
pop ebx
test edi, edi
jle 0x42a1c3
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x42a18d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x42a1ae
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret