joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416fbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4715f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416fff
cmp byte [ebx], 0xa
jne 0x416fff
or byte [eax + edi + 0x28], 4
jmp 0x417004
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417102
mov al, byte [edx]
cmp al, 0x1a
je 0x4170e4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417033
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417058
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417062
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417015
jmp 0x417102
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4170df
cmp dword [ebp - 0xc], 0
je 0x4170df
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4715f8]
test byte [eax + edi + 0x28], 0x48
je 0x4170b9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4170a4
mov byte [esi], dl
jmp 0x4170b5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4715f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417102
cmp byte [ebp - 1], 0xa
jne 0x4170c8
cmp esi, ebx
jne 0x4170c8
mov byte [esi], 0xa
jmp 0x417101
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417b3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417102
mov byte [esi], 0xd
jmp 0x417101
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4715f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4170fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417102
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41710b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4715f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41714e
cmp word [esi], dx
jne 0x41714e
or byte [edi + eax + 0x28], 4
jmp 0x417153
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4172a6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417286
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417195
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4171cb
cmp eax, edx
jae 0x4171d7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41716d
jmp 0x4172a6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417282
cmp dword [ebp - 0x14], 0
je 0x417282
mov eax, dword [ebx*4 + 0x4715f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41725a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417223
mov word [esi], cx
jmp 0x417256
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4715f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4715f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4715f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4172a6
pop ebx
cmp word [ebp - 4], bx
jne 0x41726b
cmp esi, dword [ebp + 0xc]
jne 0x41726b
mov word [esi], bx
jmp 0x4172a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417b3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4172a6
push 0xd
jmp 0x41729f
mov ecx, dword [ebx*4 + 0x4715f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41729d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4172a6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4024c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4024d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402514
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402510
lea ebx, [ebx]
cmp esi, eax
jae 0x402514
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402500
cmp esi, eax
jb 0x40251a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x413f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x4f2fb0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov word [esp + 0x40], ax
mov ecx, 7
mov word [esp + 0x42], cx
mov eax, 1
mov word [esp + 0x46], ax
mov edx, 6
mov word [esp + 0x44], dx
mov ecx, 2
mov word [esp + 0x48], cx
mov eax, 4
mov word [esp + 0x4c], ax
mov edx, 5
mov ecx, 3
mov word [esp + 0x4a], dx
mov word [esp + 0x4e], cx
lea eax, [esp + 0x35]
mov ebx, dword [esp + 0x5c]
lea edx, [esp + 0x34]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x36]
lea eax, [esp + 0x38]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x37]
lea ecx, [esp + 0x39]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3b]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x3a]
mov ecx, eax
mov edi, dword [esp + 0x58]
mov byte [esp + 0x34], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
xor esi, esi
movsx edx, word [esp + esi*2 + 0x40]
mov eax, dword [esp + edx*4 + 0x10]
push edi
push 1
push 2
push eax
call fcn.0049af28
inc esi
add esp, 0x10
cmp esi, 8
jl 0x414050
fld qword [esp + 0x34]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x35]
fstp qword [ebx]
lea eax, [esp + 0x36]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x37]
lea edx, [esp + 0x38]
lea eax, [esp + 0x39]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x3a]
lea edx, [esp + 0x3b]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
xor esi, esi
lea ecx, [ecx]
movsx ecx, word [esp + esi*2 + 0x40]
mov edx, dword [esp + ecx*4 + 0x10]
push edi
push 1
push 2
push edx
call fcn.0049af28
inc esi
add esp, 0x10
cmp esi, 8
jl 0x4140c0
fld qword [esp + 0x34]
mov ecx, dword [esp + 0x50]
pop edi
fstp qword [ebp]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004982db
add esp, 0x44
ret
Function at 0x414310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c324b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
jle 0x414346
fld1
jmp 0x41434c
fld qword [0x4c7a40]
mov eax, dword [ebp + 0x14]
fstp qword [esp + 0x24]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [eax], 0
push 0x4c880c
push edx
lea eax, [esp + 0x24]
xor ecx, ecx
push eax
mov word [ebx], cx
call fcn.00498288
add esp, 0xc
test eax, eax
jne 0x414500
mov ecx, dword [esp + 0x1c]
push ecx
push 1
push 2
push ebx
call fcn.0049af28
movzx eax, word [ebx]
add esp, 0x10
test ax, ax
jle 0x414500
movsx edi, ax
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047af44
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
xor eax, eax
mov dword [esp + 0x68], eax
cmp esi, eax
je 0x4143df
push fcn.004661f0
push edi
push 0x10
push esi
call fcn.00405100
mov dword [esp + 0x20], esi
jmp 0x4143e3
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x68], 0xffffffff
je 0x414500
mov eax, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x1c]
push 2
push ecx
call fcn.0049af28
xor edx, edx
add esp, 0x10
xor esi, esi
cmp dx, word [esp + 0x14]
jge 0x414437
mov eax, dword [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x44]
push 8
push ecx
call fcn.0049af28
movsx edx, word [esp + 0x24]
inc esi
add esp, 0x10
cmp esi, edx
jl 0x414417
mov eax, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.0049af28
mov dx, word [esp + 0x28]
add esp, 0x10
cmp dx, word [esp + 0x14]
jne 0x4144f3
xor eax, eax
xor edi, edi
cmp ax, word [ebx]
jge 0x4144c1
mov esi, dword [esp + 0x20]
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0049a50d
add esp, 4
test eax, eax
jne 0x4144f3
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.00413f90
add esp, 0xc
mov ecx, esi
call fcn.00466240
fld qword [esp + 0x2c]
mov ecx, esi
fstp qword [eax]
call fcn.00466230
fld qword [esp + 0x34]
fmul qword [esp + 0x24]
inc edi
add esi, 0x10
fstp qword [eax]
movsx edx, word [ebx]
cmp edi, edx
jl 0x414470
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4144d2
push eax
call fcn.00497eda
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
push edx
call fcn.0047af7e
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x414511
push eax
call fcn.00497eda
add esp, 4
xor eax, eax
mov word [ebx], ax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c371f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x54], 0
mov dword [esp + 0xc], 0
je 0x4348e3
lea edi, [esi + 0xb0]
mov ecx, edi
mov dword [esi], 0x4c9a40
call fcn.00414be0
mov dword [edi], vtable.RegulaFalsi.0
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], 1
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esi + ecx], vtable.RFAusfeuerei.0
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 0xb0]
mov dword [eax + esi - 4], ecx
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00466270
lea ecx, [esp + 0x24]
call fcn.00466270
fldz
mov edx, dword [eax]
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [eax + 0x10]
mov dword [edi + 0x10], edx
mov eax, dword [eax + 0x14]
fst qword [edi + 0x20]
fstp qword [edi + 0x18]
mov dword [edi + 0x14], eax
lea edi, [esi + 0x80]
mov ecx, edi
call fcn.00466270
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x98], 0
mov dword [esi + 0x7c], 1
fld qword [eax + 0x38]
fld qword [0x4c77e0]
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x434983
fstp st(1)
jmp 0x434985
fstp st(0)
fmul qword [0x4c77d8]
fst qword [esp + 0x14]
call fcn.00499060
sub esp, 8
fstp qword [esp]
fld qword [esp + 0x1c]
call fcn.00498f30
fchs
sub esp, 8
lea ecx, [esp + 0x24]
fstp qword [esp]
call fcn.004661d0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x34]
call fcn.00466280
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x3c
ret 0xc
Function at 0x461a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4148
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.00461630
lea ecx, [ebp + 8]
mov dword [esp + 0x30], 0
mov dword [esi], vtable.schraege.0
call fcn.00466230
fld qword [eax]
lea ecx, [ebp + 8]
fstp qword [esi + 8]
call fcn.00466240
fld qword [eax]
lea ecx, [ebp + 8]
fstp qword [esi + 0x20]
call fcn.00466230
lea ecx, [ebp + 0x18]
mov edi, eax
call fcn.00466230
fld qword [edi]
fsub qword [eax]
lea ecx, [ebp + 0x18]
fstp qword [esi + 0x28]
call fcn.00466240
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00466240
fld qword [edi]
fsub qword [eax]
fst qword [esi + 0x40]
fldz
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x461b06
mov eax, 1
jmp 0x461b22
fld qword [esi + 0x28]
fabs
fcomp qword [0x4c77f8]
fnstsw ax
test ah, 5
mov eax, 3
jnp 0x461b22
mov eax, 2
mov dword [esi + 0x38], eax
sub eax, 1
je 0x461b53
sub eax, 2
je 0x461b39
fstp st(0)
fld qword [esi + 0x40]
fdiv qword [esi + 0x28]
jmp 0x461b53
fcomp qword [esi + 0x40]
fnstsw ax
test ah, 5
jp 0x461b47
fld1
jmp 0x461b4d
fld qword [0x4c7a40]
fmul qword [0x4cb208]
mov ecx, dword [ebp + 0x18]
fstp qword [esi + 0x30]
mov edx, dword [ebp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x34]
push eax
call fcn.00466480
mov edx, dword [eax]
add esp, 0x14
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00466a60
fstp qword [esi + 0x10]
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x465a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c4243
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00483a1c
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x28], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [esp + 0x28], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x465b10
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00483e87
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.00484143
test ebp, ebp
je 0x465aee
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.004841d2
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00483b38
jmp 0x465b22
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x4c43e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0
call fcn.00487d67
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00487dfc
lea ecx, [esp + 8]
mov esi, eax
call fcn.0048796e
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00487d8d
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46926b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x46a5c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c44a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], esi
call fcn.0048844e
push esi
or edi, 0xffffffff
push edi
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00469a80
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00488833
test eax, eax
jne 0x46a697
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
mov dword [esp + 0x1c], vtable.CFileException.0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46a651
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.00488529
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x38], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x46a680
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
push 0xb2c0
push 0x4fa8e8
lea ecx, [esp + 0x14]
call fcn.00488142
cmp dword [0x505bc0], esi
jle 0x46a6cc
push esi
call fcn.00468fb0
push eax
push 0x18
call fcn.0046a500
inc esi
add esp, 0xc
cmp esi, dword [0x505bc0]
jl 0x46a6b2
lea ecx, [esp + 0xc]
call fcn.004883e8
call fcn.0046a4b0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.00488529
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x38], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x46a735
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x477750
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4c4bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
call fcn.004775c0
mov ebx, dword [esp + 0x50]
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x40], 0
call fcn.0046ab90
add esp, 0x10
mov byte [esp + 0x30], 1
call fcn.004835e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4777bf
push 0x80004005
call fcn.00401260
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push esi
push edi
push ebx
lea ecx, [esp + 0x28]
push str._s____s____s
push ecx
mov byte [esp + 0x44], 2
call fcn.00404880
add esp, 0x14
call fcn.004835e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47780b
push 0x80004005
call fcn.00401260
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
push esi
push edi
push ecx
lea edx, [esp + 0x24]
push str._s____s____s
push edx
mov byte [esp + 0x44], 3
call fcn.00404880
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebp, esp
push eax
call fcn.00401540
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.004691e0
add esp, 4
test eax, eax
jne 0x477873
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ebx
push eax
push ecx
push edx
jmp 0x477887
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4778b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4778db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret