joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4815e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x481602
cmp dword [edi + 0x3c], 0
jne 0x481602
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0048841a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0048162f
pop edi
pop esi
pop ebx
ret 8

Function at 0x482c37
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x482c6f
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.0048554b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00485523
jmp 0x482c7b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x484200
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 0x484242
call fcn.0048841a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x484242
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x484239
xor eax, eax
jmp 0x48424a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00484250
pop edi
pop esi
pop ebx
ret 4

Function at 0x488f31
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 0x488f5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488f7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00488e97
jmp 0x488f7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488f7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00488e97
test edi, edi
mov eax, edi
jne 0x488f67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4f0c10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xae000]
push edi
jmp 0x4f0c2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f0c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0c20
mov eax, 1
add ebx, ebx
jne 0x4f0c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f0c54
jne 0x4f0c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0c73
dec eax
add ebx, ebx
jne 0x4f0c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f0c38
add ebx, ebx
jne 0x4f0c6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f0cc5
xor ecx, ecx
sub eax, 3
jb 0x4f0c8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f0cfa
sar eax, 1
mov ebp, eax
jmp 0x4f0c96
add ebx, ebx
jne 0x4f0c96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0c64
inc ecx
add ebx, ebx
jne 0x4f0ca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0c64
add ebx, ebx
jne 0x4f0cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f0ca6
jne 0x4f0cc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f0ca6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f0ce4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f0cd6
jmp 0x4f0c26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f0ce4
add edi, ecx
jmp 0x4f0c26
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f0d02
cmp byte [edi], 0x11
jne 0x4f0d02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f0d07
lea edi, [esi + 0xec000]
mov eax, dword [edi]
or eax, eax
je 0x4f0d7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12f010]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12f164]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f0d34
mov ecx, edi
jns 0x4f0d63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12f168]
or eax, eax
je 0x4f0d79
mov dword [ebx], eax
add ebx, 4
jmp 0x4f0d51
call dword [esi + 0x12f178]
mov ebp, dword [esi + 0x12f16c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f0db3
sub esp, 0xffffff80
jmp 0x416310
Function at 0xc21cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xc52c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00c36cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xc21d8f
mov eax, 0xc4c894
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xc21d05
sub eax, edx
sar eax, 1
je 0xc21d8f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00c49234]
push 0xc4c894
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00c348ea
push 0xc4c8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00c34e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xc21d8f
push eax
push 1
push 0x200
push esi
call fcn.00c3512e
mov eax, dword [esp + 0x14]
push eax
call fcn.00c351c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00c348db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00c348db
add esp, 0x214
ret

Function at 0xc21db0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xc52c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00c36cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xc21eb5
mov eax, 0xc4c7e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xc21df5
sub eax, edx
sar eax, 1
je 0xc21eb5
cmp dword [0xc53fbc], 3
jne 0xc21e3c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.00c49214]
push 0xc4c8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00c348ea
add esp, 0xc
jmp 0xc21e4c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.00c49234]
push 0xc4c7e0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00c348ea
push 0xc4c8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00c34e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xc21eb5
push eax
push 1
push 0x200
push esi
call fcn.00c3512e
mov edx, dword [esp + 0x14]
push edx
call fcn.00c351c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00c348db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00c348db
add esp, 0x214
ret
Function at 0xc225c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00c349e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xc4e4b0]
fadd qword [0xc4e4c8]
call fcn.00c389e0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0xc226e0
call fcn.00c349e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xc4e4b0]
fmul qword [0xc4e4c0]
fadd qword [0xc4e4b8]
call fcn.00c389e0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0xc226c8
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0xc226b9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0xc226b0
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0xc22677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0xc22780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xc52c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00c36cc0
add esp, 0xc
cmp edi, esi
je 0xc22868
mov eax, 0xc4c790
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0xc227c5
sub eax, edx
sar eax, 1
je 0xc227ef
push 0xc4c924
lea edx, [esp + 8]
push 0xc4c790
push edx
call fcn.00c34e3b
add esp, 0xc
jmp 0xc2282a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00c49234]
push 0xc4c894
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00c348ea
push 0xc4c924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00c34e3b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0xc2284d
push eax
push 1
push 0x200
push edi
call fcn.00c35401
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00c351c2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00c348db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00c348db
add esp, 0x214
ret
Function at 0xc22880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0xc4c8b0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00c34e3b
add esp, 0xc
test eax, eax
je 0xc228a4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00c3550d
mov eax, dword [esp + 0x1c]
push eax
call fcn.00c3572f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00c3550d
lea ebp, [esi + 0x32]
push ebp
call fcn.00c357ec
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00c3512e
mov eax, dword [esp + 0x40]
push eax
call fcn.00c351c2
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00c22950
mov ecx, dword [esp + 0x4c]
push 0xc4c924
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00c34e3b
add esp, 0x40
test eax, eax
je 0xc22922
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00c35401
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00c351c2
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0xc24570
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00c39170
mov eax, dword [0xc52c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0xc493d4]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0xc245c8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00c348db
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0xc24607
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0xc24606
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00c35401
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0xc245d0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00c351c2
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00c348db
add esp, 0x100c
ret
Function at 0xc261b0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00c39170
mov eax, dword [0xc52c20]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0xc4c8b0
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00c34e3b
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0xc2621b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.00c348db
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00c3550d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00c3572f
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00c3550d
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00c3512e
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0xc262c6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00c26020
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00c3512e
mov esi, eax
add esp, 0x18
test esi, esi
ja 0xc26291
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00c260c0
mov edx, dword [esp + 0x10]
push edx
call fcn.00c351c2
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0xc261f4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00c348db
add esp, 0x1068
ret
Function at 0xc28080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0xc28087
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0xc28164
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 + 0xc4de80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xc4de80]
inc ecx
sub edx, 8
sub esi, 1
jne 0xc280a0
pop edi
test edx, edx
je 0xc2818b
jmp 0xc28170
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xc4de80]
inc ecx
sub edx, 1
jne 0xc28170
not eax
pop esi
ret

Function at 0xc28190
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 + 0xc4de80]
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 + 0xc4de80]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0xc4de80]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0xc4de80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0xc295e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0xc295fe
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0xc295f2
cmp dword [edi + 0x7c], ebx
je 0xc2960d
call fcn.00c299c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00c29350
add esp, 0xc
test eax, eax
je 0xc29634
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00c357ec
mov esi, eax
add esp, 4
cmp esi, ebx
je 0xc29672
push 0x4000
call fcn.00c357ec
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0xc2967f
push esi
call fcn.00c35d47
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0xc296c7
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00c284a0
test eax, eax
jne 0xc296c7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0xc296ee
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0xc296f4
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0xc29731
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0xc29731
call fcn.00c28190
add ebp, 1
jne 0xc29720
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x406a20
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406a62
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406a82
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040ab14
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406c78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409dfc
test esi, esi
jne 0x406cae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409f84
jmp 0x406ccc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406bbc
mov edi, eax
test esi, esi
je 0x406ccc
cmp dword [ebx], 0
je 0x406ccc
dec esi
jmp 0x406cb5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406d00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x6e4008], 0x8088405
inc edx
mov dword [ebx + 0x6e4008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x408b5c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408f40
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ce6
test edi, edi
je 0x408ce6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c26
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c01
cmp edi, 0xffffffff
je 0x408bc1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408bc1
mov byte [esp], 0
jmp 0x408ce6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408c01
test ebx, ebx
jne 0x408bf3
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408bf3
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ce6
lea eax, [esp + 0xc]
call fcn.0040883c
dec ebp
test ebp, ebp
jg 0x408ba6
cmp edi, 0xffffffff
je 0x408c26
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c24
mov byte [esp], 0
jmp 0x408ce6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408b6a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c26
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408d54
mov edx, eax
mov ebx, dword [0x6f98fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408c8a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408c88
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408c8a
xor edi, edi
cmp byte [esp], 0
je 0x408cb0
mov ebx, dword [esi]
test bl, 1
jne 0x408cc6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c90
mov byte [esp + 1], 1
jmp 0x408cc6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cb0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c3d
cmp byte [esp], 0
je 0x408ce6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409a8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6f905c], 0
je 0x409af3
cmp word [0x6f9348], 0xd7b2
jne 0x409ab5
cmp dword [0x6f9350], 0
jbe 0x409ab5
mov eax, 0x6f9344
call dword [0x6f9360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409b20
call fcn.0040a710
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6e4034], 0
jne 0x409b0f
push 0
push 0x6e49ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret