joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9a6120
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x9ee230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9a61b1
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.009a6090
mov ecx, esi
push 8
push ecx
call fcn.009ab7c0
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x9a61c2
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00953530
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00953530
mov esp, ebp
pop ebp
ret

Function at 0x9a7c90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x9a7cc3
push 0x2e
push esi
call fcn.00953640
add esp, 8
test eax, eax
je 0x9a7cc1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x9ab810
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
push esi
mov dword [esi], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9ab849
mov eax, dword [esi]
push edi
push 0
push 0
push 0x8002
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
ret
Function at 0x9accd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x9ef33c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x9accfb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x9acd42
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x9acd45
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x9acda6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x9acd70
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x9acddf
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x9e2f3a
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x9e2f3b
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x9acdb0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x9aceb0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9acee3
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x9af075
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9af09c
call fcn.00951578
mov dword [eax], esi
call fcn.00951565
push 0x16
pop esi
mov dword [eax], esi
call fcn.009521ba
mov eax, esi
jmp 0x9af0f1
test dword [ebp + 0xc], 0xfffffff9
jne 0x9af082
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9af0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0095158b
pop ecx
call fcn.00951565
mov eax, dword [eax]
jmp 0x9af0f1
test al, 0x10
jne 0x9af0ef
test al, 1
je 0x9af0ef
test byte [ebp + 0xc], 2
je 0x9af0ef
call fcn.00951578
mov dword [eax], 5
call fcn.00951565
mov dword [eax], 0xd
jmp 0x9af0c0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401040
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x61232e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.005ed1b0
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.005ed1b0
lea ebx, [esi + 0x18]
mov ecx, ebx
mov byte [esp + 0x20], 1
call fcn.005ed1b0
lea ebp, [esi + 0x24]
mov ecx, ebp
mov byte [esp + 0x20], 2
call fcn.005ed1b0
lea ecx, [esi + 0x30]
mov byte [esp + 0x20], 3
call fcn.005ed1b0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x20], 4
call fcn.005ed1b0
lea ecx, [esi + 0x48]
mov byte [esp + 0x20], 5
call fcn.005ed1b0
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 6
call fcn.005ed1b0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x20], 7
call fcn.005ed1b0
lea ecx, [esi + 0x88]
mov byte [esp + 0x20], 8
call fcn.005ed1b0
push 0x633c9c
mov ecx, esi
mov byte [esp + 0x24], 9
call fcn.005edbf0
push 0x633c9c
mov ecx, edi
call fcn.005edbf0
push 0x633c9c
mov ecx, ebx
call fcn.005edbf0
push 0x633c9c
mov ecx, ebp
call fcn.005edbf0
push 0x633c9c
lea ecx, [esi + 0x30]
call fcn.005edbf0
push 0x633c9c
lea ecx, [esi + 0x3c]
call fcn.005edbf0
push 0x633c9c
lea ecx, [esi + 0x48]
call fcn.005edbf0
fld dword [0x633c98]
xor eax, eax
fstp dword [esi + 0x68]
push 0x633c9c
lea ecx, [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x6c], eax
call fcn.005edbf0
push 0x633c9c
lea ecx, [esi + 0x7c]
call fcn.005edbf0
push 0x633c9c
lea ecx, [esi + 0x88]
call fcn.005edbf0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4011b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x6123b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x88]
mov dword [esp + 0x14], 8
call fcn.005ed430
lea ecx, [esi + 0x7c]
mov byte [esp + 0x14], 7
call fcn.005ed430
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 6
call fcn.005ed430
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 5
call fcn.005ed430
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 4
call fcn.005ed430
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call fcn.005ed430
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call fcn.005ed430
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call fcn.005ed430
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 0
call fcn.005ed430
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005ed430
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x402c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6125d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call fcn.00517a80
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], edi
jle 0x402d54
mov eax, dword [ebx + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x402c8c
push edi
mov ecx, ebx
call fcn.005f3a10
dec edi
jmp 0x402d4b
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov ecx, esi
cmp eax, 0x1b
je 0x402cb2
mov eax, dword [edx]
push 1
call eax
push edi
mov ecx, ebx
call fcn.005f3a10
dec edi
jmp 0x402d4b
mov eax, dword [edx + 0x78]
push 0xff
call eax
push 1
mov ecx, esi
test eax, eax
jne 0x402cd5
mov edx, dword [esi]
mov eax, dword [edx]
call eax
push edi
mov ecx, ebx
call fcn.005f3a10
dec edi
jmp 0x402d4b
call fcn.005413e0
test eax, eax
je 0x402d4b
lea ecx, [esp + 0x20]
call fcn.00517a80
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 1
call fcn.00541c40
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jle 0x402d2a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea eax, [edx + ebp*4]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], eax
call fcn.005f3cc0
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
inc ebp
mov dword [eax], ecx
cmp ebp, dword [esp + 0x20]
jl 0x402d02
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push edi
mov ecx, ebx
call fcn.005f3a10
lea ecx, [esp + 0x20]
dec edi
mov byte [esp + 0x34], 0
call fcn.00405850
inc edi
cmp edi, dword [ebx]
jl 0x402c74
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x402d7c
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx]
lea edi, [ecx + esi*4]
push edx
mov ecx, ebx
call fcn.005f3cc0
mov ecx, dword [edi]
inc esi
mov dword [eax], ecx
cmp esi, dword [esp + 0x14]
jl 0x402d60
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.00405850
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x406110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61692b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0
call fcn.005ed430
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.005ed430
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4063b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x612adb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
lea edx, [edi + 8]
mov dword [esi + 4], ecx
push edx
lea ecx, [esi + 8]
call fcn.005edb30
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [edi + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov cx, word [edi + 0x24]
mov word [esi + 0x24], cx
mov dx, word [edi + 0x26]
mov word [esi + 0x26], dx
mov ax, word [edi + 0x28]
mov word [esi + 0x28], ax
movzx ecx, byte [edi + 0x2a]
mov byte [esi + 0x2a], cl
mov dl, byte [edi + 0x2b]
mov byte [esi + 0x2b], dl
movzx eax, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
movzx ecx, byte [edi + 0x2d]
lea edx, [edi + 0x30]
mov byte [esi + 0x2d], cl
push edx
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], 0
call fcn.005edb30
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
fld dword [edi + 0x48]
fstp dword [esi + 0x48]
fld dword [edi + 0x4c]
fstp dword [esi + 0x4c]
movzx eax, byte [edi + 0x50]
mov byte [esi + 0x50], al
movzx ecx, byte [edi + 0x51]
mov byte [esi + 0x51], cl
mov edx, dword [edi + 0x54]
mov dword [esi + 0x54], edx
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x41bad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x614493
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
call fcn.0051af70
xor ebx, ebx
push 0x1c
mov dword [esp + 0x40], ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
mov byte [esp + 0x3c], 1
cmp esi, ebx
je 0x41bb35
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [esi], vtable.BMB2DGeometry.0
jmp 0x41bb37
xor esi, esi
fldz
push 2
mov ecx, esi
fstp dword [esi + 0xc]
mov byte [esp + 0x40], bl
mov byte [esi + 8], bl
mov dword [esi + 0x10], 2
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::AllocateGeUnitArray_int_]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00585d70
mov edx, dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], edx
call fcn.00585d70
mov ecx, dword [eax]
lea edx, [esp + 0x48]
mov dword [esp + 0x10], ecx
push edx
mov ecx, edi
call fcn.0042afc0
push ecx
lea eax, [esp + 0x14]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042afc0
push ecx
fstp dword [esp]
push 7
push ebx
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
mov ecx, esi
call ebx
fldz
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [ecx + ecx]
fstp dword [esp]
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
mov dword [esp + 0x50], edx
call fcn.0042afc0
push ecx
fstp dword [esp]
push 1
push 1
mov ecx, esi
call ebx
mov ecx, dword [esp + 0x44]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElement::Add2DShape_class_BMB2DGeometry__]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0051afa0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
Function at 0x41bc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6144c3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x28]
call fcn.00520c30
xor ebx, ebx
push 0x1c
mov dword [esp + 0x44], ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
mov byte [esp + 0x40], 1
cmp esi, ebx
je 0x41bc75
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [esi], vtable.BMB2DGeometry.0
jmp 0x41bc77
xor esi, esi
fldz
push 2
mov ecx, esi
fstp dword [esi + 0xc]
mov byte [esp + 0x44], bl
mov byte [esi + 8], 6
mov dword [esi + 0x10], 2
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::AllocateGeUnitArray_int_]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00585d70
mov edx, dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], edx
call fcn.00585d70
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], ecx
push edx
mov ecx, edi
call fcn.0042afc0
push ecx
lea eax, [esp + 0x14]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042afc0
push ecx
fstp dword [esp]
push 7
push ebx
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
mov ecx, esi
call ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea edx, [ecx + ecx]
lea ecx, [eax + eax]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], ecx
push edx
mov ecx, edi
call fcn.0042afc0
push ecx
lea eax, [esp + 0x14]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042afc0
push ecx
fstp dword [esp]
push 1
push 1
mov ecx, esi
call ebx
mov ecx, dword [esp + 0x48]
push esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElement::Add2DShape_class_BMB2DGeometry__]
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.00520c60
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 8
Function at 0x41d300
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x61481a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.005ed1b0
lea ecx, [esi + 0xc]
mov dword [esp + 0x1c], 0
call fcn.005ed1b0
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 1
call fcn.005ed1b0
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 2
call fcn.005ed1b0
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 3
call fcn.005ed1b0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 4
call fcn.005ed1b0
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 5
call fcn.005ed1b0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 6
call fcn.005ed1b0
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 7
call fcn.005ed1b0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 8
call fcn.005ed1b0
lea ebx, [esi + 0x78]
mov ecx, ebx
mov byte [esp + 0x1c], 9
call fcn.005ed1b0
lea ecx, [esi + 0x84]
mov byte [esp + 0x1c], 0xa
call fcn.005ed1b0
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 0xb
call fcn.005ed1b0
lea edi, [esi + 0x9c]
mov ecx, edi
mov byte [esp + 0x1c], 0xc
call fcn.005f3af0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x1c], 0xd
call fcn.005ed1b0
lea ecx, [esi + 0xb8]
mov byte [esp + 0x1c], 0xe
call fcn.005f3af0
lea ecx, [esi + 0xd0]
mov byte [esp + 0x1c], 0xf
call fcn.005ed1b0
push 0x633c9c
mov ecx, ebx
mov byte [esp + 0x20], 0x10
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
call fcn.005edbf0
push 0
mov ecx, edi
call fcn.005ee750
mov dword [edi], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x41d470
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x6148fc
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0xd0]
mov dword [esp + 0x14], 0xf
call fcn.005ed430
lea ecx, [esi + 0xb8]
mov byte [esp + 0x14], 0xe
call fcn.005ee6d0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x14], 0xd
call fcn.005ed430
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 0xc
call fcn.005ee6d0
lea ecx, [esi + 0x90]
mov byte [esp + 0x14], 0xb
call fcn.005ed430
lea ecx, [esi + 0x84]
mov byte [esp + 0x14], 0xa
call fcn.005ed430
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 9
call fcn.005ed430
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 8
call fcn.005ed430
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 7
call fcn.005ed430
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 6
call fcn.005ed430
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 5
call fcn.005ed430
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 4
call fcn.005ed430
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call fcn.005ed430
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call fcn.005ed430
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call fcn.005ed430
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 0
call fcn.005ed430
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005ed430
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x432580
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [esp + 0x814]
push ebp
mov ebp, dword [esp + 0x81c]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x4325c6
mov byte [ebp], al
mov byte [ecx], al
pop ebp
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.005fb9ce
add esp, 0x810
ret
push ebx
push esi
push edi
push 0x636908
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
push edi
push 1
lea eax, [esp + 0x20]
push 4
push eax
call ebx
push edi
push 1
lea ecx, [esp + 0x34]
push 4
push ecx
call ebx
mov eax, dword [esp + 0x38]
add esp, 0x28
test eax, eax
jle 0x432637
push edi
push eax
lea edx, [esp + 0x24]
push 1
push edx
call ebx
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004324c0
add esp, 8
push eax
push ebp
call dword [sym.imp.MSVCR90.dll_strncpy]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x43267e
push edi
push eax
lea edx, [esp + 0x24]
push 1
push edx
call ebx
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004324c0
mov edx, dword [esp + 0x24]
add esp, 8
push eax
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
push edi
mov byte [ecx + eax], 0
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x820]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.005fb9ce
add esp, 0x810
ret
Function at 0x435290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x616963
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0xc
call fcn.005ed170
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x4352d9
mov ecx, eax
call fcn.005ed1b0
mov esi, eax
jmp 0x4352db
xor esi, esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
jne 0x435300
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 4
push eax
lea ecx, [esp + 0x10]
call fcn.00439e50
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 1
call fcn.00438dc0
push eax
mov ecx, esi
call fcn.005edbf0
mov esi, dword [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004394f0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 4