joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x10], ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x6c]
add eax, ebx
sub esi, ecx
mov dword [ebp - 0xc], esi
cmp dword [edi + 0x6c], eax
jb 0x413b8b
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0041cce0
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 8], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 8], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x413b39
mov edi, dword [ebp - 4]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 8]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x413b66
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x413c45
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, esi
mov dword [ebp - 0xc], edx
cmovbe esi, eax
test esi, esi
je 0x413bfe
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x413bcc
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push esi
call fcn.0041448c
jmp 0x413be4
cmp eax, 2
jne 0x413be8
mov edx, dword [ebx]
test edx, edx
jne 0x413bdb
xor eax, eax
jmp 0x413be5
mov ecx, dword [ebx + 0x30]
push esi
call fcn.0041164d
pop ecx
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push dword [ebp - 0xc]
call fcn.0041cce0
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov dword [edi + 0x74], ecx
cmp ecx, 3
jb 0x413c2d
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp ecx, 0x106
jae 0x413c45
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x413c45
mov ebx, dword [ebp - 0x10]
jmp 0x413af7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417576
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
call fcn.00407a9b
push 0x14
pop esi
cmp eax, esi
jb 0x4175e4
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.00427e7b
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x10], si
inc eax
mov byte [ebp - 0xc], bl
push eax
mov word [ebp - 0xe], ax
mov edi, 0x58453144
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00427464
add esp, 0x1c
pop ebx
test eax, eax
je 0x4175e4
cmp dword [ebp - 0x14], edi
jne 0x4175e4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4175e0
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x4175e6
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x417af9
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
test edi, edi
je 0x417b69
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x417b1f
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x417b69
add eax, eax
call fcn.0041bd90
mov esi, esp
test esi, esi
je 0x417b66
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
mov byte [esi], bl
lea eax, [ecx + ecx]
push eax
push esi
push 0xffffffffffffffff
push edi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb ebx, ebx
and ebx, esi
mov esi, dword [ebp - 0x18]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push 0x7b
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x417ba9
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x417bd0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4ed
leave
ret 8
xor eax, eax
jmp 0x417bbc
Function at 0x417bd4
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x46b034]
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 0x417c37
xor eax, eax
jmp 0x417c42
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.0041b4ed
leave
ret 8
Function at 0x428531
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4534f8
push esi
call fcn.0042935a
pop ecx
pop ecx
test eax, eax
jne 0x42855f
xor al, al
jmp 0x4285dc
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.00428274
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x428599
push dword [ebp - 0x210]
call fcn.0041ffb0
xor al, al
jmp 0x4285da
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42859f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4285bf
push edx
call fcn.00428467
pop ecx
test al, al
je 0x42858a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4285cd
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041ffb0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b4ed
leave
ret

Function at 0x42e3cb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455678
push 0x455670
push str.FlsAlloc
push 0x1e
call fcn.0042e1f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e3ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x451424]
call esi
jmp 0x42e405
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e449
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455688
push 0x455680
push str.FlsGetValue
push 0x20
call fcn.0042e1f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e480
push dword [ebp + 8]
mov ecx, esi
call dword [0x451424]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x431b22
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 + 0x470778]
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 0x431b62
cmp byte [ebx], 0xa
jne 0x431b62
or byte [eax + edi + 0x28], 4
jmp 0x431b67
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x431c65
mov al, byte [edx]
cmp al, 0x1a
je 0x431c47
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x431b96
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x431bbb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x431bc5
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 0x431b78
jmp 0x431c65
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 0x431c42
cmp dword [ebp - 0xc], 0
je 0x431c42
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x470778]
test byte [eax + edi + 0x28], 0x48
je 0x431c1c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x431c07
mov byte [esi], dl
jmp 0x431c18
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x470778]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x431c65
cmp byte [ebp - 1], 0xa
jne 0x431c2b
cmp esi, ebx
jne 0x431c2b
mov byte [esi], 0xa
jmp 0x431c64
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004329d7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x431c65
mov byte [esi], 0xd
jmp 0x431c64
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x470778]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x431c61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x431c65
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431c6e
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 + 0x470778]
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 0x431cb1
cmp word [esi], dx
jne 0x431cb1
or byte [edi + eax + 0x28], 4
jmp 0x431cb6
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 0x431e09
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 0x431de9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x431cf8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x431d2e
cmp eax, edx
jae 0x431d3a
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 0x431cd0
jmp 0x431e09
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 0x431de5
cmp dword [ebp - 0x14], 0
je 0x431de5
mov eax, dword [ebx*4 + 0x470778]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x431dbd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x431d86
mov word [esi], cx
jmp 0x431db9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x470778]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x470778]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x470778]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x431e09
pop ebx
cmp word [ebp - 4], bx
jne 0x431dce
cmp esi, dword [ebp + 0xc]
jne 0x431dce
mov word [esi], bx
jmp 0x431e06
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004329d7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x431e09
push 0xd
jmp 0x431e02
mov ecx, dword [ebx*4 + 0x470778]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x431e00
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x431e09
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 0x43262a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043249b

Function at 0x432e24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c5d0
mov eax, dword [0x46b034]
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.0042f963
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x432e66
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x432fc2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043edf0
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 + 0x470778]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004329b9
mov ecx, dword [esi*4 + 0x470778]
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 0x432fbb
cmp eax, dword [edi + ecx + 0x24]
jne 0x432fbb
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 0x432fbb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004329b9
add esp, 0x14
test edx, edx
jl 0x432fbb
jg 0x432f31
test eax, eax
jb 0x432fbb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x432fbb
jl 0x432f4b
cmp dword [ebp - 0x1008], eax
ja 0x432fbb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x432f69
test ebx, ebx
je 0x432fa2
cmp ecx, edi
jae 0x432fa2
mov al, byte [ecx]
cmp al, 0xd
jne 0x432f83
lea eax, [edi - 1]
cmp ecx, eax
jae 0x432f8f
cmp byte [ecx + 1], 0xa
jne 0x432f8f
inc ecx
jmp 0x432f8f
movzx eax, al
movsx eax, byte [eax + 0x46b2a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x432f69
cmp edx, ebx
jne 0x432f69
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x432fc0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b4ed
leave
ret
Function at 0x437ab3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46b034]
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 0x437afe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00437c52
test al, al
jne 0x437af8
sub edx, 2
cmp edx, edi
jne 0x437ade
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x437b20
lea eax, [edi + 2]
cmp edx, eax
je 0x437b20
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004379ff
add esp, 0x10
jmp 0x437c1a
push esi
lea ecx, [ebp - 0x255]
call fcn.00437c52
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 0x437b63
push dword [ebp - 0x25c]
jmp 0x437b10
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 0x437ba0
cmp word [ebp - 0x226], 0
je 0x437bc1
cmp word [ebp - 0x226], ax
jne 0x437ba0
cmp word [ebp - 0x224], 0
je 0x437bc1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004379ff
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x437c0d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x437b7a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x437bf5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x437c1a
push 0x43782f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043def0
add esp, 0x10
jmp 0x437bea
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.0041b4ed
leave
ret

Function at 0x438525
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x438536
pop esi
ret
push ebx
push edi
push esi
call fcn.004384ee
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042eb2e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43855e
push ebx
push esi
push edi
call fcn.0041cce0
add esp, 0xc
push 0
call fcn.0042df1d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x438922
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438573
Function at 0x43e995
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.0043e911
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43eb0d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43eb0d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43eabc
jg 0x43e9ee
test eax, eax
je 0x43eab2
push 1
push 0x1000
call fcn.00430702
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43ea14
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43eaa9
push 0x8000
push ebx
call fcn.0042c00a
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 0x43ea40
jg 0x43ea3b
cmp ecx, 0x1000
jb 0x43ea40
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004310c1
add esp, 0x10
cmp eax, 0xffffffff
je 0x43ea85
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 0x43ea3b
jl 0x43ea6c
test ecx, ecx
jne 0x43ea2d
push dword [ebp - 0xc]
push ebx
call fcn.0042c00a
push esi
call fcn.0042df1d
add esp, 0xc
xor edi, edi
jmp 0x43eb1e
cmp byte [edi + 0x24], 0
je 0x43ea9c
cmp dword [edi + 0x20], 5
jne 0x43ea9c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43eaa7
mov edi, dword [edi + 0x18]
jmp 0x43eaa9
xor edi, edi
push esi
call fcn.0042df1d
pop ecx
jmp 0x43eb1e
test ecx, ecx
jg 0x43ea7e
jl 0x43eabc
test eax, eax
jae 0x43ea7e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004329d7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43eadf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43ea7e
jmp 0x43eb16
push ebx
call fcn.0043342b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43ea7e
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 0x43eb1e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43eb1b
mov edi, dword [edi + 0x18]
jmp 0x43eb1e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004329d7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440037
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x464
mov eax, 0x44f4d2
call fcn.0041be21
mov esi, ecx
mov ecx, dword [esi]
call fcn.0044378d
mov edx, dword [esi]
lea ecx, [ebp - 0x448]
mov edi, eax
call fcn.004437ab
lea eax, [ebp - 0x470]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x470], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
push 0x1c
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x46f0cc
call fcn.00407312
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x4400aa
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x430], eax
xor eax, eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x41c], ebx
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 0x440101
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00402e90
lea eax, [ebp - 0x430]
push eax
push 0x40fe5d
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.00401dcb
lea ecx, [ebp - 0x460]
call fcn.00401dcb
cmp esi, 1
jle 0x4401dc
push 0x400
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.0041d260
mov esi, dword [ebp - 0x46c]
add esp, 0xc
cmp esi, dword [ebp - 0x468]
je 0x4401f3
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 0x4401bc
test dx, dx
je 0x4401b8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4401bc
add ecx, 4
add eax, 4
test dx, dx
jne 0x440196
mov eax, ebx
jmp 0x4401c1
sbb eax, eax
or eax, 1
test eax, eax
je 0x4401d2
add esi, 4
cmp esi, dword [ebp - 0x468]
jne 0x440168
jmp 0x4401d4
mov edi, dword [esi]
mov esi, dword [ebp - 0x46c]
jmp 0x4401f3
mov eax, dword [ebp - 0x468]
mov esi, dword [ebp - 0x46c]
sub eax, esi
sar eax, 2
test eax, eax
je 0x4401f3
mov edi, dword [esi]
test esi, esi
je 0x44021d
mov eax, dword [ebp - 0x464]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.00401e22
pop ecx
pop ecx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
lea ecx, [ebp - 0x448]
call fcn.00401dcb
mov eax, edi
call fcn.0041bdd0
ret