joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x41d038]
test eax, eax
je 0x40d693
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40d626
cmp dword [eax + 4], 0
je 0x40d626
add eax, 8
pop esi
ret
mov eax, dword [0x41d038]
test eax, eax
je 0x40d6a2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40d68f
mov esi, eax
test eax, eax
jne 0x40d678
movzx eax, byte [0x41d0a8]
mov ecx, 0x10
call fcn.00404be0
test eax, eax
je 0x40d6ba
mov dword [eax], 0x41d038
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x41d038]
test eax, eax
je 0x40d6ae
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x41d038
call fcn.00416390
jmp 0x40d60f
mov ecx, 0x41d038
call fcn.00416390
jmp 0x40d630
mov ecx, 0x41d038
call fcn.00416390
jmp 0x40d670
mov ecx, 4
mov edx, 0x10
call fcn.00415830
int3
Function at 0x416390
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x416401
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x416438
cmp dword [esp + 4], 0
je 0x41641f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41644b
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x41d110]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x41d110], esi
jne 0x4163e0
mov byte [0x41d10c], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x41642f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x41648c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x416423
mov edi, dword [esp]
jmp 0x41642f
mov edi, dword [esi]
jmp 0x41642e
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.004164c0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x41a564
mov dword [esp + 8], 0x41a52c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x418d64
mov dword [esp + 0x14], 0
call fcn.004158d0
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x41a52c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x418d64
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004164f0
int3

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41d9d0
Capabilities:
Create thread
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00404fc5
add esp, 4
test eax, eax
je 0x41d9ef
mov dword [eax], 0x41d7b0
jmp 0x41d9f1
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401750
push 0
push 0
call fcn.0040a675
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x41da5a
cmp dword [esp + 4], 0
je 0x41da69
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x41da70
push 0
push ecx
push dword [esp + 8]
call fcn.00402832
add esp, 0xc
test eax, eax
jne 0x41da77
push eax
push eax
push eax
push eax
push eax
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp dword [esp + 4], 0
jne 0x41da7e
xor eax, eax
add esp, 8
ret
push 6
mov dword [esp + 8], 0
call fcn.004029e8
push 1
call fcn.004029e8
push 5
call fcn.004029e8
push 2
call fcn.004029e8
call fcn.0040a4dd
int3
Function at 0x403520
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
sub ebx, ebx
imul edx, dword [ebx + 0x45c008], 0x8088405
inc edx
mov dword [ebx + 0x45c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4058f4
Capabilities:
Packed with generic packer

Disassembly:
pushal
popal
push 1
pop ecx
jmp fcn.00405808

Function at 0x405918
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
pop ebx
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [eax + ecx + 0xa]
mov ebp, dword [edi - 4]
sub eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x405944
push eax
pop edx
add eax, esi
add edx, ebx
call fcn.00402c14
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x405983
cmp cl, 0xb
je 0x405994
cmp cl, 0xc
je 0x4059a5
cmp cl, 0xd
je 0x4059b6
cmp cl, 0xe
je 0x4059d6
cmp cl, 0xf
je 0x4059ef
cmp cl, 0x11
je 0x405a00
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.00402b68
mov edx, dword [eax + esi]
add eax, ebx
call fcn.00404df0
nop
push 4
nop
pop eax
jmp 0x405a11
mov edx, dword [eax + esi]
add eax, ebx
call fcn.00405498
nop
push 4
nop
pop eax
jmp 0x405a11
lea edx, [eax + esi]
add eax, ebx
call fcn.00405900
push 0x10
pop eax
pushal
popal
jmp 0x405a11
sub ecx, ecx
mov cl, byte [edx + 1]
push dword [ecx + edx + 2]
push dword [ecx + edx + 6]
mov ecx, dword [ecx + edx + 0xa]
mov ecx, dword [ecx]
lea edx, [eax + esi]
add eax, ebx
call fcn.00405a34
pop eax
jmp 0x405a11
sub ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [ecx + edx + 2]
push ecx
mov ecx, edx
lea edx, [eax + esi]
add eax, ebx
call fcn.00405918
pop eax
jmp 0x405a11
mov edx, dword [eax + esi]
add eax, ebx
call fcn.0040679c
push 4
pop eax
nop
nop
jmp 0x405a11
push edx
pop ecx
mov edx, dword [eax + esi]
add eax, ebx
call fcn.00406074
nop
push 4
nop
pop eax
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x405932
pop ecx
sub ecx, eax
jle 0x405a2d
lea edx, [eax + ebx]
add eax, esi
call fcn.00402c14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41b0e4
Capabilities:
Encode data using xor

Disassembly:
push edx
pop ecx
push eax
pop edx
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b0ea
ret
Function at 0x4425a8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call fcn.004070ac
push eax
call fcn.0040712c
mov ebx, eax
call fcn.004070bc
push eax
call fcn.00407174
push eax
pop esi
push pe_nt_image_headers32
call fcn.004070ac
push eax
call fcn.00407284
push 0xf
call fcn.004070bc
push eax
call fcn.00407294
push 0xa
call fcn.0040dd0c
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call fcn.0040dd0c
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call fcn.004070bc
push eax
call fcn.00407294
push ebx
call fcn.004070ac
push eax
call fcn.00407284
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x442654]
call fcn.00402e68
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452a50
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ebx
push esi
push edi
mov ebx, eax
sub eax, eax
mov dword [ebp - 4], eax
sub eax, eax
push ebp
push 0x452aa3
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push ebx
pop esi
push esi
call fcn.004071dc
or eax, eax
jne 0x452a99
cmp word [esi], 0x5a4d
jne 0x452a99
lea eax, [ebx + 0x3c]
add ebx, dword [eax]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x452a99
sub eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452ab2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455b88
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040524c
mov eax, dword [ebp - 8]
call fcn.0040524c
mov eax, dword [ebp - 0xc]
call fcn.0040524c
xor eax, eax
push ebp
push 0x455cdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040525c
push eax
call dword [0x4602b0]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x455cc1
sub eax, eax
push ebp
push 0x455cb4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.004070ec
mov ebx, eax
mov eax, ebx
call fcn.00402a50
push eax
pop esi
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040723c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x455c3a
call fcn.00404804
jmp 0x455cc1
push 0
mov eax, dword [ebp - 8]
call fcn.0040525c
push eax
call fcn.00406fac
mov dword [ebp - 0x14], eax
sub eax, eax
push ebp
push 0x455c95
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push esi
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040525c
push eax
push 0xa
mov eax, dword [ebp - 0x14]
push eax
call fcn.004072d4
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455c9c
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040702c
ret
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ce3
lea eax, [ebp - 0xc]
pushal
popal
push 3
pop edx
call fcn.00404dc0
ret
Function at 0x456210
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
xor eax, eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x160]
mov edx, dword [0x407b60]
call fcn.004056ec
xor eax, eax
push ebp
push 0x456367
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004556a8
mov eax, dword [ebp - 8]
call fcn.00409160
test al, al
je 0x45632b
lea eax, [ebp - 0x164]
mov ecx, 0x45637c
mov edx, dword [ebp - 8]
call fcn.004050a8
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
push 0x3f
pop edx
push eax
pop eax
call fcn.00409320
test eax, eax
jne 0x456320
test byte [ebp - 0x158], 0x10
jne 0x45630d
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 0x154]
call fcn.004094fc
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 4]
call fcn.00408954
mov eax, dword [ebp - 4]
mov edx, 0x456388
call fcn.004051a8
jne 0x45630d
push 1
push 0x456390
push 0x456390
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004050a8
mov eax, dword [ebp - 0x16c]
call fcn.0040525c
push eax
push 0x456394
push 0
call dword [0x4601dc]
jmp 0x456320
lea eax, [ebp - 0x160]
call fcn.00409370
test eax, eax
je 0x45629b
lea eax, [ebp - 0x160]
call fcn.00409394
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45636e
lea eax, [ebp - 0x16c]
pushal
popal
push 3
pop edx
call fcn.00404dc0
lea eax, [ebp - 0x160]
mov edx, dword [0x407b60]
call fcn.004057bc
lea eax, [ebp - 8]
nop
push 2
nop
pop edx
call fcn.00404dc0
ret

Function at 0x45672c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push eax
mov eax, 0x87
add esp, 0xfffff004
push eax
dec eax
jne 0x456735
mov eax, dword [ebp - 4]
add esp, 0xfffff410
push ebx
push esi
sub edx, edx
mov dword [ebp - 0x87bf4], edx
mov dword [ebp - 0x87bf0], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040524c
sub eax, eax
push ebp
push 0x45685c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0040525c
mov edx, eax
lea eax, [ebp - 0x87bf0]
call fcn.00404f94
mov eax, dword [ebp - 0x87bf0]
call fcn.00409150
test al, al
je 0x456836
mov eax, dword [ebp - 4]
call fcn.00458f38
test al, al
jne 0x456836
mov esi, 0x43df0
lea ebx, [ebp - 0x43dfc]
lea edx, [ebp - 0x87bf4]
push 1
pop eax
pushal
popal
call fcn.00456d68
mov eax, dword [ebp - 0x87bf4]
mov al, byte [eax]
mov byte [ebx], al
inc ebx
dec esi
jne 0x4567b8
xor esi, esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040525c
push eax
call dword [0x4602b0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x456836
push 2
push 0
push 2
push ebx
call fcn.00407274
push 0
lea eax, [ebp - 0xc]
push eax
push 0x87be1
lea eax, [ebp - 0x87bec]
push eax
push ebx
call dword [0x4602ac]
push ebx
call dword [0x4601e0]
inc esi
cmp esi, 0xa
jl 0x4567d8
mov byte [ebp - 5], 1
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456863
lea eax, [ebp - 0x87bf4]
mov edx, 2
call fcn.00404dc0
lea eax, [ebp - 4]
call fcn.00404d9c
ret
Function at 0x45686c
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffd8
push eax
pop ebx
push esp
push 0x28
call fcn.004070ac
push eax
call dword [0x460240]
mov dword [esp + 8], 1
lea eax, [esp + 0xc]
push eax
push 0x4568dc
push 0
call dword [0x460244]
test bl, bl
je 0x4568a9
mov dword [esp + 0x14], 2
jmp 0x4568af
sub eax, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call dword [0x460248]
mov eax, dword [esp]
push eax
call dword [0x4601e0]
add esp, 0x28
pop ebx
ret
Function at 0x45b758
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
push eax
pop edi
xor eax, eax
push ebp
push 0x45b860
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004075e4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
sub esi, esi
lea edx, [ebp - 0x1c]
mov eax, 0x45b878
call fcn.00459098
mov eax, dword [ebp - 0x1c]
call fcn.0040525c
push eax
push 0x45b8ac
call fcn.004071f4
push eax
call fcn.00456fc4
mov dword [0x4602dc], eax
pushal
popal
push 0x10
pop ebx
push esi
pop eax
sub eax, 1
jb 0x45b7c9
je 0x45b804
jmp 0x45b83a
push 0x41
push 0
push 0
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push edi
call dword [0x4602dc]
push 0x41
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0xffffffffffffffff
push edi
call dword [0x4602dc]
mov esi, 1
jmp 0x45b83a
push 0x41
push 0
push 0
mov eax, dword [ebp - 4]
sub eax, 8
push eax
mov eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push edi
call dword [0x4602dc]
push 0x41
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
sub eax, 8
push eax
push 0xffffffffffffffff
push edi
call dword [0x4602dc]
sub esi, esi
push 0xffffffffffffffff
push 0x32
call fcn.004072ac
dec ebx
jne 0x45b7be
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b867
lea eax, [ebp - 0x1c]
call fcn.00404d9c
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x104
push eax
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402690
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x4026c0
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x20c], 0x2e
je 0x4026c0
sub eax, 1
jns 0x4026b0
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x402725
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4026e1
mov eax, dword [0x5c3118]
mov dword [ecx], eax
mov eax, dword [0x5c311c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push ebx
push 0x5c3120
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret
call fcn.0054e504
int3
Function at 0x406da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406df9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406df9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406dea
cmp esi, edx
jae 0x406df9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406dd8
cmp esi, edx
jae 0x406df9
cmp word [esi], 0
je 0x406df9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4076c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x5ed3f0
push 0x106
mov word [edi], ax
mov word [0x5ed3f0], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x5ed3f0
mov edx, edi
sub edx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4076f0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407705
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
je 0x407723
mov dword [edi + ecx*2], 0x5c
mov edx, dword [ebp + 0x10]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407730
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407740
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x407b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x407b94
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.Release
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
xor edx, edx
push dword [ebp - 8]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0x6004f
setae al
mov esp, ebp
pop ebp
ret
Function at 0x409fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a570
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e3fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
push str.ddxreg.dll
push esi
push ecx
call fcn.004076c0
test esi, esi
je 0x40a023
mov ecx, esi
call fcn.004041a0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a061
mov ecx, str.LoadFile__CreateFile
call fcn.004041a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40a0a8
mov ecx, str.LoadFile__HeapAlloc
call fcn.004041a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push 1
push 0x11
mov dword [ebp - 0x20], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, dword [ebp - 0x14]
push ebx
push esi
push dword [ebp - 0x18]
call fcn.00551030
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x40a17a
add edi, 0x18
mov dword [ebp - 4], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x40a124
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push edi
mov dword [edi], 0
mov eax, dword [edx]
push ebx
push edx
call dword [eax + 0xb4]
mov edi, eax
test edi, edi
jns 0x40a14c
mov ecx, str.LoadFile__Load_3
call fcn.004041a0
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004003
call fcn.0054f510
int3