joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4827b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x32014
call fcn.00493b10
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00488890
mov eax, dword [esp + 0x32028]
lea ecx, [esp + 0x20]
push eax
push 0x32000
push ecx
mov dword [esp + 0x18], 0x4ab504
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jle 0x482826
lea ebx, [esp + eax + 0x20]
mov al, byte [esp + 0x20]
test al, al
lea esi, [esp + 0x20]
je 0x482826
cmp esi, ebx
jae 0x482826
push esi
call fcn.00488540
mov edi, eax
push edi
push esi
call fcn.00488850
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.00488b20
mov al, byte [esi + edi + 1]
lea esi, [esi + edi + 1]
test al, al
jne 0x4827fa
mov esi, dword [esp + 0x1c]
shr esi, 2
shl esi, 2
lea edx, [esi + 8]
push edx
call fcn.00481430
mov edi, eax
push esi
mov dword [edi], 1
mov eax, dword [esp + 0x24]
shr eax, 2
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [edi + 8]
push eax
push ecx
call fcn.00486a90
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x4ab500
call fcn.00488a90
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x32014
ret

Function at 0x483100
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x483370
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x48337d
xor eax, eax
pop esi
ret
push esi
call fcn.00488540
add esp, 4
test eax, eax
jne 0x48338c
pop esi
ret
cmp eax, 1
jne 0x48339a
cmp byte [esi], 0x5c
jne 0x48339a
xor eax, eax
pop esi
ret
push esi
call fcn.00483120
add esp, 4
test eax, eax
je 0x4833ae
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x4833b0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4833da
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4833da
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x4855f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x48566f
push edi
call fcn.00488540
add esp, 4
test eax, eax
jbe 0x48566f
test esi, esi
je 0x48562d
cmp esi, 0xffffffff
je 0x48562d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x4856b1
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x48565b
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x48566f
jmp 0x48566a
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x48566f
mov ebp, 1
test esi, esi
je 0x4856b1
cmp esi, 0xffffffff
je 0x4856b1
test ebp, ebp
jne 0x4856e8
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x4856be
call edi
test eax, eax
je 0x4856b1
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x4856e8
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x485699
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x4856b1
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x4856e8
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x4856cb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.00488540
inc eax
push eax
call fcn.00481430
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x485a00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x485a19
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.00489a40
add esp, 4
test eax, eax
jne 0x485a2e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x485b6e
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x485a6c
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.00493245
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485b4e
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jle 0x485ab4
mov al, byte [esi]
cmp al, 0xd
je 0x485af6
cmp al, 0xa
je 0x485af6
inc ecx
inc esi
cmp ecx, edx
jl 0x485aa4
add ebp, edx
cmp edx, 0x1000
jl 0x485af8
push 0x1000
push ebx
call fcn.00493dac
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x485af8
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485b4e
jmp 0x485a9a
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.00481430
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x485b16
cmp al, 0xa
jne 0x485b1f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x485b1f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.00493630
push ebx
mov byte [edi + ebp], 0
call fcn.0049337f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0049337f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x485bfc
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jle 0x485bb7
mov cl, byte [ebp]
cmp cl, 0xd
je 0x485bb7
cmp cl, 0xa
je 0x485bb7
inc ebx
inc ebp
cmp ebx, eax
jl 0x485ba4
lea eax, [ebx + 1]
push eax
call fcn.00481430
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x485bd6
cmp al, 0xa
jne 0x485bdf
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x485bdf
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.00493630
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x485d50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x485d66
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.00489a40
add esp, 4
test eax, eax
jne 0x485d7d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x485e2d
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x485e95
cmp edi, ebx
jae 0x485e95
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x485e95
mov eax, dword [esp + 0x30]
test eax, eax
je 0x485e95
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x485e95
mov al, byte [esp + 0x24]
test al, al
je 0x485e8d
cmp al, 0x1a
jne 0x485e95
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x485e95
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.00489dc0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x485e95
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x485e95
mov eax, dword [esp + 0x30]
test eax, eax
je 0x485e95
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x485e95
mov al, byte [esp + 0x24]
test al, al
je 0x485e8d
cmp al, 0x1a
jne 0x485e95
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x485f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x485f83
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call fcn.00489a40
add esp, 4
test eax, eax
jne 0x485f95
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x48604a
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov ebp, ecx
jle 0x4860bd
lea edi, [esp + 0x30]
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, reloc.WS2_32.dll_connect
jne 0x485fdc
mov esi, dword [edi]
jmp 0x485ff0
push edi
call fcn.00489dd0
mov esi, eax
add esp, 4
test esi, esi
je 0x486032
mov ebx, 1
push esi
call fcn.00488540
add esp, 4
test eax, eax
jle 0x486019
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x486019
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x486026
push esi
call fcn.0049337f
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4860bd
mov eax, dword [esp + 0x20]
inc ebp
add edi, 0xc
cmp ebp, eax
jl 0x485fcc
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x4860bd
mov eax, dword [esp + 0x20]
mov ebp, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x4860bd
dec eax
lea edi, [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, reloc.WS2_32.dll_connect
jne 0x486077
mov esi, dword [edi]
jmp 0x48608b
push edi
call fcn.00489dd0
mov esi, eax
add esp, 4
test esi, esi
je 0x4860af
mov ebx, 1
push esi
call fcn.00488540
add esp, 4
test eax, eax
jle 0x4860a2
mov edx, dword [ebp]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x24]
test ebx, ebx
je 0x4860af
push esi
call fcn.0049337f
add esp, 4
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x20], eax
jne 0x486067
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x486130
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x48613e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00489a40
add esp, 4
test eax, eax
jne 0x486150
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x48616b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x486178
mov ecx, dword [esi + 4]
call fcn.00489dc0
pop esi
ret
Function at 0x486180
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x486193
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00489a40
add esp, 4
test eax, eax
jne 0x4861a5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x4861b4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x48620b
mov ebx, dword [ebx + 4]
push edi
call fcn.0049fbe5
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4861ee
push ebp
call fcn.0049fc0e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00488810
push ebp
mov esi, eax
call fcn.0049fc0e
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x48624d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00481430
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x48624a
push esi
call fcn.004814f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
not eax
je 0x48a733
mov ecx, dword [esp + 0xc]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ab5a8]
xor eax, edx
inc ecx
dec esi
jne 0x48a714
pop ebx
not eax
pop esi
ret

Function at 0x48acd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48aced
and eax, 0x10
test al, al
jne 0x48aced
mov eax, 1
ret
xor eax, eax
ret

Function at 0x48b140
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push 4
push eax
push 0xffffff7f
push 0xffff
push esi
mov byte [esp + 0x1f], 1
mov word [esp + 0x20], 0
mov word [esp + 0x22], 0
call edi
lea ecx, [esp + 0xb]
push 1
push ecx
push 8
push 0xffff
push esi
call edi
mov eax, 0xbb8
push 0
lea edx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
lea ecx, [esp + 0x24]
push 0xc
push ecx
push 0x98000004
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x44], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
lea edx, [esp + 0xb]
push 1
push edx
push 0xa
push 0
push esi
call edi
lea eax, [esp + 0xb]
push 1
push eax
push 0x20
push 0xffff
push esi
call edi
lea ecx, [esp + 0xb]
push 1
push ecx
push 1
push 0
push esi
call edi
lea edx, [esp + 0xb]
push 1
push edx
push 4
push 0xffff
push esi
call edi
pop edi
pop esi
add esp, 0x14
ret
Function at 0x48eea0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48eeab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x48efae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4ad354]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad354]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad354]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad354]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad354]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad354]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad354]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad354]
xor eax, edx
inc ecx
dec edi
jne 0x48eec6
pop edi
test esi, esi
je 0x48efd0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad354]
xor eax, edx
inc ecx
dec esi
jne 0x48efb2
pop esi
pop ebx
not eax
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x4ad354]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x4ad354]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x48f9e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x48fa21
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48fa16
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x48fa34
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x4906f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x49070c
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x49071d
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x49072b
push edi
call fcn.00490b60
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.004904f0
add esp, 0x10
test eax, eax
je 0x490753
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call fcn.00493245
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x490772
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call fcn.00493245
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x4907ab
push esi
call fcn.0049337f
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x4907f9
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0048f270
add esp, 4
test eax, eax
jne 0x4907f9
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x490826
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x490832
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x490873
mov al, byte [ebp]
test al, al
je 0x490873
push eax
push ebx
call fcn.0048efe0
add esp, 8
inc ebp
jne 0x49085f
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4913e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x491408
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x491408
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x4914e2
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x491428
cmp cl, 0x5c
jne 0x49142a
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x49141e
push esi
cmp eax, ebp
push edi
je 0x49146c
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.004913e0
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x491498
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x4914e2
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x4a2f33
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 0x4a2f75
call fcn.004a5cf7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a2f75
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a2f6c
xor eax, eax
jmp 0x4a2f7d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a2f83
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a628d
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 0x4a62bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a62d9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a61f3
jmp 0x4a62d9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a62d9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a61f3
test edi, edi
mov eax, edi
jne 0x4a62c3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8