joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a70
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575680
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5daf20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x64], eax
test eax, eax
jne 0x403ad0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__.NET_CLR_1.0.3705__Autodesk_senddmp_1.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x403abc
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403b06
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403b36
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebx + 0x20]
push ecx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push dword [ebx + 4]
mov dword [ebp - 0x10], 0x1000
call fcn.00434898
test eax, eax
je 0x403ba5
cmp byte [ebx], 0
push 0
push 0
push 3
mov ecx, 0x1bb
push 0x5aef08
mov eax, 0x50
cmovne eax, ecx
push 0x5aef08
movzx eax, ax
push eax
push dword [ebx + 0x20]
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x403ba5
mov bl, 1
jmp 0x403ba7
xor bl, bl
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403bc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x403be5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x404de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404df5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404e34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404e30
lea ebx, [ebx]
cmp esi, edx
jae 0x404e34
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404e20
cmp esi, edx
jb 0x404e39
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x411b40
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577032
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5daf20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x160], 9
mov ecx, str.32_bit
mov eax, str.64_bit
cmovne eax, ecx
push eax
lea eax, [esi + 0x50]
push 0x5b19e4
push eax
call fcn.00405c70
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x134]
push eax
mov ecx, esi
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], 0x20
call fcn.00411d70
test eax, eax
jns 0x411bf6
mov eax, 0x80004005
jmp 0x411d45
movzx eax, word [ebp - 0x130]
push eax
call fcn.005496cf
mov edi, dword [ebp - 0x134]
mov ebx, dword [ebp - 0x138]
cbw
movzx edx, ax
mov ecx, edi
shl ecx, 8
add ecx, ebx
shl ecx, 8
lea eax, [edx - 0x61]
add esp, 4
mov dword [esi + 0xb8], ecx
cmp ax, 0x19
ja 0x411c3d
mov eax, edx
add eax, 0xffffffa0
add eax, ecx
mov dword [esi + 0xb8], eax
lea eax, [esi + 0x7c]
cmp edx, 0x20
jne 0x411c57
push ebx
push edi
push str._d._d
push eax
call fcn.00405c70
add esp, 0x10
jmp 0x411c68
push edx
push ebx
push edi
push str._d._d_c
push eax
call fcn.00405c70
add esp, 0x14
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xb4], eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
sete al
test al, al
je 0x411d3c
cmp dword [ebp - 0x118], 2
jne 0x411d3c
cmp dword [ebp - 0x124], 6
jne 0x411d3c
cmp dword [esi + 0xbc], 9
mov dword [esi + 0xb4], 0
ja 0x411cff
push 3
lea eax, [ebp - 0x13c]
push eax
lea ecx, [esi + 0x94]
call fcn.004137c0
mov dword [ebp - 4], 0
push 0x5b1a08
mov ecx, eax
mov dword [ebp - 0x12c], 1
call fcn.0040a7c0
test eax, eax
je 0x411cff
xor bl, bl
jmp 0x411d01
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x12c], 1
je 0x411d1c
lea ecx, [ebp - 0x13c]
call fcn.004017c0
test bl, bl
je 0x411d3c
cmp byte [esi + 0xc5], 0
je 0x411d3c
cmp byte [esi + 0xc4], 0
je 0x411d3c
mov dword [esi + 0xb4], 1
mov ecx, esi
call fcn.004128c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00547a0a
mov esp, ebp
pop ebp
ret
Function at 0x41c720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x41c74d
mov ecx, esi
call fcn.00401410
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x41c7b2
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x41c76a
push edi
mov ecx, esi
call fcn.00401530
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x41c780
xor ecx, ecx
jmp 0x41c792
push dword [eax - 8]
push eax
call fcn.00547e9c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41c7b2
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41c7b2
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
pop edi
xor edx, edx
mov ebx, 1
mov word [eax + ecx*2], dx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004017e0
int3

Function at 0x41ccf0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577d9c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5daf20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0x65
call fcn.00428595
mov dword [ebp - 4], 0
lea ecx, [edi + 0x98]
mov dword [edi], vtable.CsendminidmpDlg.0
call fcn.00405dd0
lea ecx, [edi + 0x194]
mov byte [ebp - 4], 1
call fcn.00405dd0
lea ecx, [edi + 0x290]
mov byte [ebp - 4], 2
call fcn.00405dd0
lea ecx, [edi + 0x38c]
mov byte [ebp - 4], 3
call fcn.00401880
lea ecx, [edi + 0x514]
mov byte [ebp - 4], 4
call fcn.004296bb
mov dword [edi + 0x514], 0x57cb1c
lea ecx, [edi + 0x588]
mov byte [ebp - 4], 5
call fcn.00405160
lea ecx, [edi + 0x6c0]
mov byte [ebp - 4], 6
call fcn.00405160
lea ecx, [edi + 0x7f8]
mov byte [ebp - 4], 7
call fcn.00405160
mov byte [ebp - 4], 8
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41cdd0
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x934], eax
mov byte [ebp - 4], 9
call fcn.00434157
call fcn.00434157
mov eax, dword [eax + 0xc]
push 1
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0xc8
mov dword [edi + 0x94], eax
mov word [edi + 0x930], 0
mov byte [edi + 0x932], 0
mov word [edi + 0x938], 0
mov dword [edi + 0x940], 0
call fcn.0042554a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x41ce44
mov ecx, eax
call fcn.0040a940
jmp 0x41ce46
xor eax, eax
mov byte [ebp - 4], 9
push 0x14
mov dword [edi + 0x94c], eax
call fcn.0042554a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x41ce74
push dword [edi + 0x94c]
mov ecx, eax
call fcn.0041f990
jmp 0x41ce76
xor eax, eax
mov dword [edi + 0x944], eax
mov dword [edi + 0x948], 0
mov dword [edi + 0x93c], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41f050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x578071
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x5daf20]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x944]
test ecx, ecx
jne 0x41f09d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x17c]
jmp 0x41f28a
lea eax, [esp + 0x14]
push eax
call fcn.0041fa60
lea eax, [esp + 0x18]
mov dword [esp + 0xf0], 0
mov ecx, dword [edi + 0x944]
push eax
call fcn.0041fa90
mov byte [esp + 0xf0], 1
mov eax, dword [edi + 0x944]
mov esi, dword [esp + 0x14]
cmp dword [eax + 4], 0
jl 0x41f20e
cmp dword [esi - 0xc], 0
je 0x41f20e
push str.followup
push esi
call fcn.00548857
add esp, 8
test eax, eax
jne 0x41f124
lea eax, [edi + 0x932]
push eax
push 0
mov ecx, edi
call fcn.0041ee30
mov byte [edi + 0x930], al
test al, al
je 0x41f240
mov byte [edi + 0x931], 1
jmp 0x41f240
push str.followup2
push esi
call fcn.00548857
add esp, 8
test eax, eax
jne 0x41f172
lea ebx, [edi + 0x932]
push ebx
push 1
mov ecx, edi
mov byte [ebx], al
call fcn.0041ee30
mov byte [edi + 0x930], al
test al, al
je 0x41f240
cmp byte [ebx], 0
mov byte [edi + 0x931], 1
je 0x41f240
mov ecx, edi
call fcn.0041efa0
jmp 0x41f240
push str.resendbig
lea ecx, [esp + 0x18]
call fcn.0040a7c0
test eax, eax
jne 0x41f1c1
lea ecx, [esp + 0x1c]
call fcn.0040a940
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xfc], 2
call fcn.00410c80
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf0], 1
call fcn.0040b9d0
mov esi, dword [esp + 0x14]
jmp 0x41f240
push str.browser
lea ecx, [esp + 0x18]
call fcn.0040a7c0
test eax, eax
jne 0x41f1ef
call fcn.00434157
mov eax, dword [eax + 4]
cmp byte [eax + 0x1f0], 0
je 0x41f236
lea ecx, [esp + 0x18]
call fcn.004211a0
jmp 0x41f236
push str.showresponse
lea ecx, [esp + 0x18]
call fcn.0040a7c0
test eax, eax
jne 0x41f240
push eax
push eax
push dword [esp + 0x20]
call fcn.00434cb2
jmp 0x41f240
call fcn.00434157
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1fc]
cmp dword [eax - 0xc], 0
je 0x41f236
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x17c]
mov byte [esp + 0xf0], 0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41f268
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0xf0], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41f28a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x420ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5783f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5daf20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov edi, ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
test esi, esi
jne 0x420b14
push 0x5aef08
jmp 0x420c39
mov edx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.004208b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x420c36
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffff
push dword [ebp + 0xc]
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x420c2f
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x420b6b
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
shr edx, 1
jns 0x420b90
push 0x80070057
call fcn.004017e0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x420bad
push edx
lea ecx, [ebp + 0x10]
call fcn.00401530
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0xffff
push dword [ebp + 0xc]
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push dword [esi - 8]
push esi
call fcn.00547e9c
add esp, 8
test eax, eax
js 0x420b86
cmp eax, dword [esi - 8]
jg 0x420b86
xor ecx, ecx
mov dword [esi - 0xc], eax
push ebx
mov word [esi + eax*2], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
push esi
call fcn.00401750
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420c3e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov ecx, edi
call fcn.004050a0
mov eax, edi
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 0x420f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
test edx, edx
je 0x420f99
mov esi, dword [ebp + 8]
test esi, esi
je 0x420f99
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edx
push SysReAllocStringLen
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420f99
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4211a0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x4211ab
xor al, al
ret
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
ret
Function at 0x422040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5daf20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edx, ecx
xor edi, edi
lea ecx, [edx + 0xfe4]
lea esi, [edi + 1]
mov ax, word [ecx]
add ax, di
add ax, ax
movzx edi, ax
mov word [ebp + esi*2 - 0x24], di
inc esi
lea ecx, [ecx + 2]
cmp esi, 0xf
jle 0x422062
movzx eax, word [edx + 0x1002]
dec eax
add eax, edi
cmp eax, 0x7fff
je 0x422097
mov dword [edx + 0x6afa4], str.inconsistent_bit_counts
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
js 0x4220d6
movzx edx, word [ebx + edi*4 + 2]
test edx, edx
je 0x4220d1
movzx eax, word [ebp + edx*2 - 0x24]
mov esi, eax
inc eax
mov word [ebp + edx*2 - 0x24], ax
xor eax, eax
mov ecx, esi
and ecx, 1
or eax, ecx
dec edx
shr esi, 1
add eax, eax
test edx, edx
jg 0x4220b8
shr eax, 1
mov word [ebx + edi*4], ax
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jle 0x4220a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00547a0a
mov esp, ebp
pop ebp
ret
Function at 0x423400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x423606
cmp dword [esi + 0x6af90], 3
jb 0x423478
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [edx + esi + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x4234b5
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x4234b5
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x42349f
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.004230e0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, esi
cmp edi, 3
jb 0x423586
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
call fcn.004228d0
sub dword [esi + 0x6af90], edi
add esp, 4
mov dword [ebp - 4], eax
cmp edi, dword [esi + 0x6af98]
ja 0x42354d
cmp dword [esi + 0x6af90], 3
jb 0x42354d
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [esi + edx + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec edi
jne 0x4234f3
mov eax, dword [ebp - 4]
jmp 0x4235a5
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
xor edi, edi
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x4235ab
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.004228d0
add esp, 4
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x4235e6
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4235c3
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4235c5
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.00422720
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4235f9
mov ecx, esi
call fcn.004232a0
cmp dword [esi + 0x6af90], 0
jne 0x423423
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42361a
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x42361c
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push 1
push eax
mov ecx, esi
call fcn.00422720
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4242f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4242fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4243c5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
add edx, 8
sub esi, 8
dec edi
jne 0x424310
pop edi
test esi, esi
je 0x4243ea
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b3c18]
lea edx, [edx + 1]
dec esi
jne 0x4243d0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x5b3c18]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5b3c18]
mov dword [edi + 8], eax
pop edi
pop esi
ret

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

Disassembly:
push ebx
mov ebx, ecx
push esi
movsx esi, dl
mov edx, dword [ebx]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x5b3c18]
xor eax, edx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
push edi
mov edi, dword [ebx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, edi
mov ecx, edi
and eax, 0xff
and ecx, 0xfffd
shr edi, 8
xor edi, dword [eax*4 + 0x5b3c18]
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov dword [ebx + 8], edi
shr eax, 8
pop edi
xor eax, esi
pop esi
pop ebx
ret
Function at 0x424620
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 ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x2d], 0
mov edi, dword [ebp + 8]
je 0x4246fc
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x424654
cmp dword [esi + 0x40], ebx
jae 0x424654
push eax
call fcn.00425580
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x42466c
lea eax, [ebx + ebx]
push eax
call fcn.00425577
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push ebx
push dword [esi + 0x3c]
call fcn.00547a19
xor edx, edx
add esp, 0x10
mov dword [ebp + 8], edx
test ebx, ebx
je 0x4246f9
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x5b3c18]
xor eax, ecx
mov dword [esi + 0x30], eax
movzx eax, al
add eax, dword [esi + 0x34]
mov edi, edx
imul eax, eax, 0x8088405
and edi, 0xfffd
or edi, 2
inc eax
mov dword [esi + 0x34], eax
mov ecx, edi
xor ecx, 1
shr eax, 0x18
imul ecx, edi
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x5b3c18]
shr ecx, 8
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
xor cl, bl
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x424683
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42473b
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x424721
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push ebx
push edi
add ecx, edx
push ebx
push ecx
call fcn.00547a19
add esp, 0x10
add dword [esi + 0x24], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x42475d
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8