joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467d60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x467da9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x468220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ed00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00467dd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00467e50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00467e50
lea ecx, [esi + 0xc]
call fcn.0047bd69
lea ecx, [esi + 0x10]
call fcn.0047bd69
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004693e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004693e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004693e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047bdde
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047bdde
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47e1eb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47e223
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047c239
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047c211
jmp 0x47e22f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47fa65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47faa7
call fcn.00486237
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47faa7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47fa9e
xor eax, eax
jmp 0x47faaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047fab5
pop edi
pop esi
pop ebx
ret 4

Function at 0x486767
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x486795
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4867b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004866cd
jmp 0x4867b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4867b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004866cd
test edi, edi
mov eax, edi
jne 0x48679d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x48904f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x489077
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x489088
push 2
call edi
test ax, ax
jge 0x489088
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0047d820
cmp dword [esi + 0x30], ebx
jne 0x489162
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0047d820
cmp eax, dword [esp + 0x34]
jne 0x489162
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4890fe
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x489143
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x489162
cmp eax, 0x205
je 0x489162
cmp eax, 0x201
je 0x489162
cmp eax, 0x204
je 0x489162
cmp eax, ebx
jne 0x489129
cmp dword [esp + 0x1c], 0x1b
je 0x489162
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x4fc5ac]
jbe 0x489158
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4890bb
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x41903a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418eab

Function at 0x419434
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004075b0
mov eax, dword [0x47bb00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00416f05
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419476
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4195d2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004069e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47d6b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a42b
mov ecx, dword [esi*4 + 0x47d6b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4195cb
cmp eax, dword [edi + ecx + 0x24]
jne 0x4195cb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4195cb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a42b
add esp, 0x14
test edx, edx
jl 0x4195cb
jg 0x419541
test eax, eax
jb 0x4195cb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4195cb
jl 0x41955b
cmp dword [ebp - 0x1008], eax
ja 0x4195cb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419579
test ebx, ebx
je 0x4195b2
cmp ecx, edi
jae 0x4195b2
mov al, byte [ecx]
cmp al, 0xd
jne 0x419593
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41959f
cmp byte [ecx + 1], 0xa
jne 0x41959f
inc ecx
jmp 0x41959f
movzx eax, al
movsx eax, byte [eax + 0x47bdc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419579
cmp edx, ebx
jne 0x419579
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4195d0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040690c
leave
ret
Function at 0x4198c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47d6b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419909
cmp byte [ebx], 0xa
jne 0x419909
or byte [eax + edi + 0x28], 4
jmp 0x41990e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419a0c
mov al, byte [edx]
cmp al, 0x1a
je 0x4199ee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41993d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419962
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41996c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41991f
jmp 0x419a0c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4199e9
cmp dword [ebp - 0xc], 0
je 0x4199e9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d6b8]
test byte [eax + edi + 0x28], 0x48
je 0x4199c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4199ae
mov byte [esi], dl
jmp 0x4199bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d6b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419a0c
cmp byte [ebp - 1], 0xa
jne 0x4199d2
cmp esi, ebx
jne 0x4199d2
mov byte [esi], 0xa
jmp 0x419a0b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a449
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419a0c
mov byte [esi], 0xd
jmp 0x419a0b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d6b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419a08
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419a0c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419a15
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47d6b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419a58
cmp word [esi], dx
jne 0x419a58
or byte [edi + eax + 0x28], 4
jmp 0x419a5d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419bb0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419b90
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419a9f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419ad5
cmp eax, edx
jae 0x419ae1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419a77
jmp 0x419bb0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419b8c
cmp dword [ebp - 0x14], 0
je 0x419b8c
mov eax, dword [ebx*4 + 0x47d6b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419b64
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419b2d
mov word [esi], cx
jmp 0x419b60
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d6b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d6b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d6b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419bb0
pop ebx
cmp word [ebp - 4], bx
jne 0x419b75
cmp esi, dword [ebp + 0xc]
jne 0x419b75
mov word [esi], bx
jmp 0x419bad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a449
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419bb0
push 0xd
jmp 0x419ba9
mov ecx, dword [ebx*4 + 0x47d6b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ba7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419bb0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b9a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ba44
push ebx
push esi
call fcn.0041b970
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a5f5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b9f1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ba43
push edi
push eax
call fcn.004160d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ba11
call fcn.00415396
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ba42
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a5f5
add esp, 0x20
test eax, eax
jne 0x41ba30
push edi
call fcn.00415396
jmp 0x41ba38
push ebx
call fcn.00415396
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x422c20
Capabilities:
Parse pe header

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

Function at 0x424264
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x47bb00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jbe 0x424314
push ebx
mov ebx, 0x47cd28
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
push str.Open_Cards
push ebx
mov byte [edi + esi], al
call fcn.004010d0
push eax
call fcn.00401ebd
mov al, byte [edi + esi]
add esp, 0xc
xor al, 0x74
mov ecx, ebx
add al, 0x59
mov byte [edi + esi], al
push 0x6f
call fcn.0040262c
push eax
call fcn.00401ebd
mov al, byte [edi + esi]
sub al, 0xb
mov dword [esp], str.Taste
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [edi + esi], al
call fcn.004042b2
lea ecx, [ebp - 0x1c]
mov dword [esp], 0x4253a4
call fcn.00402199
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040beae
xor byte [edi + esi], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040334d
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x42428a
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040690c
leave
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x402c00
pop dword [ebp - 0x38]
mov eax, 0x5748cb7f
add eax, 0xa8f76081
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x2637a9e6
sub dword [ebp - 0x48], 0xd7e5649b
mov dword [ebp - 0x44], 0x789b14d4
add dword [ebp - 0x44], 0xb9983771
mov dword [ebp - 0x40], 0xabf3801a
add dword [ebp - 0x40], 0xa058c414
mov dword [ebp - 0x3c], 0x41118eb6
sub dword [ebp - 0x3c], 0x41118eb6
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xd4b3e356
sub dword [ebp - 0x48], 0x60417a00
mov dword [ebp - 0x44], 0xf3313a5d
add dword [ebp - 0x44], 0x4e3b2718
mov dword [ebp - 0x40], 0x25323ecd
sub dword [ebp - 0x40], 0xc1c2d261
mov dword [ebp - 0x3c], 0x45c834d5
sub dword [ebp - 0x3c], 0x45c834d5
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3c9ca
push 0
call eax
mov ecx, 0x5fb1
mov edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x38]
mov esi, 0x5cb00e62
sub esi, 0x3595da1c
mov dword [ebp - 0x2c], 0x985b661f
mov ebx, dword [edx]
sub dword [ebp - 8], 0xd417ff98
xor ebx, esi
mov dword [ebp - 0x14], 0xc760aeb
mov dword [edi], ebx
xor dword [ebp - 0x24], esi
add edi, 4
add edx, 0xbe44fab9
sub edx, 0xbe44fab5
loop 0x402d0c
add eax, 0xacc9513c
sub eax, 0xacc7dfa5
xor ebx, ebx
add ebx, eax
add eax, 0x4f8a52f2
sub eax, 0x4f8a52ed
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x403216
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40325c
sub ebx, 0x4296a0
mov ax, word [ebx + edi*2 + 0x4296a0]
mov ecx, esi
xor ax, word [edi*2 + 0x4296a0]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40323a
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403264
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [esp + 0x10], ebx
jle 0x4032a4
sub edi, 0x429680
mov al, byte [edi + ebx + 0x429680]
mov ecx, esi
xor al, byte [ebx + 0x429680]
movzx eax, al
push eax
call fcn.00404279
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x403285
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x404972
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x45f0d8], ebx
jne 0x4049b8
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x404999
shr eax, 1
xor eax, 0xedb88320
jmp 0x40499b
shr eax, 1
dec edx
jne 0x40498c
mov dword [ecx*4 + 0x4612a0], eax
inc ecx
cmp ecx, 0x100
jl 0x404987
mov dword [0x45f0d8], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4049ed
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4612a0]
inc ebx
cmp ebx, esi
jb 0x4049d3
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405158
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40519e
sub ebx, str._Mo
mov ax, word [ebx + edi*2 + str._Mo]
mov ecx, esi
xor ax, word [edi*2 + str._Mo]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40517c
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405c3d
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.004018de
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.00407e37
lea ecx, [esp + 0x40]
call fcn.00407ec3
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00401b9c
inc esi
dec edi
jne 0x405cbd
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0040198d
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.00402572
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401e61
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x408add
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408b23
sub ebx, 0x429740
mov ax, word [ebx + edi*2 + 0x429740]
mov ecx, esi
xor ax, word [edi*2 + 0x429740]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408b01
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x408b2b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408b71
sub ebx, 0x4297a0
mov ax, word [ebx + edi*2 + 0x4297a0]
mov ecx, esi
xor ax, word [edi*2 + 0x4297a0]
movzx eax, ax
push eax
call fcn.00401b9c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408b4f
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x40ba1c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40ba27
xor eax, eax
jmp 0x40baff
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40bae0
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
dec edi
jne 0x40ba43
pop edi
test esi, esi
je 0x40baf9
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42a920]
inc edx
dec esi
jne 0x40bae4
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

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

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