joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417c40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push esi
push edi
mov edi, 0x3e8
mov esi, dword [ebp + 8]
div edi
xor edi, edi
mov dword [ebp - 0x110], eax
inc edi
mov eax, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], edx
push eax
push ecx
mov dword [ebp - 0x108], edi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x417ca3
xor eax, eax
jmp 0x417cae
xor ecx, ecx
test eax, eax
mov eax, edi
setne cl
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b30a
leave
ret 8
Function at 0x41c165
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c1a4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c1a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c1a4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c1a4
cmp dword [ecx + 0x74], 0xe
jbe 0x41c1a4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428a92
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x452288
push esi
call fcn.004298da
pop ecx
pop ecx
test eax, eax
jne 0x428ac0
xor al, al
jmp 0x428b3d
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004287d5
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x428afa
push dword [ebp - 0x210]
call fcn.00421b51
xor al, al
jmp 0x428b3b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x428b00
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x428b20
push edx
call fcn.004289c8
pop ecx
test al, al
je 0x428aeb
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x428b2e
mov bl, 1
push dword [ebp - 0x210]
call fcn.00421b51
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b30a
leave
ret
Function at 0x4301fd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x454450
push 0x454448
push str.FlsAlloc
push 0x1e
call fcn.0043002a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430231
push dword [ebp + 8]
mov ecx, esi
call dword [0x450430]
call esi
jmp 0x430237
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43027b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x454460
push 0x454458
push str.FlsGetValue
push 0x20
call fcn.0043002a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4302b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x450430]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431e68
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 + 0x46c670]
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 0x431ea8
cmp byte [ebx], 0xa
jne 0x431ea8
or byte [eax + edi + 0x28], 4
jmp 0x431ead
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x431fab
mov al, byte [edx]
cmp al, 0x1a
je 0x431f8d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x431edc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x431f01
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x431f0b
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 0x431ebe
jmp 0x431fab
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 0x431f88
cmp dword [ebp - 0xc], 0
je 0x431f88
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46c670]
test byte [eax + edi + 0x28], 0x48
je 0x431f62
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x431f4d
mov byte [esi], dl
jmp 0x431f5e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c670]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x431fab
cmp byte [ebp - 1], 0xa
jne 0x431f71
cmp esi, ebx
jne 0x431f71
mov byte [esi], 0xa
jmp 0x431faa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00433151
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x431fab
mov byte [esi], 0xd
jmp 0x431faa
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46c670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x431fa7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x431fab
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431fb4
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 + 0x46c670]
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 0x431ff7
cmp word [esi], dx
jne 0x431ff7
or byte [edi + eax + 0x28], 4
jmp 0x431ffc
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 0x43214f
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 0x43212f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43203e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x432074
cmp eax, edx
jae 0x432080
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 0x432016
jmp 0x43214f
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 0x43212b
cmp dword [ebp - 0x14], 0
je 0x43212b
mov eax, dword [ebx*4 + 0x46c670]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x432103
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4320cc
mov word [esi], cx
jmp 0x4320ff
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46c670]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46c670]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46c670]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43214f
pop ebx
cmp word [ebp - 4], bx
jne 0x432114
cmp esi, dword [ebp + 0xc]
jne 0x432114
mov word [esi], bx
jmp 0x43214c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00433151
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43214f
push 0xd
jmp 0x432148
mov ecx, dword [ebx*4 + 0x46c670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432146
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43214f
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 0x432970
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004327e1

Function at 0x43359e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c3d0
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00428ca4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4335e0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43373c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043e690
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46c670]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00433133
mov ecx, dword [esi*4 + 0x46c670]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x433735
cmp eax, dword [edi + ecx + 0x24]
jne 0x433735
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433735
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433133
add esp, 0x14
test edx, edx
jl 0x433735
jg 0x4336ab
test eax, eax
jb 0x433735
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x433735
jl 0x4336c5
cmp dword [ebp - 0x1008], eax
ja 0x433735
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4336e3
test ebx, ebx
je 0x43371c
cmp ecx, edi
jae 0x43371c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4336fd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x433709
cmp byte [ecx + 1], 0xa
jne 0x433709
inc ecx
jmp 0x433709
movzx eax, al
movsx eax, byte [eax + 0x4672a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4336e3
cmp edx, ebx
jne 0x4336e3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43373a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b30a
leave
ret
Function at 0x436ae1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x436b2c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00436c80
test al, al
jne 0x436b26
sub edx, 2
cmp edx, edi
jne 0x436b0c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x436b4e
lea eax, [edi + 2]
cmp edx, eax
je 0x436b4e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00436a2d
add esp, 0x10
jmp 0x436c48
push esi
lea ecx, [ebp - 0x255]
call fcn.00436c80
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436b91
push dword [ebp - 0x25c]
jmp 0x436b3e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x436bce
cmp word [ebp - 0x226], 0
je 0x436bef
cmp word [ebp - 0x226], ax
jne 0x436bce
cmp word [ebp - 0x224], 0
je 0x436bef
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00436a2d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x436c3b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x436ba8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x436c23
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x436c48
push 0x43685d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043d460
add esp, 0x10
jmp 0x436c18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b30a
leave
ret

Function at 0x437553
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x437564
pop esi
ret
push ebx
push edi
push esi
call fcn.0043751c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00430770
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43758c
push ebx
push esi
push edi
call fcn.0041cad0
add esp, 0xc
push 0
call fcn.0042fb0b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x437950
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004375a1
Function at 0x43da85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043da01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43dbfd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43dbfd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43dbac
jg 0x43dade
test eax, eax
je 0x43dba2
push 1
push 0x1000
call fcn.00431b9a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43db04
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43db99
push 0x8000
push ebx
call fcn.0042c377
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43db30
jg 0x43db2b
cmp ecx, 0x1000
jb 0x43db30
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042f2da
add esp, 0x10
cmp eax, 0xffffffff
je 0x43db75
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43db2b
jl 0x43db5c
test ecx, ecx
jne 0x43db1d
push dword [ebp - 0xc]
push ebx
call fcn.0042c377
push esi
call fcn.0042fb0b
add esp, 0xc
xor edi, edi
jmp 0x43dc0e
cmp byte [edi + 0x24], 0
je 0x43db8c
cmp dword [edi + 0x20], 5
jne 0x43db8c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43db97
mov edi, dword [edi + 0x18]
jmp 0x43db99
xor edi, edi
push esi
call fcn.0042fb0b
pop ecx
jmp 0x43dc0e
test ecx, ecx
jg 0x43db6e
jl 0x43dbac
test eax, eax
jae 0x43db6e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433151
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43dbcf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43db6e
jmp 0x43dc06
push ebx
call fcn.00432ee0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43db6e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43dc0e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43dc0b
mov edi, dword [edi + 0x18]
jmp 0x43dc0e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00433151
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43e5b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e5dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e5dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43ee68
Capabilities:
Accept command line arguments

Disassembly:
push 0x9c
mov eax, 0x44de21
call fcn.0041bc41
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x88]
call fcn.00401a89
mov byte [ebp - 4], 1
call fcn.00440595
push eax
lea ecx, [ebp - 0x70]
call fcn.0040554d
push 0x37
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x46b0cc
call fcn.00407b27
mov esi, eax
push 0x45d9e8
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00401b19
pop ecx
push esi
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push dword [ebp - 0xa4]
call fcn.0040777f
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a52
lea ecx, [ebp - 0x58]
call fcn.004024f1
lea ecx, [ebp - 0x40]
call fcn.004024f1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.004024f1
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push 0x456e80
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004216e3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43efc5
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x58]
call fcn.00409c31
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push esi
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push 1
push eax
call fcn.004219c2
push esi
push 1
push 1
push 0x45da40
call fcn.004219c2
add esp, 0x20
lea ecx, [ebp - 0x40]
mov edx, 0x48dc0c
call fcn.00409c31
cmp dword [ebp - 0x30], 0
je 0x43efae
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push 1
push eax
call fcn.004219c2
add esp, 0x10
push esi
call fcn.00421b21
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004021e4
lea ecx, [ebp - 0x58]
call fcn.004021e4
lea ecx, [ebp - 0x70]
call fcn.004024f1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004024f1
call fcn.0044039e
cmp dword [0x48dc68], edi
mov esi, 0x48dc54
push ecx
mov eax, esi
mov ecx, esp
cmovae eax, dword [0x48dc54]
push eax
call fcn.004068b3
mov ecx, dword [0x48def8]
call fcn.004429cf
pop ecx
test eax, eax
je 0x43f014
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x48dc68], edi
cmovae esi, dword [0x48dc54]
push esi
call fcn.00426e51
cmp dword [ebp - 0x18], 0
pop ecx
je 0x43f05a
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00408166
test al, al
je 0x43f05a
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426e51
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x43f0a8
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
cmp eax, 0x1000
jb 0x43f09f
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004024a1
mov eax, dword [ebp - 0xa8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
call fcn.0041b318
pop ecx
pop ecx
call fcn.0041bbf0
ret
Function at 0x43f784
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x464
mov eax, 0x44dfc2
call fcn.0041bc41
mov esi, ecx
mov ecx, dword [esi]
call fcn.004428c2
mov edx, dword [esi]
lea ecx, [ebp - 0x448]
mov ebx, eax
call fcn.004428e0
lea eax, [ebp - 0x470]
xor esi, esi
push eax
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 0x470], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
push 0x1c
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x46b0cc
call fcn.00407b27
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x43f7f7
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x46c]
cmp eax, dword [ebp - 0x468]
je 0x43f80b
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x470]
lea edi, [ebp - 0x42c]
mov dword [ebp - 0x430], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x414], eax
test ecx, ecx
je 0x43f85c
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040221a
lea eax, [ebp - 0x430]
push eax
push 0x40ff7a
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x42c]
sub esi, dword [ebp - 0x46c]
sar esi, 2
call fcn.004024f1
lea ecx, [ebp - 0x460]
call fcn.004024f1
cmp esi, 1
jle 0x43f928
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0041d050
mov esi, dword [ebp - 0x46c]
add esp, 0xc
jmp 0x43f91a
push 0x200
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
lea ecx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x448]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43f90e
test dx, dx
je 0x43f90a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43f90e
add ecx, 4
add eax, 4
test dx, dx
jne 0x43f8e8
xor eax, eax
jmp 0x43f913
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f924
add esi, 4
cmp esi, dword [ebp - 0x468]
jne 0x43f8ba
jmp 0x43f93f
mov ebx, dword [esi]
jmp 0x43f93f
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x46c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x43f93f
mov ebx, dword [ecx]
lea ecx, [ebp - 0x46c]
call fcn.00402a29
lea ecx, [ebp - 0x448]
call fcn.004024f1
mov eax, ebx
call fcn.0041bbf0
ret
Function at 0x43fe49
Capabilities:
Create thread

Disassembly:
push 0x5c
mov eax, 0x44e0f0
call fcn.0041bcad
cmp byte [0x48dfb5], 0
jne 0x43fec6
xor esi, esi
lea eax, [ebp - 0x48]
push eax
push esi
push 0x48dbc0
push 0x402fc7
push esi
push esi
mov dword [0x48df20], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], esi
call fcn.00446470
or dword [ebp - 4], 0xffffffff
mov dword [0x48df20], eax
jmp 0x43fe9f
cmp dword [ebp - 0x48], 0
je 0x43febd
push esi
push esi
push 0x502
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x48df20], 0
je 0x43fecc
call fcn.0041bbff
ret
lea ecx, [ebp - 0x2c]
call fcn.00402081
mov dword [ebp - 4], 2
call fcn.00406ef8
test al, al
lea eax, [ebp - 0x44]
je 0x43ff0c
push 0x2b
push 0x13
push eax
call fcn.0043f4f9
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ac8
lea ecx, [ebp - 0x44]
call fcn.0040220a
lea ecx, [ebp - 0x2c]
call fcn.004450cf
jmp 0x43ff27
push 0x29
push 0x11
push eax
call fcn.0043f4f9
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ac8
lea ecx, [ebp - 0x44]
call fcn.0040220a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405477
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.00404a28
push 0x4634ac
lea eax, [ebp - 0x68]
push eax
call fcn.0041ecde
int3

Function at 0x43ff52
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00421d2f
cmp byte [0x48dfb5], 0
mov esi, eax
jne 0x43ffaf
cmp dword [0x48df1c], 0
jne 0x43ffaf
cmp word [0x48dfbe], 3
push edi
mov edi, 0x48dfb8
jne 0x43ff93
mov ecx, edi
call fcn.004021b8
test al, 1
je 0x43ff93
mov eax, dword [0x48dcd0]
shr eax, 9
test al, 1
je 0x43ffae
push 0x48df24
xor eax, eax
push eax
push edi
push 0x4057dc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48df28], eax
pop edi
mov eax, esi
pop esi
ret