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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x42d4d1
push esi
call fcn.0042c930
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x42d546
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x42d533
dec ecx
je 0x42d51e
sub ecx, 2
je 0x42d50b
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x42d58f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x42d5b2
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x42d5d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x43b08c]
sub esp, 0xc
push esi
push edi
push 0x1000
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42d765
mov ax, word [esp + 8]
push ebx
push ebp
mov ebx, edi
mov ebp, 0x1000
mov dword [esp + 0x18], 0x7ff
lea esp, [esp]
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x42d626
test ecx, ecx
je 0x42d6d0
dec ecx
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x20]
cmp dword [esi + 4], 0
je 0x42d643
push 2
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.0042d4b0
mov dword [esp + 0x14], eax
jmp 0x42d65a
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 2
mov ax, word [esp + 0x10]
jne 0x42d6d4
test ax, ax
je 0x42d676
mov word [ebx], ax
mov ax, word [esp + 0x10]
add ebx, 2
mov esi, ebx
sub esi, edi
sar esi, 1
cmp esi, dword [esp + 0x18]
jle 0x42d6ab
mov edx, dword [0x43b08c]
add dword [esp + 0x18], 0x800
add ebp, 0x1000
push ebp
push edi
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov ax, word [esp + 0x10]
lea ebx, [edi + esi*2]
test ax, ax
je 0x42d6d0
cmp dword [esp + 0x24], 0
jne 0x42d610
cmp ax, 0xd
je 0x42d6dd
cmp ax, 0xa
jne 0x42d610
sub ebx, 2
jmp 0x42d748
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
jne 0x42d748
jmp 0x42d6e1
mov esi, dword [esp + 0x20]
cmp ax, 0xa
jne 0x42d6ec
sub ebx, 2
jmp 0x42d748
cmp ax, 0xd
jne 0x42d748
sub ebx, 2
cmp dword [esi + 4], 0
je 0x42d70e
push 2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0042d4b0
mov dword [esp + 0x14], eax
jmp 0x42d725
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x42d748
cmp dword [esi + 4], 0
je 0x42d739
add dword [esi + 0xc], 2
jmp 0x42d748
mov ecx, dword [esi]
push 1
push 0
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
mov edx, ebx
sub edx, edi
sar edx, 1
pop ebp
mov dword [eax], edx
xor ecx, ecx
mov word [ebx], cx
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 0x10
Function at 0x42d770
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x43b08c]
sub esp, 8
push ebx
push esi
push edi
mov ebx, 0x1000
push ebx
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42d8d1
mov al, byte [esp + 0xf]
push ebp
mov ebp, edi
lea esp, [esp]
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
je 0x42d7b6
test ecx, ecx
je 0x42d849
dec ecx
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 0
je 0x42d7d3
push 1
lea ecx, [esp + 0x17]
push ecx
push esi
call fcn.0042d4b0
mov dword [esp + 0x14], eax
jmp 0x42d7ea
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 1
mov al, byte [esp + 0x13]
jne 0x42d84d
test al, al
je 0x42d801
mov byte [ebp], al
mov al, byte [esp + 0x13]
inc ebp
mov esi, ebp
sub esi, edi
lea edx, [ebx - 1]
cmp esi, edx
jle 0x42d82b
mov eax, dword [0x43b08c]
add ebx, 0x1000
push ebx
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x42d849
cmp dword [esp + 0x20], 0
jne 0x42d7a0
cmp al, 0xd
je 0x42d856
cmp al, 0xa
jne 0x42d7a0
dec ebp
jmp 0x42d8b7
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0
jne 0x42d8b7
jmp 0x42d85a
mov esi, dword [esp + 0x1c]
cmp al, 0xa
jne 0x42d861
dec ebp
jmp 0x42d8b7
cmp al, 0xd
jne 0x42d8b7
dec ebp
cmp dword [esi + 4], 0
je 0x42d87f
push 1
lea ecx, [esp + 0x17]
push ecx
push esi
call fcn.0042d4b0
mov dword [esp + 0x14], eax
jmp 0x42d896
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x42d8b7
cmp dword [esi + 4], 0
je 0x42d8a8
inc dword [esi + 0xc]
jmp 0x42d8b7
mov edx, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, edi
mov dword [ecx], eax
mov byte [ebp], 0
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret 0x10
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 0x10
Function at 0x42d8e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x42d915
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x42d98a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x42d977
dec ecx
je 0x42d962
sub ecx, 2
je 0x42d94f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0042c930
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x42d9b7
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x42f1f9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov dword [0x43db64], eax
cmp eax, edi
je 0x42f22a
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43db68], eax
lea eax, [ebp - 0x114]
push eax
mov dword [0x43db60], 1
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42f27a
cmp dword [ebp - 0x104], 1
je 0x42f28b
cmp dword [ebp - 0x104], 2
jne 0x42f27a
cmp dword [ebp - 0x110], 5
jb 0x42f28b
jne 0x42f27a
cmp dword [ebp - 0x10c], edi
jne 0x42f27a
mov dword [0x43db60], edi
cmp dword [0x43db60], edi
je 0x42f291
call fcn.0042f140
test eax, eax
jne 0x42f291
mov dword [0x43db60], edi
pop edi
leave
ret
Function at 0x430655
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x43db6c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4306b6
push esi
push dword [0x43db74]
push 8
push dword [0x43b08c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x43db6c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x43db70]
jmp 0x4306a6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4306a4
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x430694
push edi
push 0x43061a
call fcn.00431f56
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4306c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x4306d5
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x43db74], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x430707
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x43b08c]
mov dword [0x43db6c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x43db6c]
call esi
mov edi, dword [0x43db74]
add dword [0x43db74], ebx
push dword [0x43db74]
push dword [0x43db6c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x43b08c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x43db6c]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x43074d
cmp dword [esp + 0x18], esi
je 0x430771
push 0x14
push 0x43db70
call fcn.00430db4
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
test esi, esi
je 0x430771
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x430eb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x430ef6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x43dd00]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x430f17
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x43dd00]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00431450
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x430ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x431060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x431140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x431330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x43136e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x43136e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x431370
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x431380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4313a4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x4313f2
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x43dd00]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4314a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x431500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x438f90]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x431f56
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x43dbd0], ebx
jne 0x431f8c
push 0x43dbb4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x43dbd0], 1
push 0x43dbb4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x43dbcc]
mov edi, eax
cmp eax, ebx
je 0x431ff0
cmp dword [ebp - 4], ebx
jne 0x432130
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x431fc3
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x431fb4
jmp 0x431fe1
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00431dab
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x431fa2
cmp dword [ebp - 4], ebx
jne 0x432130
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x432130
mov edi, dword [0x43dbcc]
jmp 0x432030
cmp dword [edi + 0xc], 0x3f
jl 0x4320ca
mov edi, dword [edi]
cmp edi, ebx
jne 0x432024
push 0x310
push 8
push dword [0x43b08c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x432127
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x432119
push ebx
push ebx
push edi
push 0x431dfc
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x432110
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00431dab
mov eax, dword [0x43dbcc]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x4320c2
mov dword [eax + 4], edi
mov dword [0x43dbcc], edi
jmp 0x432130
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00431dab
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x432130
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x43b08c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x43dbb4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
movzx esi, cx
push 0x44acb0
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40357a
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40362d
push 0x2000
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
xor eax, eax
call fcn.00402ed0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403596
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.004308c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 1
xor esi, esi
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x403626
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x403626
mov ebx, dword [ebp + 8]
push eax
push ebx
call fcn.00402ab0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
xor edi, edi
mov dword [eax + 8], esi
push ebx
mov dword [eax + 0xc], edi
call fcn.00403420
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4057f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x445708
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401990
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405846
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00405a20
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401990
cmp dword [esp + 0x24], 8
jb 0x40588f
mov edx, dword [esp + 0x10]
push edx
call fcn.0042bc90
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret