joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4308a6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4308d4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4308db
cmp ebx, dword [eax + 4]
jae 0x4308db
xor eax, eax
jmp 0x430acb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4308ec
xor eax, eax
inc eax
jmp 0x430aca
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x430902
cmp ecx, edx
jae 0x430a47
cmp dword [eax + 4], 0
je 0x43090b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4308f3
cmp dword [ebp + 8], 0
je 0x43092d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x430a47
cmp eax, esi
jae 0x430a47
mov eax, dword [0x48e950]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x430952
cmp dword [esi*4 + 0x48e958], edi
je 0x430a4b
inc esi
cmp esi, eax
jl 0x430940
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430ac7
cmp dword [ebp - 8], 0x1000000
jne 0x430ac7
test byte [ebp - 0xc], 0xcc
je 0x4309d0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x430ac7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x430ac7
cmp word [eax + 0x18], 0x10b
jne 0x430ac7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x430ac7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4309d0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4309d0
test byte [ecx + 0x27], 0x80
jne 0x430a47
push 1
push 0x48e998
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4308e4
mov ecx, dword [0x48e950]
test ecx, ecx
mov edx, ecx
jle 0x430a04
lea eax, [ecx*4 + 0x48e954]
cmp dword [eax], edi
je 0x430a04
dec edx
sub eax, 4
test edx, edx
jg 0x4309f8
test edx, edx
jne 0x430a35
push 0xf
pop ebx
cmp ecx, ebx
jg 0x430a11
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x430a29
lea eax, [edx*4 + 0x48e958]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x430a17
cmp ecx, 0x10
jge 0x430a35
inc ecx
mov dword [0x48e950], ecx
push 0
push 0x48e998
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4308e4
xor eax, eax
jmp 0x430aca
test esi, esi
jle 0x4308e4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x48e998
call ebx
test eax, eax
jne 0x4308e4
cmp dword [esi*4 + 0x48e958], edi
je 0x430aa1
mov eax, dword [0x48e950]
lea esi, [eax - 1]
test esi, esi
jl 0x430a8f
cmp dword [esi*4 + 0x48e958], edi
je 0x430a8b
dec esi
jns 0x430a7f
test esi, esi
jge 0x430a9f
cmp eax, 0x10
jge 0x430a9a
inc eax
mov dword [0x48e950], eax
lea esi, [eax - 1]
jmp 0x430aa1
je 0x430ab9
xor ecx, ecx
test esi, esi
jl 0x430ab9
lea eax, [ecx*4 + 0x48e958]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x430aa7
push 0
push 0x48e998
call ebx
jmp 0x4308e4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430c89
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x48ae20]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x48b838]
je 0x430cc0
inc eax
cmp eax, 0x13
jb 0x430cb1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48b838]
jne 0x430de3
mov eax, dword [0x48e6d8]
cmp eax, 1
je 0x430dbe
cmp eax, edx
jne 0x430cf0
cmp dword [0x48aec4], 1
je 0x430dbe
cmp ecx, 0xfc
je 0x430de3
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x430d26
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004240b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00424540
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430d5a
mov eax, edi
push eax
call fcn.00424540
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x476e0c
push edi
call fcn.004277f0
add esp, 0x10
push edi
call fcn.00424540
push dword [esi + 0x48b83c]
mov ebx, eax
call fcn.00424540
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00425720
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004240b0
push edi
push ebx
call fcn.004240c0
push 0x476e08
push ebx
call fcn.004240c0
push dword [esi + 0x48b83c]
push ebx
call fcn.004240c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00431fa5
add esp, 0x2c
jmp 0x430de3
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x48b83c]
push dword [esi]
call fcn.00424540
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00424262
add ebp, 0x90
leave
ret
Function at 0x431fa5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x48ead8], ebx
push esi
push edi
jne 0x432025
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432060
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x477da4
push edi
call esi
test eax, eax
mov dword [0x48ead8], eax
je 0x432060
push 0x477d94
push edi
call esi
push 0x477d80
push edi
mov dword [0x48eadc], eax
call esi
cmp dword [0x48e68c], 2
mov dword [0x48eae0], eax
jne 0x432025
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x48eae8], eax
je 0x432025
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x48eae4], eax
mov eax, dword [0x48eae4]
test eax, eax
je 0x43206a
call eax
test eax, eax
je 0x432051
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x48eae8]
test eax, eax
je 0x432051
test byte [ebp - 8], 1
jne 0x43206a
cmp dword [0x48e698], 4
jb 0x432064
or byte [ebp + 0x12], 0x20
jmp 0x432089
xor eax, eax
jmp 0x432099
or byte [ebp + 0x12], 4
jmp 0x432089
mov eax, dword [0x48eadc]
test eax, eax
je 0x432089
call eax
mov ebx, eax
test ebx, ebx
je 0x432089
mov eax, dword [0x48eae0]
test eax, eax
je 0x432089
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x48ead8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4366e6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00425720
mov eax, dword [0x48ae20]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0042dd21
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x43681b
push 2
push esi
push dword [ebp + 8]
call fcn.0042dd21
add esp, 0xc
cmp eax, ebx
je 0x43681b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4367bb
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004256c0
push 0x8000
push dword [ebp + 8]
call fcn.00437061
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x436771
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042df4e
add esp, 0xc
cmp eax, 0xffffffff
je 0x436791
sub edi, eax
test edi, edi
jg 0x436769
jmp 0x4367a9
call fcn.00427dad
cmp dword [eax], 5
jne 0x4367a6
call fcn.00427da4
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00437061
pop ecx
pop ecx
jmp 0x436803
jge 0x436803
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042dd21
push dword [ebp + 8]
call fcn.00430560
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x436803
call fcn.00427da4
mov dword [eax], 0xd
call fcn.00427dad
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0042dd21
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43681d
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00424262
leave
ret
Function at 0x436d8c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x478e18
call fcn.004274b0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x48eb64], edi
jne 0x436dd0
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436dbb
mov dword [0x48eb64], ebx
jmp 0x436dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x436dd0
mov dword [0x48eb64], 2
mov eax, dword [0x48eb64]
cmp eax, ebx
jne 0x436df0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x436eb3
cmp eax, 2
je 0x436df9
cmp eax, edi
jne 0x436e21
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x436e0c
mov eax, dword [0x48ead0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x436e28
xor eax, eax
jmp 0x436eb3
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00425720
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x436e5b
cmp esi, edi
jne 0x436e71
push dword [ebp - 0x20]
call fcn.0042564c
pop ecx
mov esi, eax
cmp esi, edi
je 0x436e21
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x436ea4
cmp dword [ebp + 0x14], edi
jne 0x436e8e
push edi
push edi
jmp 0x436e94
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x436eb0
push esi
call fcn.00425475
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004274eb
ret
Function at 0x436ebc
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x478e28
call fcn.004274b0
xor esi, esi
cmp dword [0x48eb68], esi
jne 0x436f00
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436eeb
mov dword [0x48eb68], edi
jmp 0x436f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x436f00
mov dword [0x48eb68], 2
mov eax, dword [0x48eb68]
cmp eax, 2
je 0x436fe1
cmp eax, esi
je 0x436fe1
cmp eax, 1
jne 0x436f45
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x436f2e
mov eax, dword [0x48ead0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x436f4c
xor eax, eax
jmp 0x436ff3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00425720
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x436f82
cmp edi, esi
jne 0x436f9d
lea eax, [ebx + ebx]
push eax
call fcn.0042564c
pop ecx
mov edi, eax
cmp edi, esi
je 0x436f45
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436fd0
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x436fba
push esi
push esi
jmp 0x436fc0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x436fdc
push edi
call fcn.00425475
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x436ff3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004274eb
ret
Function at 0x4375b8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4375d1
or eax, 0xffffffff
jmp 0x437632
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x43762e
push 0x3d
push esi
call fcn.0042826a
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43762e
cmp esi, eax
je 0x43762e
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x48e6ac]
sete cl
cmp eax, dword [0x48e6b0]
mov dword [ebp - 4], ecx
jne 0x437614
mov edi, eax
call fcn.00437557
mov dword [0x48e6ac], eax
cmp eax, ebx
jne 0x43766d
cmp dword [ebp + 0xc], ebx
je 0x437636
cmp dword [0x48e6b4], ebx
je 0x437636
call fcn.00436bd4
test eax, eax
je 0x43766d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x43763f
xor eax, eax
jmp 0x437631
push 4
call fcn.0042564c
cmp eax, ebx
pop ecx
mov dword [0x48e6ac], eax
je 0x43762e
mov dword [eax], ebx
cmp dword [0x48e6b4], ebx
jne 0x43766d
push 4
call fcn.0042564c
cmp eax, ebx
pop ecx
mov dword [0x48e6b4], eax
je 0x43762e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x48e6ac]
sub edi, esi
push esi
call fcn.0043750a
mov edi, eax
test edi, edi
pop ecx
jl 0x4376d4
cmp dword [ebx], 0
je 0x4376d4
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00425475
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4376b4
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x437715
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4376ab
mov eax, edi
shl eax, 2
push eax
push dword [0x48e6ac]
call fcn.004282e5
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x437715
jmp 0x437710
cmp dword [ebp - 4], 0
jne 0x43777c
test edi, edi
jge 0x4376e4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x48e6ac]
call fcn.004282e5
test eax, eax
pop ecx
pop ecx
je 0x43762e
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x48e6ac], eax
cmp dword [ebp + 0xc], 0
je 0x437767
push esi
call fcn.00424540
inc eax
inc eax
push eax
call fcn.0042564c
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x437767
push esi
push edi
call fcn.004240b0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x437760
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00425475
pop ecx
cmp dword [ebp - 4], 0
je 0x437774
push esi
call fcn.00425475
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x437631
push esi
call fcn.00425475
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x43763b
Function at 0x438e78
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x467c59
call fcn.00425140
sub esp, 0xa4
mov eax, dword [0x48ae20]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x1c]
push eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0xb0], esi
call fcn.0043f39e
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00403c59
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x438f1e
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004256c0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x438f17
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x438f1e
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0042564c
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x438f33
call fcn.00438ac7
push dword [ebp + 0x20]
push ebx
push eax
call fcn.004256c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x438fb0
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0045c4fd
cmp dword [ebp - 0xac], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x4395ab
je 0x438fe2
push 0x104
push dword [ebp - 0xac]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0xa8], ebx
je 0x43901e
push dword [ebp - 0xa8]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.0040310e
push ebx
mov ecx, edi
call fcn.00402e1e
jmp 0x439007
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.0042826a
cmp eax, ebx
pop ecx
pop ecx
jne 0x439004
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424262
leave
ret 0x1c
Function at 0x43eb65
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.004256c0
add esp, 0xc
call fcn.0045c4d2
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x43ec35
cmp dword [ebp - 8], ebx
je 0x43ec30
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x43ea37
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0042802f
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x43ec3f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x43ec08
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x43ec22
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x43ec3a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x43ec41
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x43ec3f
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43ec48
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4669c0
call fcn.00425140
push ecx
push esi
push 0x40
call fcn.0043e097
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x43ec77
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045b642
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.0043eb65
test eax, eax
jne 0x43ec9e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x43ecbb
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x43ecb9
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x43f785
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x43f7bc
call fcn.0045c4fd
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43f7cd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x43f806
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x43f7eb
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x43f7f3
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x43f804
test ax, ax
jne 0x43f804
test si, si
je 0x43f806
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x43f815
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret