joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x4dc93f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dc93f
or eax, 0xffffffff
cmp esi, 8
jb 0x4dc917
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
sub edi, 1
jne 0x4dc870
pop edi
test esi, esi
je 0x4dc93a
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50dda8]
sub esi, 1
jne 0x4dc920
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x70307524
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
jmp 0x7030757c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x703075c4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.703074b4
add esp, 8
cmp eax, dword [ebp + 0x10]
jne 0x703075c2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x703075c6
jmp 0x70307573
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x703075d4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xc
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x7030764b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
push eax
call fcn.70307044
add esp, 4
cmp dword [ebp + 8], eax
jne 0x70307641
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
jmp 0x7030764d
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x70307617
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x70313bae
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x70313bbe
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x40102c
Capabilities:
Create process on windows

Disassembly:
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x402220], eax
xor eax, eax
mov ax, 0x67
push 0
push 0x40102c
push 0
push eax
push dword [0x402220]
call sub.USER32.dll_DialogBoxParamA
call sub.KERNEL32.dll_ExitProcess
enter 0, 0
push ebx
push edi
push esi
xor eax, eax
mov ax, word [ebp + 0xc]
cmp ax, 2
jne 0x401043
jmp 0x40106b
cmp ax, 0x10
jne 0x40104d
jmp 0x40106b
cmp ax, 0x111
jne 0x401057
jmp 0x4010a0
cmp ax, 0x110
jne 0x401062
jmp 0x4010ea
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x10
call 0x4c4193
call 0x4c45d4
push dword [0x4022b0]
call sub.KERNEL32.dll_GlobalFree
push 0
push dword [ebp + 8]
call sub.USER32.dll_EndDialog
call sub.KERNEL32.dll_ExitProcess
mov dword [0x40221c], 1
pop esi
pop edi
pop ebx
leave
ret 0x10
cmp word [ebp + 0x10], 0xa
je 0x4010cf
cmp word [ebp + 0x10], 1
jne 0x4010b8
push dword [ebp + 8]
call fcn.004011c6
jmp 0x4010c8
cmp word [ebp + 0x10], 0x3ea
jne 0x4010c8
push dword [ebp + 8]
call fcn.00401343
pop esi
pop edi
pop ebx
leave
ret 0x10
push 0
push 0
push 0
push section.DATA
push 0
push 0
call sub.SHELL32.dll_ShellExecuteA
pop esi
pop edi
pop ebx
leave
ret 0x10
push 0x69
push dword [0x402220]
call sub.USER32.dll_LoadIconA
mov dword [0x402228], eax
push eax
push 0
push 0x80
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push 0x402288
push dword [ebp + 8]
call sub.USER32.dll_GetWindowRect
call sub.USER32.dll_GetDesktopWindow
push 0x4022a0
push eax
call sub.USER32.dll_GetWindowRect
push 0
mov eax, dword [0x402294]
sub eax, dword [0x40228c]
mov dword [0x40229c], eax
push eax
mov eax, dword [0x402290]
sub eax, dword [0x402288]
mov dword [0x402298], eax
push eax
mov eax, dword [0x4022ac]
sub eax, dword [0x40229c]
shr eax, 1
push eax
mov eax, dword [0x4022a8]
sub eax, dword [0x402298]
shr eax, 1
push eax
push dword [ebp + 8]
call sub.USER32.dll_MoveWindow
push 0x4022b4
call fcn.004016e2
push eax
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov dword [0x4022b0], eax
push dword [0x4022b0]
push 0x4022b4
call fcn.00401564
push dword [0x4022b0]
push dword [ebp + 8]
call 0x4c44cb
push 0
call 0x4c4127
push 0x4021c4
push 0x3eb
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextA
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x4011c6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
enter 4, 0
push eax
push ebx
push ecx
push edx
push edi
push esi
mov eax, 0xfffee
call fcn.00401556
inc edx
xchg edx, eax
add eax, 0xe000000
sub eax, 0x2076
push eax
push 0x11
pop ebx
push ebx
cdq
idiv ebx
pop ebx
sub ebx, edx
pop edx
add edx, ebx
add edx, 0x2076
mov eax, edx
and eax, 0x1f
mov byte [0x402045], al
mov eax, edx
and eax, 0x3e0
shr eax, 5
mov byte [0x40204c], al
mov eax, edx
and eax, 0x7c00
shr eax, 0xa
mov byte [0x402051], al
mov eax, edx
and eax, 0xf8000
shr eax, 0xf
mov byte [0x402047], al
mov eax, edx
and eax, 0x1f00000
shr eax, 0x14
mov byte [0x40204a], al
mov eax, 0xd5bfea1c
xor ecx, ecx
xor edi, edi
xor edi, edi
movzx edx, byte [ecx + 0x402045]
cmp edi, 0x20
jge 0x401249
mov dword [ebp - 4], edi
mov ebx, edi
mov esi, eax
shr esi, 0x1b
and esi, 0x1f
xor dword [ebp - 4], esi
cmp dword [ebp - 4], edx
jne 0x4012a8
mov dl, byte [edi + 0x402024]
mov byte [ecx + 0x40216d], dl
xor eax, ebx
mov ebx, eax
shl ebx, 5
xor eax, ebx
mov ebx, eax
shl ebx, 0xa
xor eax, ebx
mov ebx, eax
shl ebx, 0xf
xor eax, ebx
mov ebx, eax
shl ebx, 0x14
xor eax, ebx
mov ebx, eax
shl ebx, 0x19
xor eax, ebx
mov ebx, eax
shl ebx, 0x1e
xor eax, ebx
inc ecx
push 0x20
pop edi
inc edi
cmp ecx, 0xe
je 0x4012b0
jmp 0x401252
xor ebx, ebx
lea ecx, [ebx + ebx*4]
mov edx, eax
and ecx, 0xff
shr edx, cl
and edx, 0x1f
mov cl, byte [edx + 0x402024]
mov byte [ebx + 0x40217c], cl
inc ebx
cmp ebx, 6
jl 0x4012b2
mov esi, 0x40216d
mov edi, 0x402153
push 4
pop ecx
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0x2d
inc edi
push 5
pop ecx
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0x2d
inc edi
push 5
pop ecx
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40217c
mov edi, 0x402165
push 3
pop ecx
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0x2d
inc edi
push 3
pop ecx
rep movsb byte es:[edi], byte [esi]
push 0x402153
push 0x3e8
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextA
push 0x402165
push 0x3e9
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextA
push dword [ebp + 8]
call fcn.00401343
pop esi
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret 4
Function at 0x10001550
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x10011080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4c4], edi
test esi, esi
je 0x100016af
test edi, edi
je 0x100016af
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10001662
xor ebx, ebx
cmp word [ebp - 0x4bc], bx
je 0x10001662
lea esi, [ebp - 0x4bc]
xor edi, edi
jmp 0x100015c0
push 0x1000f178
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000163a
push 0x1000f180
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000163a
mov cx, word [esi]
mov dx, word [ebp + edi - 0x4ba]
mov word [ebp - 0xc], cx
push 0x64
lea ecx, [ebp - 0xd4]
mov word [ebp - 0xa], dx
push ecx
lea edx, [ebp - 0xc]
xor eax, eax
push edx
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000166a
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x4c0]
mov esi, eax
push esi
lea ecx, [ebp - 0xd4]
push ecx
push edi
call fcn.10006db5
add esp, 0xc
test eax, eax
je 0x1000167d
add ebx, 4
lea edi, [ebx + ebx]
cmp word [ebp + edi - 0x4bc], 0
lea esi, [ebp + edi - 0x4bc]
jne 0x100015c0
mov edi, dword [ebp - 0x4c4]
mov esi, dword [ebp - 0x4c0]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x4c4]
lea edx, [ebp - 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10006817
mov esp, ebp
pop ebp
ret
Function at 0x100016d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x410
call fcn.1000680c
add esp, 4
push 0x410
mov edi, eax
call fcn.1000680c
add esp, 4
push 0x410
mov ebx, eax
call fcn.1000680c
add esp, 4
push 0x410
mov esi, eax
push 0
push edi
mov dword [ebp - 0xc], esi
call fcn.1000a780
add esp, 0xc
push 0x410
push 0
push ebx
call fcn.1000a780
add esp, 0xc
push 0x410
push 0
push esi
call fcn.1000a780
mov eax, dword [ebp + 8]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 8]
lea ecx, [eax + eax - 0x18]
push ecx
push edx
push edi
call fcn.1000b120
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 8]
lea ecx, [eax + eax - 0x18]
push ecx
push edx
push ebx
call fcn.1000b120
add esp, 0xc
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
push edi
push str._s_d.zip
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_wsprintfW]
push ebx
call fcn.100065e0
add esp, 0x14
push edi
push str._stdata
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x100017c3
mov dword [0x10012f10], 0x10000
jmp 0x100017ed
cmp dword [eax], 2
je 0x100017d4
mov dword [0x10012f10], 0x80000
jmp 0x100017ed
mov edx, dword [eax + 4]
push 4
push str.tdata
xor ecx, ecx
call fcn.10005bc0
mov dword [0x10012f10], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ecx
push eax
push esi
call fcn.10001890
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x10001838
cmp dword [eax], 2
je 0x10001813
mov dword [0x10012f10], 0x80000
jmp 0x10001838
mov esi, dword [eax + 4]
call fcn.10005580
mov dword [0x10012f10], eax
test esi, esi
je 0x10001829
call fcn.100066a0
mov edx, dword [ebp - 4]
push edx
call fcn.10006daa
mov esi, dword [ebp - 0xc]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
push str.C:ProgramDataquickpackages_d.zip
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.10001d40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test edi, edi
je 0x10001867
push edi
call fcn.10006d9f
add esp, 4
test ebx, ebx
je 0x10001874
push ebx
call fcn.10006d9f
add esp, 4
test esi, esi
je 0x10001881
push esi
call fcn.10006d9f
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001d40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000ff50
push 0x10009900
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10011080]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.10006d0b
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10001ebd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x10001e07
cmp word [edi + 2], 0x5c
jne 0x10001e07
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x10001ddb
cmp eax, 0x5c
je 0x10001ddb
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10001dc0
cmp word [esi], 0
je 0x10001de7
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x10001dff
cmp eax, 0x5c
je 0x10001dff
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10001de4
cmp word [esi], 0
je 0x10001e2d
jmp 0x10001e27
cmp word [edi + 2], 0x3a
jne 0x10001e2d
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x10001e2d
cmp eax, 0x5c
jne 0x10001e2d
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx eax, word [esi]
test ax, ax
je 0x10001e84
cmp eax, 0x5c
jne 0x10001e76
xor ecx, ecx
mov word [esi], cx
push edi
call ebx
cmp eax, 0xffffffff
jne 0x10001e6a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10001e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10001e6e
push edi
jmp 0x10001eb5
test al, 0x10
je 0x10001e67
mov edx, 0x5c
mov word [esi], dx
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10001e33
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.10006cd1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10006cd1
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x1000247f
cmp dword [0x10012f08], eax
jne 0x1000247f
push eax
push eax
push eax
push 0x10002410
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x10012f08], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10003f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x1000416e
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x10003fd7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10004017
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x10004017
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x10004002
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.10003c70
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x10004017
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x100040fb
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.10003470
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x100040c4
cmp ecx, 3
jb 0x100040c4
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x10004060
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x10004116
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x10004116
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.10003470
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x10004150
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x1000412d
lea edx, [ecx + esi + 0x1af70]
jmp 0x1000412f
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.100032d0
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x10004161
call fcn.10003e10
cmp dword [esi + 0x6af90], 0
jne 0x10003f80
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10004181
lea edx, [ecx + esi + 0x1af70]
jmp 0x10004183
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.100032d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004e30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x10004e37
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x10004f0d
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 + 0x1000f410]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1000f410]
add ecx, 8
sub edx, 8
dec esi
jne 0x10004e50
pop edi
test edx, edx
je 0x10004f2a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1000f410]
inc ecx
dec edx
jne 0x10004f11
not eax
pop esi
ret

Function at 0x10004f30
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 + 0x1000f410]
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 + 0x1000f410]
mov dword [edx + 8], ecx
ret
Function at 0x100053d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x100054bb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10005407
cmp dword [esi + 0x40], edi
jae 0x10005407
push eax
call fcn.10006daa
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1000541f
lea eax, [edi + edi]
push eax
call fcn.10006e3f
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.1000b120
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x100054b8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1000f410]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
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 + 0x1000f410]
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, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x10005437
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x100054fa
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x100054df
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.1000b120
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1000551c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8