joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002adf4
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 0x1002ae91
push ebx
push esi
call fcn.1002adbd
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.1002ad51
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002ae3e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ae90
push edi
push eax
call fcn.100296f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002ae5e
call fcn.10029740
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ae8f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002ad51
add esp, 0x20
test eax, eax
jne 0x1002ae7d
push edi
call fcn.10029740
jmp 0x1002ae85
push ebx
call fcn.10029740
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 0x1002b0fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033420
push 0x10033418
push str.FlsAlloc
push 0x1f
call fcn.1002b01a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b132
push dword [ebp + 8]
mov ecx, esi
call dword [0x10031150]
call esi
jmp 0x1002b138
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002b17c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033430
push 0x10033428
push str.FlsGetValue
push 0x21
call fcn.1002b01a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b1b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10031150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002b1bb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033438
push 0x10033430
push str.FlsSetValue
push 0x22
call fcn.1002b01a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b1f5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10031150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10030700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003072d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003072d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4023ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x402449
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402449
cmp dword [ebp - 8], 0
je 0x402449
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x402449
test ebx, ebx
je 0x402449
push 0x46e6c0
call eax
call dword [ebp - 4]
mov ecx, edi
call fcn.00401f7b
push dword [ebp - 0x14]
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x402442
call ebx
call dword [ebp - 8]
mov eax, esi
jmp 0x40244c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4027f7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x46eb00
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402826
xor eax, eax
jmp 0x40286f
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
push esi
call ebx
xor eax, eax
test edi, edi
je 0x40286e
push eax
push eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call ebx
mov eax, dword [ebp - 4]
mov dword [0x46e9d4], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x46e9d4]
mov eax, dword [0x46e954]
push esi
lea ecx, [edx + eax]
sub edx, dword [ecx - 6]
sub edx, dword [ecx - 0xa]
and dword [0x46e9bc], 0
sub edx, 0x22
and dword [0x46fc84], 0
cmp dword [ecx - 0x16], 0x6054b50
lea esi, [eax + edx]
je 0x40290e
xor eax, eax
jmp 0x402a0d
cmp dword [esi], 0x1234567b
je 0x402927
mov edx, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
xor ecx, ecx
call fcn.004025ec
jmp 0x402a0d
test edx, edx
js 0x402907
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40293e
mov eax, esi
sub eax, dword [esi + 4]
sub eax, ecx
mov dword [0x46fc88], eax
push ebx
push edi
lea edi, [esi + 4]
sub edx, dword [edi]
sub edx, ecx
mov dword [ebp - 0x10c], edi
mov dword [0x46e6a4], edx
sub esi, dword [edi]
push 0x104
call fcn.004350fa
mov ebx, eax
pop ecx
test ebx, ebx
je 0x402a09
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4029f7
push ebx
push 0
push 0x466160
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4029f7
xor eax, eax
mov edx, ebx
push eax
push eax
push eax
push dword [edi]
push eax
push 2
pop ecx
call fcn.004010ac
mov edi, eax
add esp, 0x14
test edi, edi
je 0x402a09
mov eax, dword [ebp - 0x10c]
push dword [eax]
push esi
push edi
call fcn.00422980
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029cb
sub ecx, edx
lea eax, [esi + 1]
add eax, ecx
push eax
call fcn.0043a68e
pop ecx
push edi
mov dword [0x46e9bc], eax
mov dword [0x46fc84], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402a0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Could_not_create_temporary_file
mov ecx, eax
call fcn.004025ec
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x12c2350
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31d000]
push edi
or ebp, 0xffffffff
jmp 0x12c2372
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12c2379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12c2368
mov eax, 1
add ebx, ebx
jne 0x12c238b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12c239c
jne 0x12c23bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12c23bb
dec eax
add ebx, ebx
jne 0x12c23a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12c2380
add ebx, ebx
jne 0x12c23b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12c240d
xor ecx, ecx
sub eax, 3
jb 0x12c23d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12c2442
sar eax, 1
mov ebp, eax
jmp 0x12c23de
add ebx, ebx
jne 0x12c23de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12c23ac
inc ecx
add ebx, ebx
jne 0x12c23ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12c23ac
add ebx, ebx
jne 0x12c23f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12c23ee
jne 0x12c240a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12c23ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12c242c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12c241e
jmp 0x12c236e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12c242c
add edi, ecx
jmp 0x12c236e
pop esi
mov edi, esi
mov ecx, 0x14f10
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12c244a
cmp byte [edi], 0x2a
jne 0x12c244a
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 0x12c244f
lea edi, [esi + 0xe37000]
mov eax, dword [edi]
or eax, eax
je 0x12c24c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xed3548]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xed364c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12c247c
mov ecx, edi
jns 0x12c24ab
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 + 0xed3650]
or eax, eax
je 0x12c24c1
mov dword [ebx], eax
add ebx, 4
jmp 0x12c2499
call dword [esi + 0xed3658]
mov ebp, dword [esi + 0xed3654]
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 0x12c24fb
sub esp, 0xffffff80
jmp 0x6ef28f
Function at 0x4037f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403842
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [resource.1], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40e3f8], eax
mov eax, dword [esp + 4]
jmp 0x40384a
push dword [esp]
call fcn.0040aca0
add esp, 8
ret 8
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4aea055d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x54246685
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xb9de3c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100200f8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10027078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
mov esi, edx
mov edx, dword [esi]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 4]
mov ecx, edx
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
sub eax, edx
mov dword [ebp - 0x84], 0x67452301
mov dword [ebp - 0x80], 0xefcdab89
mov dword [ebp - 0x7c], 0x98badcfe
mov dword [ebp - 0x78], 0x10325476
je 0xb9deba
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00ba672c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00ba67cc
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x24]
mov ebx, eax
mov ecx, 0x10
sub edx, ebx
lea esp, [esp]
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0xb9dfa7
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0xb9dedc
push edi
mov ebx, 0x1002aab8
call fcn.00ba0b0c
lea ecx, [ebp - 0x30]
push ecx
call fcn.00b9d9cc
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov ebx, 0x10
cmp dword [ebp - 0x1c], ebx
jae 0xb9df20
lea eax, [ebp - 0x30]
push 0
push eax
call dword [0x1002ab8c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edi, eax
cmp dword [ebp - 0x1c], ebx
jb 0xb9df46
mov edx, dword [ebp - 0x30]
push edx
call fcn.00ba975b
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
test edi, edi
je 0xb9dfa7
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, ecx
sub eax, edx
mov esi, edx
sub esi, ecx
neg eax
sbb eax, eax
and eax, ecx
push esi
push eax
push edi
call dword [0x1002ab98]
cmp eax, esi
push edi
sete bl
call dword [0x1002ab9c]
add esp, 0x10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00ba8e9a
mov esp, ebp
pop ebp
ret 4
xor al, al
jmp 0xb9df89
Function at 0xb9fffc
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002055b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10027078]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x10027078]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0xa0], esi
cmp edi, esi
je 0xba0090
cmp eax, esi
je 0xba0090
mov eax, edi
lea esi, [esp + 0x10]
call fcn.00ba173c
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, esi
sub eax, ebx
neg eax
sbb eax, eax
push edi
and eax, esi
push ecx
push eax
call fcn.00bb2f1c
add esp, 0xc
mov eax, dword [0x1002aabc]
xor ecx, ecx
dec eax
mov dword [0x1002aabc], ecx
je 0xba0201
dec eax
je 0xba0195
dec eax
jne 0xba0243
mov eax, ebx
sub eax, esi
cmp eax, 0x10
ja 0xba00d5
push 1
mov dword [0x1002abdc], 0xf
call dword [0x1002ab7c]
add esp, 4
jmp 0xba0243
lea edi, [eax - 0x10]
mov eax, esi
sub eax, ebx
neg eax
sbb eax, eax
and eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
test edi, edi
je 0xba011a
push eax
mov eax, edi
lea ecx, [esp + 0x28]
call fcn.00ba672c
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x28]
call fcn.00ba67cc
lea eax, [esp + 0x80]
add edi, esi
mov edx, eax
mov ecx, 0x10
sub edi, edx
mov edx, dword [eax + edi]
cmp edx, dword [eax]
jne 0xba00bb
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0xba013d
mov ecx, dword [0x1002aac4]
mov eax, dword [ecx]
cmp eax, ecx
je 0xba00bb
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0xc]
je 0xba0176
mov eax, dword [eax]
cmp eax, ecx
jne 0xba0163
jmp 0xba00bb
add eax, 8
je 0xba00bb
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
call fcn.00b9d2dc
call fcn.00ba048c
jmp 0xba0243
mov eax, 0x1002aac4
call fcn.00b9f1ec
lea ecx, [esp + 0x10]
mov edi, 0x1002aac4
call fcn.00b9f27c
test al, al
je 0xba01ea
mov eax, dword [0x1002aac0]
cmp eax, 0xffffffff
je 0xba01e3
cmp dword [0x1002aae8], eax
jae 0xba01e3
push 2
mov dword [0x1002abdc], 0x12
call dword [0x1002ab7c]
add esp, 4
lea esi, [esp + 0x10]
call fcn.00b9dc2c
jmp 0xba0250
call fcn.00ba048c
jmp 0xba023f
push 1
mov dword [0x1002abdc], 0xf
call dword [0x1002ab7c]
add esp, 4
jmp 0xba023f
mov eax, 0x1002aac4
call fcn.00b9f1ec
lea ecx, [esp + 0x10]
mov edi, 0x1002aac4
call fcn.00b9f27c
test al, al
je 0xba0228
mov edx, dword [0x1002aae8]
push edx
push 0
jmp 0xba0236
push 0xffffffffffffffff
mov dword [0x1002abdc], 0xf
push 1
call dword [0x1002ab78]
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0xba0250
push esi
call fcn.00ba975b
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00ba8e9a
mov esp, ebp
pop ebp
ret 4
Function at 0xba38cc
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f96b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10027078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x100241ec
call fcn.00bb626d
push 4
mov dword [ebp - 4], 0
call fcn.00ba9803
mov edi, eax
add esp, 4
test edi, edi
je 0xba3948
call fcn.00bb6068
mov dword [edi], eax
call fcn.00bb5e27
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00bb622e
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0xba393e
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00bb6256
jmp 0xba394a
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x665008], 0x8088405
inc edx
mov dword [ebx + 0x665008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0xbf9bf4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
add esp, 0xffffffc8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov edi, dword [esp + 4]
test edi, edi
jle 0xbf9d6f
mov eax, 0x432c98
mov dword [esp + 8], eax
movzx eax, word [esi]
mov edx, dword [esp + 8]
cmp ax, 0xff
ja 0xbf9c2a
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0xc], al
cmp byte [esp + 0xc], 0
je 0xbf9c3c
mov al, 1
jmp 0xbf9c64
mov eax, 0x432cb8
mov dword [esp + 0x10], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x10]
cmp ax, 0xff
ja 0xbf9c58
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x14]
test al, al
je 0xbf9c6c
mov dl, 1
jmp 0xbf9cd0
mov eax, 0x432c98
mov dword [esp + 0x18], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x18]
cmp ax, 0xff
ja 0xbf9c89
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x1c], al
cmp byte [esp + 0x1c], 0
je 0xbf9c9e
mov byte [esp + 0x25], 1
jmp 0xbf9ccb
mov eax, 0x432cb8
mov dword [esp + 0x20], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x20]
cmp ax, 0xff
ja 0xbf9cbb
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x24], al
movzx eax, byte [esp + 0x24]
mov byte [esp + 0x25], al
movzx edx, byte [esp + 0x25]
test dl, dl
jne 0xbf9d6f
mov eax, 0x432cd8
mov dword [esp + 0x28], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x28]
cmp ax, 0xff
ja 0xbf9cf4
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x2c], al
cmp byte [esp + 0x2c], 0
jne 0xbf9d09
mov byte [esp + 0x35], 1
jmp 0xbf9d38
mov eax, 0x432cd8
mov dword [esp + 0x30], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x30]
cmp ax, 0xff
ja 0xbf9d26
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x34], al
movzx eax, byte [esp + 0x34]
xor al, 1
mov byte [esp + 0x35], al
cmp byte [esp + 0x35], 0
jne 0xbf9d6f
movzx eax, byte [esi]
movzx eax, word [eax*2 + 0x667020]
shl eax, 4
movzx edx, byte [esi + 2]
movzx edx, word [edx*2 + 0x667020]
add al, dl
mov edx, dword [esp]
mov byte [edx], al
inc dword [esp]
add esi, 4
dec edi
test edi, edi
jg 0xbf9c0e
mov eax, dword [esp + 4]
sub eax, edi
add esp, 0x38
pop edi
pop esi
ret
Function at 0xbff4a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0xbff540
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
jne 0xbff540
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0x4550
jne 0xbff540
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x14]
cmp eax, 0xe0
jne 0xbff540
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x18], 0x10b
jne 0xbff540
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
pop ecx
pop ebp
ret

Function at 0xc00ab4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call fcn.00bd2d90
test eax, eax
jne 0xc00b1c
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0xc00b1c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0xc00b1c
mov eax, dword [ebp - 4]
call fcn.00bffee4
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3c]
call fcn.00bfff04
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call fcn.00bd2d90
test eax, eax
jne 0xc00b17
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0xc00b1c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0xc00b24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call fcn.00bd2d90
test eax, eax
jne 0xc00b8c
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0xc00b8c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0xc00b8c
mov eax, dword [ebp - 4]
call fcn.00bffee4
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3c]
call fcn.00bfff04
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call fcn.00bd2d90
test eax, eax
jne 0xc00b87
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0xc00b8c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret