joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f47f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x46c340
call fcn.004310ec
push 8
call fcn.00432cb8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4787b8], esi
jne 0x42f4b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4787b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4787b0], al
cmp dword [ebp + 0xc], edi
jne 0x42f4fd
cmp dword [0x479fe8], edi
je 0x42f4ed
mov eax, dword [0x479fe4]
sub eax, 4
mov dword [0x479fe4], eax
cmp eax, dword [0x479fe8]
jb 0x42f4ed
mov eax, dword [eax]
cmp eax, edi
je 0x42f4ce
call eax
jmp 0x42f4ce
push 0x4750bc
mov eax, 0x4750b4
call fcn.0042f3fd
pop ecx
push 0x4750c8
mov eax, 0x4750c0
call fcn.0042f3fd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42f52e
cmp dword [ebp + 0x10], edi
jne 0x42f53c
mov dword [0x4787b8], esi
push dword [ebp + 8]
call fcn.0042f3bb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42f53b
push 8
call fcn.00432c03
pop ecx
ret
call fcn.00431127
ret

Function at 0x432d78
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4759ac]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x475db0]
je 0x432dad
inc eax
cmp eax, 0x13
jb 0x432d9e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x475db0]
jne 0x432ed3
mov eax, dword [0x478770]
cmp eax, 1
je 0x432eab
cmp eax, edx
jne 0x432ddd
cmp dword [0x47576c], 1
je 0x432eab
cmp ecx, 0xfc
je 0x432ed3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432e13
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00433840
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00431fb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x432e47
mov eax, edi
push eax
call fcn.00431fb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d148
push edi
call fcn.0042e830
add esp, 0x10
push edi
call fcn.00431fb0
push dword [esi + 0x475db4]
mov ebx, eax
call fcn.00431fb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042df90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00433840
push edi
push ebx
call fcn.00433850
push 0x46d128
push ebx
call fcn.00433850
push dword [esi + 0x475db4]
push ebx
call fcn.00433850
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00436dd6
add esp, 0x2c
jmp 0x432ed3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x475db4]
push dword [esi]
call fcn.00431fb0
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]
mov ecx, dword [ebp + 0x88]
call fcn.00435833
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x433938
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042df90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4339d3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x478778]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4339d3
cmp eax, 1
je 0x4339f4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4339d3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4339a0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4339cf
xor eax, eax
inc eax
jmp 0x433a13
cmp edi, eax
jae 0x4339d7
xor eax, eax
jmp 0x433a13
cmp eax, esi
jae 0x4339de
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x478778]
jmp 0x4339f7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4345c0
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 0x4345ee
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 0x4345f5
cmp ebx, dword [eax + 4]
jae 0x4345f5
xor eax, eax
jmp 0x4347e5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x434606
xor eax, eax
inc eax
jmp 0x4347e4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43461c
cmp ecx, edx
jae 0x434761
cmp dword [eax + 4], 0
je 0x434625
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43460d
cmp dword [ebp + 8], 0
je 0x434647
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x434761
cmp eax, esi
jae 0x434761
mov eax, dword [0x478a78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43466c
cmp dword [esi*4 + 0x478a80], edi
je 0x434765
inc esi
cmp esi, eax
jl 0x43465a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4347e1
cmp dword [ebp - 8], 0x1000000
jne 0x4347e1
test byte [ebp - 0xc], 0xcc
je 0x4346ea
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4347e1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4347e1
cmp word [eax + 0x18], 0x10b
jne 0x4347e1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4347e1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4346ea
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4346ea
test byte [ecx + 0x27], 0x80
jne 0x434761
push 1
push 0x478ac0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4345fe
mov ecx, dword [0x478a78]
test ecx, ecx
mov edx, ecx
jle 0x43471e
lea eax, [ecx*4 + 0x478a7c]
cmp dword [eax], edi
je 0x43471e
dec edx
sub eax, 4
test edx, edx
jg 0x434712
test edx, edx
jne 0x43474f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43472b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x434743
lea eax, [edx*4 + 0x478a80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x434731
cmp ecx, 0x10
jge 0x43474f
inc ecx
mov dword [0x478a78], ecx
push 0
push 0x478ac0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4345fe
xor eax, eax
jmp 0x4347e4
test esi, esi
jle 0x4345fe
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x478ac0
call ebx
test eax, eax
jne 0x4345fe
cmp dword [esi*4 + 0x478a80], edi
je 0x4347bb
mov eax, dword [0x478a78]
lea esi, [eax - 1]
test esi, esi
jl 0x4347a9
cmp dword [esi*4 + 0x478a80], edi
je 0x4347a5
dec esi
jns 0x434799
test esi, esi
jge 0x4347b9
cmp eax, 0x10
jge 0x4347b4
inc eax
mov dword [0x478a78], eax
lea esi, [eax - 1]
jmp 0x4347bb
je 0x4347d3
xor ecx, ecx
test esi, esi
jl 0x4347d3
lea eax, [ecx*4 + 0x478a80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4347c1
push 0
push 0x478ac0
call ebx
jmp 0x4345fe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43686c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4759ac]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43689d
xor eax, eax
jmp 0x436a26
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x479ca0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4368d9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00437b69
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4369b4
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4369f2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x43693d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43692e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43690e
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43697d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x436986
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4368ff
jmp 0x436988
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x436a21
cmp dword [ebp - 0x6c], edi
je 0x4369f2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4369e7
call fcn.0042f5ad
mov dword [eax], 9
call fcn.0042f5b6
mov dword [eax], esi
jmp 0x436a1c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4369dc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x436988
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x436988
push dword [ebp - 0x6c]
call fcn.0042f5bf
pop ecx
jmp 0x436a1c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x436a0a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x436a0a
xor eax, eax
jmp 0x436a24
call fcn.0042f5ad
mov dword [eax], 0x1c
call fcn.0042f5b6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x436a24
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00435833
add ebp, 0x3a0
leave
ret
Function at 0x436dd6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x478c00], ebx
push esi
push edi
jne 0x436e56
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x436e91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46d2d4
push edi
call esi
test eax, eax
mov dword [0x478c00], eax
je 0x436e91
push 0x46d2c4
push edi
call esi
push 0x46d2b0
push edi
mov dword [0x478c04], eax
call esi
cmp dword [0x478778], 2
mov dword [0x478c08], eax
jne 0x436e56
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x478c10], eax
je 0x436e56
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x478c0c], eax
mov eax, dword [0x478c0c]
test eax, eax
je 0x436e9b
call eax
test eax, eax
je 0x436e82
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x478c10]
test eax, eax
je 0x436e82
test byte [ebp - 8], 1
jne 0x436e9b
cmp dword [0x478784], 4
jb 0x436e95
or byte [ebp + 0x12], 0x20
jmp 0x436eba
xor eax, eax
jmp 0x436eca
or byte [ebp + 0x12], 4
jmp 0x436eba
mov eax, dword [0x478c04]
test eax, eax
je 0x436eba
call eax
mov ebx, eax
test ebx, ebx
je 0x436eba
mov eax, dword [0x478c08]
test eax, eax
je 0x436eba
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x478c00]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438475
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 0x43848e
or eax, 0xffffffff
jmp 0x4384ef
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4384eb
push 0x3d
push esi
call fcn.00438793
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4384eb
cmp esi, eax
je 0x4384eb
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x478798]
sete cl
cmp eax, dword [0x47879c]
mov dword [ebp - 8], ecx
jne 0x4384d1
mov edi, eax
call fcn.00438414
mov dword [0x478798], eax
cmp eax, ebx
jne 0x43852a
cmp dword [ebp + 0xc], ebx
je 0x4384f3
cmp dword [0x4787a0], ebx
je 0x4384f3
call fcn.00437e3e
test eax, eax
je 0x43852a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4384fc
xor eax, eax
jmp 0x4384ee
push 4
call fcn.0042f0e2
cmp eax, ebx
pop ecx
mov dword [0x478798], eax
je 0x4384eb
mov dword [eax], ebx
cmp dword [0x4787a0], ebx
jne 0x43852a
push 4
call fcn.0042f0e2
cmp eax, ebx
pop ecx
mov dword [0x4787a0], eax
je 0x4384eb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x478798]
call fcn.004383c7
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43858b
cmp dword [esi], ebx
je 0x43858b
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042f0f4
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43856e
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4385cc
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x438565
mov eax, edi
shl eax, 2
push eax
push dword [0x478798]
call fcn.00430f3f
cmp eax, ebx
pop ecx
pop ecx
je 0x4385cc
jmp 0x4385c7
cmp dword [ebp - 8], ebx
jne 0x438637
cmp edi, ebx
jge 0x43859a
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x478798]
call fcn.00430f3f
cmp eax, ebx
pop ecx
pop ecx
je 0x4384eb
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x478798], eax
cmp dword [ebp + 0xc], ebx
je 0x438621
push dword [ebp - 4]
call fcn.00431fb0
inc eax
inc eax
push eax
call fcn.0042f0e2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x438621
push dword [ebp - 4]
push esi
call fcn.00433840
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43861a
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042f0f4
pop ecx
cmp dword [ebp - 8], ebx
je 0x43862f
push dword [ebp - 4]
call fcn.0042f0f4
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4384ee
push dword [ebp - 4]
call fcn.0042f0f4
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4384f8
Function at 0x43ccf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
push edi
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
call fcn.00459080
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x43cd4d
call fcn.00459080
mov ecx, dword [esi + 0x38]
mov ebx, dword [eax + 0xc]
push 5
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43cd5b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x43cd76
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00459080
mov eax, dword [eax + 4]
test eax, eax
je 0x43cd8b
push 0
mov ecx, eax
call fcn.0044ba90
mov eax, dword [esi + 0x48]
test eax, eax
je 0x43cd95
mov eax, dword [eax + 0x1c]
lea edx, [esi + 0x4c]
push edx
push eax
call fcn.0044bad0
mov edi, eax
push esi
mov dword [ebp - 0x20], edi
call fcn.0043fb60
call fcn.0043e980
test edi, edi
mov dword [ebp - 0x1c], 0
je 0x43cdd5
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43cdd5
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
push esi
mov dword [ebp - 4], 0
call fcn.0043fb60
push edi
call fcn.0043d270
push ebx
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0043ca80
test eax, eax
je 0x43ce5f
test byte [esi + 0x24], 0x10
je 0x43ce22
mov ecx, dword [esi + 0x1c]
push 0xfffffffffffffff0
push ecx
mov ebx, 4
call dword [sym.imp.USER32.dll_GetWindowLongA]
test ah, 1
je 0x43ce1a
mov ebx, 5
push ebx
mov ecx, esi
call fcn.0043e560
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x43ce5f
push 0x97
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x43ce5f
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x43ce76
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x43ce8c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43ce8c
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov ecx, esi
call fcn.0043cca0
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d3e0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [esp + 0xc]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00441c40
mov edx, dword [esi + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00441c00
pop edi
pop esi
ret 4
Function at 0x43dcc0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
push 0x47803c
mov ecx, esi
call fcn.004419c0
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x43dd17
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edx, [eax + 1]
push edx
push eax
mov ecx, esi
call fcn.00441c40
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00441c00
mov eax, dword [esi]
mov eax, dword [eax - 8]
pop edi
pop esi
ret 8
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
pop edi
pop esi
ret 8
Function at 0x440dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
mov ebp, ecx
je 0x440e15
call fcn.00459080
mov esi, dword [eax + 0xc]
push 0xf0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x440e15
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x440e0c
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00440c00
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x441ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45dc81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
xor eax, eax
mov dword [esp + 0xc], eax
mov ebp, dword [0x47558c]
push esi
push edi
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x30]
cmp edi, eax
mov dword [esp + 0x20], 1
je 0x441f22
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esi - 8]
lea eax, [ecx + ebx]
test eax, eax
je 0x441f7e
push eax
lea ecx, [esp + 0x18]
call fcn.00441660
test esi, esi
mov ebp, dword [esp + 0x14]
je 0x441f63
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x34]
test edi, edi
je 0x441f7e
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edi, [ebx + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xc]
test eax, eax
mov esi, dword [esp + 0x2c]
lea edi, [ebp - 0xc]
pop ebx
jl 0x441f98
push edi
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x441fa8
mov ecx, dword [0x47558c]
mov dword [esi], ecx
push ebp
mov ecx, esi
call fcn.004419c0
mov eax, dword [0x475590]
add ebp, 0xfffffff4
cmp ebp, eax
mov dword [esp + 0x14], 1
mov byte [esp + 0x20], 0
je 0x441fd3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x441fd3
mov ecx, edi
call fcn.00441550
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x442f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0xc]
push eax
push str.CLSID
push 0x80000000
mov dword [esp + 0x18], 0
xor esi, esi
call edi
test eax, eax
jne 0x443036
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44302e
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push str.InProcServer32
push edx
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x443027
mov esi, dword [esp + 0x20]
push 0x104
mov ecx, esi
call fcn.00441b80
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 0
push 0x45f743
push eax
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.00441c00
mov edx, dword [esp + 0x1c]
xor ecx, ecx
test edi, edi
sete cl
push edx
mov esi, ecx
call ebx
mov eax, dword [esp + 0xc]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 8

Function at 0x4432c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, ecx
jne 0x4432cf
pop esi
ret 8
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4432fa
mov esi, dword [esi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00444000
mov eax, dword [esp + 0xc]
pop esi
ret 8

Function at 0x443310
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
je 0x44335a
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x443347
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00444000
cmp dword [esp + 0x10], edi
je 0x44335a
mov eax, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00443f90
pop edi
pop esi
ret 8

Function at 0x443570
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x4435b5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4435a7
mov esi, dword [esi + 0xc]
push esi
call edi
push eax
call fcn.00444000
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret